This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dev.mzcy.utils.items; | |
import net.kyori.adventure.text.Component; | |
import org.bukkit.Color; | |
import org.bukkit.Material; | |
import org.bukkit.enchantments.Enchantment; | |
import org.bukkit.inventory.ItemFlag; | |
import org.bukkit.inventory.ItemStack; | |
import org.bukkit.inventory.meta.ItemMeta; | |
import org.bukkit.inventory.meta.LeatherArmorMeta; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dev.mzcy.citybuild.utils.builder; | |
import dev.mzcy.citybuild.CityBuild; | |
import dev.mzcy.citybuild.utils.Utils; | |
import lombok.AccessLevel; | |
import lombok.experimental.FieldDefaults; | |
import net.kyori.adventure.text.Component; | |
import net.kyori.adventure.text.minimessage.MiniMessage; | |
import org.apache.commons.lang3.Validate; | |
import org.bukkit.entity.Player; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dev.mzcy.keys; | |
@SuppressWarnings("unused") | |
public enum KeyCode { | |
CANCEL(3), | |
BACKSPACE(8), | |
TAB(9), | |
ENTER(10), | |
CLEAR(12), | |
SHIFT(16), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dev.mzcy.util.builder.item; | |
import com.destroystokyo.paper.profile.PlayerProfile; | |
import com.google.gson.Gson; | |
import com.google.gson.GsonBuilder; | |
import com.google.gson.JsonObject; | |
import net.kyori.adventure.text.Component; | |
import net.minecraft.nbt.CompoundTag; | |
import net.minecraft.nbt.ListTag; | |
import org.bukkit.*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dev.pvpduels.util; | |
import java.util.HashMap; | |
import java.util.Map; | |
public class TwoKeyedMap<K1, K2, V> { | |
private final Map<K1, Map<K2, V>> map = new HashMap<>(); | |
public void put(K1 key1, K2 key2, V value) { | |
map.computeIfAbsent(key1, k -> new HashMap<>()).put(key2, value); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dev.mzcy.adventure; | |
import lombok.Getter; | |
import lombok.experimental.FieldDefaults; | |
import lombok.experimental.NonFinal; | |
import net.kyori.adventure.audience.Audience; | |
import net.kyori.adventure.text.Component; | |
import net.kyori.adventure.text.event.ClickEvent; | |
import net.kyori.adventure.text.event.HoverEvent; | |
import net.kyori.adventure.text.format.NamedTextColor; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dev.mzcy.util; | |
import com.google.common.cache.Cache; | |
import com.google.common.cache.CacheBuilder; | |
import com.google.gson.JsonElement; | |
import com.google.gson.JsonNull; | |
import com.google.gson.JsonObject; | |
import com.google.gson.JsonParser; | |
import lombok.AccessLevel; |