From 8c7156ce518064f4b3ed83414984e87ccbd782f3 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 17 Dec 2023 10:26:49 +1100 Subject: [PATCH] Add Checkstyle check for unused imports By: md_5 --- paper-server/checkstyle.xml | 4 ++-- .../java/org/bukkit/craftbukkit/CraftLootTable.java | 3 --- .../main/java/org/bukkit/craftbukkit/CraftServer.java | 10 ---------- .../craftbukkit/command/VanillaCommandWrapper.java | 2 -- .../bukkit/craftbukkit/entity/CraftEnderSignal.java | 1 - .../bukkit/craftbukkit/entity/CraftHumanEntity.java | 2 -- .../bukkit/craftbukkit/entity/CraftLivingEntity.java | 2 -- .../org/bukkit/craftbukkit/entity/CraftPlayer.java | 6 ------ .../org/bukkit/craftbukkit/entity/CraftRabbit.java | 3 --- .../craftbukkit/entity/memory/CraftMemoryKey.java | 1 - .../bukkit/craftbukkit/event/CraftEventFactory.java | 3 --- .../craftbukkit/generator/CustomChunkGenerator.java | 1 - .../craftbukkit/generator/OldCraftChunkData.java | 1 - .../bukkit/craftbukkit/inventory/CraftMetaItem.java | 1 - .../inventory/util/CraftTileInventoryConverter.java | 2 -- .../org/bukkit/craftbukkit/legacy/CraftLegacy.java | 1 - .../java/org/bukkit/craftbukkit/tag/CraftBlockTag.java | 1 - .../java/org/bukkit/craftbukkit/tag/CraftItemTag.java | 1 - .../craftbukkit/util/CraftNBTTagConfigSerializer.java | 3 --- 19 files changed, 2 insertions(+), 46 deletions(-) diff --git a/paper-server/checkstyle.xml b/paper-server/checkstyle.xml index 63914723e1..ec61ec7570 100644 --- a/paper-server/checkstyle.xml +++ b/paper-server/checkstyle.xml @@ -23,7 +23,7 @@ - + @@ -58,7 +58,7 @@ - + diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftLootTable.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftLootTable.java index 97243c316b..ddfd219dda 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftLootTable.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftLootTable.java @@ -7,7 +7,6 @@ import java.util.List; import java.util.Random; import net.minecraft.server.level.WorldServer; import net.minecraft.world.IInventory; -import net.minecraft.world.damagesource.DamageSource; import net.minecraft.world.entity.Entity; import net.minecraft.world.entity.player.EntityHuman; import net.minecraft.world.level.storage.loot.LootParams; @@ -15,7 +14,6 @@ import net.minecraft.world.level.storage.loot.LootTable; import net.minecraft.world.level.storage.loot.LootTableInfo; import net.minecraft.world.level.storage.loot.parameters.LootContextParameter; import net.minecraft.world.level.storage.loot.parameters.LootContextParameterSet; -import net.minecraft.world.level.storage.loot.parameters.LootContextParameterSets; import net.minecraft.world.level.storage.loot.parameters.LootContextParameters; import net.minecraft.world.phys.Vec3D; import org.bukkit.Location; @@ -25,7 +23,6 @@ import org.bukkit.craftbukkit.entity.CraftHumanEntity; import org.bukkit.craftbukkit.inventory.CraftInventory; import org.bukkit.craftbukkit.inventory.CraftItemStack; import org.bukkit.craftbukkit.util.CraftLocation; -import org.bukkit.craftbukkit.util.RandomSourceWrapper; import org.bukkit.inventory.Inventory; import org.bukkit.inventory.ItemStack; import org.bukkit.loot.LootContext; diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 0863da1f80..6b8f4c6200 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -12,9 +12,7 @@ import com.mojang.brigadier.StringReader; import com.mojang.brigadier.exceptions.CommandSyntaxException; import com.mojang.brigadier.tree.CommandNode; import com.mojang.brigadier.tree.LiteralCommandNode; -import com.mojang.datafixers.util.Pair; import com.mojang.serialization.Dynamic; -import com.mojang.serialization.DynamicOps; import com.mojang.serialization.Lifecycle; import it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap; import java.awt.image.BufferedImage; @@ -50,17 +48,13 @@ import net.minecraft.commands.CommandDispatcher; import net.minecraft.commands.CommandListenerWrapper; import net.minecraft.commands.arguments.ArgumentEntity; import net.minecraft.core.BlockPosition; -import net.minecraft.core.HolderLookup; import net.minecraft.core.IRegistry; import net.minecraft.core.NonNullList; import net.minecraft.core.registries.BuiltInRegistries; import net.minecraft.core.registries.Registries; -import net.minecraft.nbt.DynamicOpsNBT; -import net.minecraft.nbt.NBTBase; import net.minecraft.nbt.NbtException; import net.minecraft.nbt.ReportedNbtException; import net.minecraft.resources.MinecraftKey; -import net.minecraft.resources.RegistryOps; import net.minecraft.resources.ResourceKey; import net.minecraft.server.MinecraftServer; import net.minecraft.server.ServerCommand; @@ -83,7 +77,6 @@ import net.minecraft.tags.TagKey; import net.minecraft.util.ChatDeserializer; import net.minecraft.util.datafix.DataConverterRegistry; import net.minecraft.world.EnumDifficulty; -import net.minecraft.world.effect.MobEffects; import net.minecraft.world.entity.EntityTypes; import net.minecraft.world.entity.ai.village.VillageSiege; import net.minecraft.world.entity.npc.MobSpawnerCat; @@ -100,7 +93,6 @@ import net.minecraft.world.item.crafting.RecipeCrafting; import net.minecraft.world.item.crafting.RecipeHolder; import net.minecraft.world.item.crafting.RecipeRepair; import net.minecraft.world.item.crafting.Recipes; -import net.minecraft.world.item.enchantment.Enchantments; import net.minecraft.world.level.EnumGamemode; import net.minecraft.world.level.GameRules; import net.minecraft.world.level.MobSpawner; @@ -117,7 +109,6 @@ import net.minecraft.world.level.saveddata.maps.MapIcon; import net.minecraft.world.level.saveddata.maps.WorldMap; import net.minecraft.world.level.storage.Convertable; import net.minecraft.world.level.storage.LevelDataAndDimensions; -import net.minecraft.world.level.storage.SaveData; import net.minecraft.world.level.storage.WorldDataServer; import net.minecraft.world.level.storage.WorldNBTStorage; import net.minecraft.world.level.storage.loot.LootDataManager; @@ -258,7 +249,6 @@ import org.bukkit.plugin.java.JavaPluginLoader; import org.bukkit.plugin.messaging.Messenger; import org.bukkit.plugin.messaging.StandardMessenger; import org.bukkit.potion.Potion; -import org.bukkit.potion.PotionEffectType; import org.bukkit.profile.PlayerProfile; import org.bukkit.scheduler.BukkitWorker; import org.bukkit.scoreboard.Criteria; diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java b/paper-server/src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java index 30f7fd8825..f17f5f61e9 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java @@ -9,8 +9,6 @@ import java.util.Collections; import java.util.List; import net.minecraft.commands.CommandDispatcher; import net.minecraft.commands.CommandListenerWrapper; -import net.minecraft.server.MinecraftServer; -import net.minecraft.server.dedicated.DedicatedServer; import net.minecraft.world.entity.vehicle.EntityMinecartCommandBlock; import org.bukkit.Location; import org.bukkit.command.BlockCommandSender; diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEnderSignal.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEnderSignal.java index c6a66fcb58..f978df7201 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEnderSignal.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEnderSignal.java @@ -1,7 +1,6 @@ package org.bukkit.craftbukkit.entity; import com.google.common.base.Preconditions; -import net.minecraft.core.BlockPosition; import net.minecraft.world.entity.projectile.EntityEnderSignal; import net.minecraft.world.item.Items; import org.bukkit.Location; diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java index 9670d70863..aa9b5d5029 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java @@ -23,7 +23,6 @@ import net.minecraft.world.inventory.Container; import net.minecraft.world.inventory.Containers; import net.minecraft.world.item.ItemCooldown; import net.minecraft.world.item.crafting.CraftingManager; -import net.minecraft.world.item.crafting.IRecipe; import net.minecraft.world.item.crafting.RecipeHolder; import net.minecraft.world.item.trading.IMerchant; import net.minecraft.world.level.block.BlockBed; @@ -38,7 +37,6 @@ import org.bukkit.Material; import org.bukkit.NamespacedKey; import org.bukkit.block.Block; import org.bukkit.craftbukkit.CraftServer; -import org.bukkit.craftbukkit.CraftWorld; import org.bukkit.craftbukkit.entity.memory.CraftMemoryMapper; import org.bukkit.craftbukkit.event.CraftEventFactory; import org.bukkit.craftbukkit.inventory.CraftContainer; diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java index 224be6a37f..1a11eef8be 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java @@ -14,7 +14,6 @@ import net.minecraft.sounds.SoundEffect; import net.minecraft.world.EnumHand; import net.minecraft.world.damagesource.DamageSource; import net.minecraft.world.effect.MobEffect; -import net.minecraft.world.effect.MobEffectList; import net.minecraft.world.entity.EntityInsentient; import net.minecraft.world.entity.EntityLiving; import net.minecraft.world.entity.EntityTypes; @@ -57,7 +56,6 @@ import org.bukkit.craftbukkit.entity.memory.CraftMemoryMapper; import org.bukkit.craftbukkit.inventory.CraftEntityEquipment; import org.bukkit.craftbukkit.inventory.CraftItemStack; import org.bukkit.craftbukkit.potion.CraftPotionEffectType; -import org.bukkit.craftbukkit.potion.CraftPotionUtil; import org.bukkit.entity.AbstractArrow; import org.bukkit.entity.Arrow; import org.bukkit.entity.DragonFireball; diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 373a7e615b..51738022b8 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -5,7 +5,6 @@ import com.google.common.collect.ImmutableSet; import com.google.common.io.BaseEncoding; import com.mojang.authlib.GameProfile; import com.mojang.datafixers.util.Pair; -import io.netty.buffer.Unpooled; import it.unimi.dsi.fastutil.shorts.ShortArraySet; import it.unimi.dsi.fastutil.shorts.ShortSet; import java.io.ByteArrayOutputStream; @@ -36,12 +35,10 @@ import net.minecraft.advancements.AdvancementProgress; import net.minecraft.core.BlockPosition; import net.minecraft.core.Holder; import net.minecraft.core.SectionPosition; -import net.minecraft.core.registries.BuiltInRegistries; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.network.PacketDataSerializer; import net.minecraft.network.chat.IChatBaseComponent; import net.minecraft.network.chat.PlayerChatMessage; -import net.minecraft.network.protocol.Packet; import net.minecraft.network.protocol.common.ClientboundCustomPayloadPacket; import net.minecraft.network.protocol.common.ClientboundResourcePackPopPacket; import net.minecraft.network.protocol.common.ClientboundResourcePackPushPacket; @@ -71,7 +68,6 @@ import net.minecraft.network.protocol.game.PacketPlayOutNamedSoundEffect; import net.minecraft.network.protocol.game.PacketPlayOutPlayerListHeaderFooter; import net.minecraft.network.protocol.game.PacketPlayOutSpawnPosition; import net.minecraft.network.protocol.game.PacketPlayOutStopSound; -import net.minecraft.network.protocol.game.PacketPlayOutTileEntityData; import net.minecraft.network.protocol.game.PacketPlayOutUpdateAttributes; import net.minecraft.network.protocol.game.PacketPlayOutUpdateHealth; import net.minecraft.network.protocol.game.PacketPlayOutWorldEvent; @@ -97,7 +93,6 @@ import net.minecraft.world.item.EnumColor; import net.minecraft.world.level.EnumGamemode; import net.minecraft.world.level.block.Blocks; import net.minecraft.world.level.block.entity.SignText; -import net.minecraft.world.level.block.entity.TileEntity; import net.minecraft.world.level.block.entity.TileEntitySign; import net.minecraft.world.level.block.state.IBlockData; import net.minecraft.world.level.border.IWorldBorderListener; @@ -146,7 +141,6 @@ import org.bukkit.craftbukkit.advancement.CraftAdvancement; import org.bukkit.craftbukkit.advancement.CraftAdvancementProgress; import org.bukkit.craftbukkit.block.CraftBlockEntityState; import org.bukkit.craftbukkit.block.CraftBlockState; -import org.bukkit.craftbukkit.block.CraftBlockStates; import org.bukkit.craftbukkit.block.CraftSign; import org.bukkit.craftbukkit.block.data.CraftBlockData; import org.bukkit.craftbukkit.conversations.ConversationTracker; diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftRabbit.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftRabbit.java index 5649cdad5e..5009cc7f5f 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftRabbit.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftRabbit.java @@ -1,10 +1,7 @@ package org.bukkit.craftbukkit.entity; -import net.minecraft.world.entity.ai.goal.PathfinderGoalSelector; import net.minecraft.world.entity.animal.EntityRabbit; -import net.minecraft.world.level.World; import org.bukkit.craftbukkit.CraftServer; -import org.bukkit.craftbukkit.CraftWorld; import org.bukkit.entity.Rabbit; import org.bukkit.entity.Rabbit.Type; diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/memory/CraftMemoryKey.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/memory/CraftMemoryKey.java index 27d93dbaa0..b6ebc8769b 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/memory/CraftMemoryKey.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/memory/CraftMemoryKey.java @@ -1,6 +1,5 @@ package org.bukkit.craftbukkit.entity.memory; -import com.google.common.base.Preconditions; import net.minecraft.core.IRegistry; import net.minecraft.core.registries.Registries; import net.minecraft.world.entity.ai.memory.MemoryModuleType; diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java index aa81911072..be5b0756b2 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java @@ -5,7 +5,6 @@ import com.google.common.base.Functions; import com.google.common.base.Preconditions; import com.google.common.collect.Lists; import com.mojang.datafixers.util.Either; -import java.net.InetAddress; import java.net.InetSocketAddress; import java.net.SocketAddress; import java.util.ArrayList; @@ -79,8 +78,6 @@ import net.minecraft.world.phys.Vec3D; import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.Material; -import org.bukkit.NamespacedKey; -import org.bukkit.Server; import org.bukkit.Statistic.Type; import org.bukkit.block.Block; import org.bukkit.block.BlockFace; diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/generator/CustomChunkGenerator.java b/paper-server/src/main/java/org/bukkit/craftbukkit/generator/CustomChunkGenerator.java index 3f32122977..3a6b3d6637 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/generator/CustomChunkGenerator.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/generator/CustomChunkGenerator.java @@ -28,7 +28,6 @@ import net.minecraft.world.level.block.state.IBlockData; import net.minecraft.world.level.chunk.ChunkGeneratorStructureState; import net.minecraft.world.level.chunk.ChunkSection; import net.minecraft.world.level.chunk.IChunkAccess; -import net.minecraft.world.level.chunk.ProtoChunk; import net.minecraft.world.level.levelgen.HeightMap; import net.minecraft.world.level.levelgen.LegacyRandomSource; import net.minecraft.world.level.levelgen.RandomState; diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/generator/OldCraftChunkData.java b/paper-server/src/main/java/org/bukkit/craftbukkit/generator/OldCraftChunkData.java index 1ff806fd6d..8662f9e251 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/generator/OldCraftChunkData.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/generator/OldCraftChunkData.java @@ -9,7 +9,6 @@ import net.minecraft.world.level.block.Blocks; import net.minecraft.world.level.block.state.IBlockData; import net.minecraft.world.level.chunk.ChunkSection; import org.bukkit.Material; -import org.bukkit.World; import org.bukkit.block.Biome; import org.bukkit.block.data.BlockData; import org.bukkit.craftbukkit.block.data.CraftBlockData; diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java index d64638f2b6..31fd181c24 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java @@ -59,7 +59,6 @@ import org.bukkit.craftbukkit.CraftEquipmentSlot; import org.bukkit.craftbukkit.Overridden; import org.bukkit.craftbukkit.attribute.CraftAttribute; import org.bukkit.craftbukkit.attribute.CraftAttributeInstance; -import org.bukkit.craftbukkit.attribute.CraftAttributeMap; import org.bukkit.craftbukkit.block.data.CraftBlockData; import org.bukkit.craftbukkit.inventory.CraftMetaItem.ItemMetaKey.Specific; import org.bukkit.craftbukkit.inventory.tags.DeprecatedCustomTagContainer; diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/util/CraftTileInventoryConverter.java b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/util/CraftTileInventoryConverter.java index 44b8a4b70c..073da86c96 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/util/CraftTileInventoryConverter.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/util/CraftTileInventoryConverter.java @@ -1,9 +1,7 @@ package org.bukkit.craftbukkit.inventory.util; import net.minecraft.core.BlockPosition; -import net.minecraft.server.MinecraftServer; import net.minecraft.world.IInventory; -import net.minecraft.world.level.World; import net.minecraft.world.level.block.Blocks; import net.minecraft.world.level.block.entity.CrafterBlockEntity; import net.minecraft.world.level.block.entity.TileEntityBlastFurnace; diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/legacy/CraftLegacy.java b/paper-server/src/main/java/org/bukkit/craftbukkit/legacy/CraftLegacy.java index 472b4aa674..0198990010 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/legacy/CraftLegacy.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/legacy/CraftLegacy.java @@ -9,7 +9,6 @@ import java.util.Map; import java.util.Optional; import java.util.Set; import net.minecraft.SharedConstants; -import net.minecraft.core.IRegistry; import net.minecraft.core.registries.BuiltInRegistries; import net.minecraft.nbt.DynamicOpsNBT; import net.minecraft.nbt.NBTBase; diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/tag/CraftBlockTag.java b/paper-server/src/main/java/org/bukkit/craftbukkit/tag/CraftBlockTag.java index c00710a889..2760d0baaf 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/tag/CraftBlockTag.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/tag/CraftBlockTag.java @@ -1,6 +1,5 @@ package org.bukkit.craftbukkit.tag; -import java.util.Collections; import java.util.Set; import java.util.stream.Collectors; import net.minecraft.core.IRegistry; diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/tag/CraftItemTag.java b/paper-server/src/main/java/org/bukkit/craftbukkit/tag/CraftItemTag.java index 1cfdfd84de..34252ef74f 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/tag/CraftItemTag.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/tag/CraftItemTag.java @@ -1,6 +1,5 @@ package org.bukkit.craftbukkit.tag; -import java.util.Collections; import java.util.Set; import java.util.stream.Collectors; import net.minecraft.core.IRegistry; diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/util/CraftNBTTagConfigSerializer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/util/CraftNBTTagConfigSerializer.java index b7a8a4ea60..44f133cf5f 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/util/CraftNBTTagConfigSerializer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/util/CraftNBTTagConfigSerializer.java @@ -2,14 +2,11 @@ package org.bukkit.craftbukkit.util; import com.mojang.brigadier.StringReader; import com.mojang.brigadier.exceptions.CommandSyntaxException; -import java.util.ArrayList; -import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.regex.Pattern; import net.minecraft.nbt.MojangsonParser; import net.minecraft.nbt.NBTBase; -import net.minecraft.nbt.NBTList; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagDouble; import net.minecraft.nbt.NBTTagInt;