From c9dd390232ecdbc58f01a7abda02be1a922e67b6 Mon Sep 17 00:00:00 2001 From: NK Date: Fri, 16 Dec 2022 19:04:18 +0000 Subject: [PATCH] formatting --- .../me/night/nullvalkyrie/entities/npcs/NPCManager.java | 7 ++----- .../me/night/nullvalkyrie/items/CustomItemManager.java | 8 ++------ 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/main/java/me/night/nullvalkyrie/entities/npcs/NPCManager.java b/src/main/java/me/night/nullvalkyrie/entities/npcs/NPCManager.java index 7c94bb1..04b3255 100644 --- a/src/main/java/me/night/nullvalkyrie/entities/npcs/NPCManager.java +++ b/src/main/java/me/night/nullvalkyrie/entities/npcs/NPCManager.java @@ -5,12 +5,9 @@ import com.mojang.authlib.properties.Property; import com.mojang.datafixers.util.Pair; import me.night.nullvalkyrie.Main; import me.night.nullvalkyrie.database.NPCDataManager; -import me.night.nullvalkyrie.util.Skin; -import me.night.nullvalkyrie.util.Util; +import me.night.nullvalkyrie.util.*; import net.minecraft.network.protocol.game.*; -import net.minecraft.network.syncher.DataWatcher; -import net.minecraft.network.syncher.DataWatcherObject; -import net.minecraft.network.syncher.DataWatcherRegistry; +import net.minecraft.network.syncher.*; import net.minecraft.server.MinecraftServer; import net.minecraft.server.level.EntityPlayer; import net.minecraft.server.level.WorldServer; diff --git a/src/main/java/me/night/nullvalkyrie/items/CustomItemManager.java b/src/main/java/me/night/nullvalkyrie/items/CustomItemManager.java index b09b89f..2f79fce 100644 --- a/src/main/java/me/night/nullvalkyrie/items/CustomItemManager.java +++ b/src/main/java/me/night/nullvalkyrie/items/CustomItemManager.java @@ -10,10 +10,7 @@ import org.bukkit.NamespacedKey; import org.bukkit.attribute.Attribute; import org.bukkit.attribute.AttributeModifier; import org.bukkit.enchantments.Enchantment; -import org.bukkit.inventory.EquipmentSlot; -import org.bukkit.inventory.ItemFlag; -import org.bukkit.inventory.ItemStack; -import org.bukkit.inventory.ShapedRecipe; +import org.bukkit.inventory.*; import org.bukkit.inventory.meta.ItemMeta; import org.bukkit.persistence.PersistentDataContainer; import org.bukkit.persistence.PersistentDataType; @@ -49,8 +46,7 @@ public class CustomItemManager { itemMeta.setDisplayName(Rarity.getRarity((String) weapon.get("Rarity")).getColor() + weapon.get("Name")); itemMeta.setUnbreakable(true); - ArrayList loreList = new ArrayList<>(); - loreList.addAll(propertiesList); + ArrayList loreList = new ArrayList<>(propertiesList); loreList.add(""); ArrayList enchantmentList = new ArrayList<>(); for (Enchantment enchantment : item.getEnchantments().keySet()) {