diff --git a/src/autogenerated/java/net/minestom/server/instance/item/TmpMaterial.java b/src/autogenerated/java/net/minestom/server/instance/item/Material.java similarity index 97% rename from src/autogenerated/java/net/minestom/server/instance/item/TmpMaterial.java rename to src/autogenerated/java/net/minestom/server/instance/item/Material.java index 7f22c118b..b1ffca751 100644 --- a/src/autogenerated/java/net/minestom/server/instance/item/TmpMaterial.java +++ b/src/autogenerated/java/net/minestom/server/instance/item/Material.java @@ -5,7 +5,7 @@ package net.minestom.server.instance.item; import net.minestom.server.instance.block.Block; import it.unimi.dsi.fastutil.shorts.Short2ObjectOpenHashMap; -public enum TmpMaterial { +public enum Material { AIR("minecraft:air", 0, Block.AIR), STONE("minecraft:stone", 64, Block.STONE), GRANITE("minecraft:granite", 64, Block.GRANITE), @@ -895,11 +895,11 @@ public enum TmpMaterial { private int maxDefaultStackSize; private Block correspondingBlock; - TmpMaterial(String namespaceID, int maxDefaultStackSize, Block correspondingBlock) { + Material(String namespaceID, int maxDefaultStackSize, Block correspondingBlock) { this.namespaceID = namespaceID; this.maxDefaultStackSize = maxDefaultStackSize; this.correspondingBlock = correspondingBlock; - TmpMaterialMap.map.put((short)ordinal(), this); + MaterialMap.map.put((short)ordinal(), this); } public short getId() { @@ -922,8 +922,8 @@ public enum TmpMaterial { return correspondingBlock; } - public static TmpMaterial fromId(short blockId) { - return TmpMaterialMap.map.getOrDefault(blockId, AIR); + public static Material fromId(short blockId) { + return MaterialMap.map.getOrDefault(blockId, AIR); } public boolean isHelmet() { @@ -947,7 +947,48 @@ public enum TmpMaterial { } public boolean isFood() { - return false; // TODO + switch (this) { + case APPLE: + case MUSHROOM_STEW: + case BREAD: + case PORKCHOP: + case COOKED_PORKCHOP: + case GOLDEN_APPLE: + case ENCHANTED_GOLDEN_APPLE: + case COD: + case SALMON: + case TROPICAL_FISH: + case PUFFERFISH: + case COOKED_COD: + case COOKED_SALMON: + case CAKE: + case COOKIE: + case MELON_SLICE: + case DRIED_KELP: + case BEEF: + case COOKED_BEEF: + case CHICKEN: + case COOKED_CHICKEN: + case ROTTEN_FLESH: + case SPIDER_EYE: + case CARROT: + case POTATO: + case BAKED_POTATO: + case POISONOUS_POTATO: + case PUMPKIN_PIE: + case RABBIT: + case COOKED_RABBIT: + case RABBIT_STEW: + case MUTTON: + case COOKED_MUTTON: + case BEETROOT: + case BEETROOT_SOUP: + case SWEET_BERRIES: + case HONEY_BOTTLE: + return true; + default: + return false; + } } public boolean hasState() { diff --git a/src/autogenerated/java/net/minestom/server/instance/item/MaterialMap.java b/src/autogenerated/java/net/minestom/server/instance/item/MaterialMap.java new file mode 100644 index 000000000..29fa9d199 --- /dev/null +++ b/src/autogenerated/java/net/minestom/server/instance/item/MaterialMap.java @@ -0,0 +1,5 @@ +package net.minestom.server.instance.item; +import it.unimi.dsi.fastutil.shorts.Short2ObjectOpenHashMap; +final class MaterialMap { + static final Short2ObjectOpenHashMap map = new Short2ObjectOpenHashMap<>(); +} diff --git a/src/autogenerated/java/net/minestom/server/instance/item/TmpMaterialMap.java b/src/autogenerated/java/net/minestom/server/instance/item/TmpMaterialMap.java deleted file mode 100644 index a5dcd0078..000000000 --- a/src/autogenerated/java/net/minestom/server/instance/item/TmpMaterialMap.java +++ /dev/null @@ -1,5 +0,0 @@ -package net.minestom.server.instance.item; -import it.unimi.dsi.fastutil.shorts.Short2ObjectOpenHashMap; -final class TmpMaterialMap { - static final Short2ObjectOpenHashMap map = new Short2ObjectOpenHashMap<>(); -} diff --git a/src/autogenerated/java/net/minestom/server/item/Material.java b/src/autogenerated/java/net/minestom/server/item/Material.java new file mode 100644 index 000000000..d467be820 --- /dev/null +++ b/src/autogenerated/java/net/minestom/server/item/Material.java @@ -0,0 +1,1005 @@ +//============================== +// AUTOGENERATED BY EnumGenerator +//============================== +package net.minestom.server.item; +import net.minestom.server.instance.block.Block; +import it.unimi.dsi.fastutil.shorts.Short2ObjectOpenHashMap; + +public enum Material { + AIR("minecraft:air", 0, Block.AIR), + STONE("minecraft:stone", 64, Block.STONE), + GRANITE("minecraft:granite", 64, Block.GRANITE), + POLISHED_GRANITE("minecraft:polished_granite", 64, Block.POLISHED_GRANITE), + DIORITE("minecraft:diorite", 64, Block.DIORITE), + POLISHED_DIORITE("minecraft:polished_diorite", 64, Block.POLISHED_DIORITE), + ANDESITE("minecraft:andesite", 64, Block.ANDESITE), + POLISHED_ANDESITE("minecraft:polished_andesite", 64, Block.POLISHED_ANDESITE), + GRASS_BLOCK("minecraft:grass_block", 64, Block.GRASS_BLOCK), + DIRT("minecraft:dirt", 64, Block.DIRT), + COARSE_DIRT("minecraft:coarse_dirt", 64, Block.COARSE_DIRT), + PODZOL("minecraft:podzol", 64, Block.PODZOL), + COBBLESTONE("minecraft:cobblestone", 64, Block.COBBLESTONE), + OAK_PLANKS("minecraft:oak_planks", 64, Block.OAK_PLANKS), + SPRUCE_PLANKS("minecraft:spruce_planks", 64, Block.SPRUCE_PLANKS), + BIRCH_PLANKS("minecraft:birch_planks", 64, Block.BIRCH_PLANKS), + JUNGLE_PLANKS("minecraft:jungle_planks", 64, Block.JUNGLE_PLANKS), + ACACIA_PLANKS("minecraft:acacia_planks", 64, Block.ACACIA_PLANKS), + DARK_OAK_PLANKS("minecraft:dark_oak_planks", 64, Block.DARK_OAK_PLANKS), + OAK_SAPLING("minecraft:oak_sapling", 64, Block.OAK_SAPLING), + SPRUCE_SAPLING("minecraft:spruce_sapling", 64, Block.SPRUCE_SAPLING), + BIRCH_SAPLING("minecraft:birch_sapling", 64, Block.BIRCH_SAPLING), + JUNGLE_SAPLING("minecraft:jungle_sapling", 64, Block.JUNGLE_SAPLING), + ACACIA_SAPLING("minecraft:acacia_sapling", 64, Block.ACACIA_SAPLING), + DARK_OAK_SAPLING("minecraft:dark_oak_sapling", 64, Block.DARK_OAK_SAPLING), + BEDROCK("minecraft:bedrock", 64, Block.BEDROCK), + SAND("minecraft:sand", 64, Block.SAND), + RED_SAND("minecraft:red_sand", 64, Block.RED_SAND), + GRAVEL("minecraft:gravel", 64, Block.GRAVEL), + GOLD_ORE("minecraft:gold_ore", 64, Block.GOLD_ORE), + IRON_ORE("minecraft:iron_ore", 64, Block.IRON_ORE), + COAL_ORE("minecraft:coal_ore", 64, Block.COAL_ORE), + OAK_LOG("minecraft:oak_log", 64, Block.OAK_LOG), + SPRUCE_LOG("minecraft:spruce_log", 64, Block.SPRUCE_LOG), + BIRCH_LOG("minecraft:birch_log", 64, Block.BIRCH_LOG), + JUNGLE_LOG("minecraft:jungle_log", 64, Block.JUNGLE_LOG), + ACACIA_LOG("minecraft:acacia_log", 64, Block.ACACIA_LOG), + DARK_OAK_LOG("minecraft:dark_oak_log", 64, Block.DARK_OAK_LOG), + STRIPPED_OAK_LOG("minecraft:stripped_oak_log", 64, Block.STRIPPED_OAK_LOG), + STRIPPED_SPRUCE_LOG("minecraft:stripped_spruce_log", 64, Block.STRIPPED_SPRUCE_LOG), + STRIPPED_BIRCH_LOG("minecraft:stripped_birch_log", 64, Block.STRIPPED_BIRCH_LOG), + STRIPPED_JUNGLE_LOG("minecraft:stripped_jungle_log", 64, Block.STRIPPED_JUNGLE_LOG), + STRIPPED_ACACIA_LOG("minecraft:stripped_acacia_log", 64, Block.STRIPPED_ACACIA_LOG), + STRIPPED_DARK_OAK_LOG("minecraft:stripped_dark_oak_log", 64, Block.STRIPPED_DARK_OAK_LOG), + STRIPPED_OAK_WOOD("minecraft:stripped_oak_wood", 64, Block.STRIPPED_OAK_WOOD), + STRIPPED_SPRUCE_WOOD("minecraft:stripped_spruce_wood", 64, Block.STRIPPED_SPRUCE_WOOD), + STRIPPED_BIRCH_WOOD("minecraft:stripped_birch_wood", 64, Block.STRIPPED_BIRCH_WOOD), + STRIPPED_JUNGLE_WOOD("minecraft:stripped_jungle_wood", 64, Block.STRIPPED_JUNGLE_WOOD), + STRIPPED_ACACIA_WOOD("minecraft:stripped_acacia_wood", 64, Block.STRIPPED_ACACIA_WOOD), + STRIPPED_DARK_OAK_WOOD("minecraft:stripped_dark_oak_wood", 64, Block.STRIPPED_DARK_OAK_WOOD), + OAK_WOOD("minecraft:oak_wood", 64, Block.OAK_WOOD), + SPRUCE_WOOD("minecraft:spruce_wood", 64, Block.SPRUCE_WOOD), + BIRCH_WOOD("minecraft:birch_wood", 64, Block.BIRCH_WOOD), + JUNGLE_WOOD("minecraft:jungle_wood", 64, Block.JUNGLE_WOOD), + ACACIA_WOOD("minecraft:acacia_wood", 64, Block.ACACIA_WOOD), + DARK_OAK_WOOD("minecraft:dark_oak_wood", 64, Block.DARK_OAK_WOOD), + OAK_LEAVES("minecraft:oak_leaves", 64, Block.OAK_LEAVES), + SPRUCE_LEAVES("minecraft:spruce_leaves", 64, Block.SPRUCE_LEAVES), + BIRCH_LEAVES("minecraft:birch_leaves", 64, Block.BIRCH_LEAVES), + JUNGLE_LEAVES("minecraft:jungle_leaves", 64, Block.JUNGLE_LEAVES), + ACACIA_LEAVES("minecraft:acacia_leaves", 64, Block.ACACIA_LEAVES), + DARK_OAK_LEAVES("minecraft:dark_oak_leaves", 64, Block.DARK_OAK_LEAVES), + SPONGE("minecraft:sponge", 64, Block.SPONGE), + WET_SPONGE("minecraft:wet_sponge", 64, Block.WET_SPONGE), + GLASS("minecraft:glass", 64, Block.GLASS), + LAPIS_ORE("minecraft:lapis_ore", 64, Block.LAPIS_ORE), + LAPIS_BLOCK("minecraft:lapis_block", 64, Block.LAPIS_BLOCK), + DISPENSER("minecraft:dispenser", 64, Block.DISPENSER), + SANDSTONE("minecraft:sandstone", 64, Block.SANDSTONE), + CHISELED_SANDSTONE("minecraft:chiseled_sandstone", 64, Block.CHISELED_SANDSTONE), + CUT_SANDSTONE("minecraft:cut_sandstone", 64, Block.CUT_SANDSTONE), + NOTE_BLOCK("minecraft:note_block", 64, Block.NOTE_BLOCK), + POWERED_RAIL("minecraft:powered_rail", 64, Block.POWERED_RAIL), + DETECTOR_RAIL("minecraft:detector_rail", 64, Block.DETECTOR_RAIL), + STICKY_PISTON("minecraft:sticky_piston", 64, Block.STICKY_PISTON), + COBWEB("minecraft:cobweb", 64, Block.COBWEB), + GRASS("minecraft:grass", 64, Block.GRASS), + FERN("minecraft:fern", 64, Block.FERN), + DEAD_BUSH("minecraft:dead_bush", 64, Block.DEAD_BUSH), + SEAGRASS("minecraft:seagrass", 64, Block.SEAGRASS), + SEA_PICKLE("minecraft:sea_pickle", 64, Block.SEA_PICKLE), + PISTON("minecraft:piston", 64, Block.PISTON), + WHITE_WOOL("minecraft:white_wool", 64, Block.WHITE_WOOL), + ORANGE_WOOL("minecraft:orange_wool", 64, Block.ORANGE_WOOL), + MAGENTA_WOOL("minecraft:magenta_wool", 64, Block.MAGENTA_WOOL), + LIGHT_BLUE_WOOL("minecraft:light_blue_wool", 64, Block.LIGHT_BLUE_WOOL), + YELLOW_WOOL("minecraft:yellow_wool", 64, Block.YELLOW_WOOL), + LIME_WOOL("minecraft:lime_wool", 64, Block.LIME_WOOL), + PINK_WOOL("minecraft:pink_wool", 64, Block.PINK_WOOL), + GRAY_WOOL("minecraft:gray_wool", 64, Block.GRAY_WOOL), + LIGHT_GRAY_WOOL("minecraft:light_gray_wool", 64, Block.LIGHT_GRAY_WOOL), + CYAN_WOOL("minecraft:cyan_wool", 64, Block.CYAN_WOOL), + PURPLE_WOOL("minecraft:purple_wool", 64, Block.PURPLE_WOOL), + BLUE_WOOL("minecraft:blue_wool", 64, Block.BLUE_WOOL), + BROWN_WOOL("minecraft:brown_wool", 64, Block.BROWN_WOOL), + GREEN_WOOL("minecraft:green_wool", 64, Block.GREEN_WOOL), + RED_WOOL("minecraft:red_wool", 64, Block.RED_WOOL), + BLACK_WOOL("minecraft:black_wool", 64, Block.BLACK_WOOL), + DANDELION("minecraft:dandelion", 64, Block.DANDELION), + POPPY("minecraft:poppy", 64, Block.POPPY), + BLUE_ORCHID("minecraft:blue_orchid", 64, Block.BLUE_ORCHID), + ALLIUM("minecraft:allium", 64, Block.ALLIUM), + AZURE_BLUET("minecraft:azure_bluet", 64, Block.AZURE_BLUET), + RED_TULIP("minecraft:red_tulip", 64, Block.RED_TULIP), + ORANGE_TULIP("minecraft:orange_tulip", 64, Block.ORANGE_TULIP), + WHITE_TULIP("minecraft:white_tulip", 64, Block.WHITE_TULIP), + PINK_TULIP("minecraft:pink_tulip", 64, Block.PINK_TULIP), + OXEYE_DAISY("minecraft:oxeye_daisy", 64, Block.OXEYE_DAISY), + CORNFLOWER("minecraft:cornflower", 64, Block.CORNFLOWER), + LILY_OF_THE_VALLEY("minecraft:lily_of_the_valley", 64, Block.LILY_OF_THE_VALLEY), + WITHER_ROSE("minecraft:wither_rose", 64, Block.WITHER_ROSE), + BROWN_MUSHROOM("minecraft:brown_mushroom", 64, Block.BROWN_MUSHROOM), + RED_MUSHROOM("minecraft:red_mushroom", 64, Block.RED_MUSHROOM), + GOLD_BLOCK("minecraft:gold_block", 64, Block.GOLD_BLOCK), + IRON_BLOCK("minecraft:iron_block", 64, Block.IRON_BLOCK), + OAK_SLAB("minecraft:oak_slab", 64, Block.OAK_SLAB), + SPRUCE_SLAB("minecraft:spruce_slab", 64, Block.SPRUCE_SLAB), + BIRCH_SLAB("minecraft:birch_slab", 64, Block.BIRCH_SLAB), + JUNGLE_SLAB("minecraft:jungle_slab", 64, Block.JUNGLE_SLAB), + ACACIA_SLAB("minecraft:acacia_slab", 64, Block.ACACIA_SLAB), + DARK_OAK_SLAB("minecraft:dark_oak_slab", 64, Block.DARK_OAK_SLAB), + STONE_SLAB("minecraft:stone_slab", 64, Block.STONE_SLAB), + SMOOTH_STONE_SLAB("minecraft:smooth_stone_slab", 64, Block.SMOOTH_STONE_SLAB), + SANDSTONE_SLAB("minecraft:sandstone_slab", 64, Block.SANDSTONE_SLAB), + CUT_SANDSTONE_SLAB("minecraft:cut_sandstone_slab", 64, Block.CUT_SANDSTONE_SLAB), + PETRIFIED_OAK_SLAB("minecraft:petrified_oak_slab", 64, Block.PETRIFIED_OAK_SLAB), + COBBLESTONE_SLAB("minecraft:cobblestone_slab", 64, Block.COBBLESTONE_SLAB), + BRICK_SLAB("minecraft:brick_slab", 64, Block.BRICK_SLAB), + STONE_BRICK_SLAB("minecraft:stone_brick_slab", 64, Block.STONE_BRICK_SLAB), + NETHER_BRICK_SLAB("minecraft:nether_brick_slab", 64, Block.NETHER_BRICK_SLAB), + QUARTZ_SLAB("minecraft:quartz_slab", 64, Block.QUARTZ_SLAB), + RED_SANDSTONE_SLAB("minecraft:red_sandstone_slab", 64, Block.RED_SANDSTONE_SLAB), + CUT_RED_SANDSTONE_SLAB("minecraft:cut_red_sandstone_slab", 64, Block.CUT_RED_SANDSTONE_SLAB), + PURPUR_SLAB("minecraft:purpur_slab", 64, Block.PURPUR_SLAB), + PRISMARINE_SLAB("minecraft:prismarine_slab", 64, Block.PRISMARINE_SLAB), + PRISMARINE_BRICK_SLAB("minecraft:prismarine_brick_slab", 64, Block.PRISMARINE_BRICK_SLAB), + DARK_PRISMARINE_SLAB("minecraft:dark_prismarine_slab", 64, Block.DARK_PRISMARINE_SLAB), + SMOOTH_QUARTZ("minecraft:smooth_quartz", 64, Block.SMOOTH_QUARTZ), + SMOOTH_RED_SANDSTONE("minecraft:smooth_red_sandstone", 64, Block.SMOOTH_RED_SANDSTONE), + SMOOTH_SANDSTONE("minecraft:smooth_sandstone", 64, Block.SMOOTH_SANDSTONE), + SMOOTH_STONE("minecraft:smooth_stone", 64, Block.SMOOTH_STONE), + BRICKS("minecraft:bricks", 64, Block.BRICKS), + TNT("minecraft:tnt", 64, Block.TNT), + BOOKSHELF("minecraft:bookshelf", 64, Block.BOOKSHELF), + MOSSY_COBBLESTONE("minecraft:mossy_cobblestone", 64, Block.MOSSY_COBBLESTONE), + OBSIDIAN("minecraft:obsidian", 64, Block.OBSIDIAN), + TORCH("minecraft:torch", 64, Block.TORCH), + END_ROD("minecraft:end_rod", 64, Block.END_ROD), + CHORUS_PLANT("minecraft:chorus_plant", 64, Block.CHORUS_PLANT), + CHORUS_FLOWER("minecraft:chorus_flower", 64, Block.CHORUS_FLOWER), + PURPUR_BLOCK("minecraft:purpur_block", 64, Block.PURPUR_BLOCK), + PURPUR_PILLAR("minecraft:purpur_pillar", 64, Block.PURPUR_PILLAR), + PURPUR_STAIRS("minecraft:purpur_stairs", 64, Block.PURPUR_STAIRS), + SPAWNER("minecraft:spawner", 64, Block.SPAWNER), + OAK_STAIRS("minecraft:oak_stairs", 64, Block.OAK_STAIRS), + CHEST("minecraft:chest", 64, Block.CHEST), + DIAMOND_ORE("minecraft:diamond_ore", 64, Block.DIAMOND_ORE), + DIAMOND_BLOCK("minecraft:diamond_block", 64, Block.DIAMOND_BLOCK), + CRAFTING_TABLE("minecraft:crafting_table", 64, Block.CRAFTING_TABLE), + FARMLAND("minecraft:farmland", 64, Block.FARMLAND), + FURNACE("minecraft:furnace", 64, Block.FURNACE), + LADDER("minecraft:ladder", 64, Block.LADDER), + RAIL("minecraft:rail", 64, Block.RAIL), + COBBLESTONE_STAIRS("minecraft:cobblestone_stairs", 64, Block.COBBLESTONE_STAIRS), + LEVER("minecraft:lever", 64, Block.LEVER), + STONE_PRESSURE_PLATE("minecraft:stone_pressure_plate", 64, Block.STONE_PRESSURE_PLATE), + OAK_PRESSURE_PLATE("minecraft:oak_pressure_plate", 64, Block.OAK_PRESSURE_PLATE), + SPRUCE_PRESSURE_PLATE("minecraft:spruce_pressure_plate", 64, Block.SPRUCE_PRESSURE_PLATE), + BIRCH_PRESSURE_PLATE("minecraft:birch_pressure_plate", 64, Block.BIRCH_PRESSURE_PLATE), + JUNGLE_PRESSURE_PLATE("minecraft:jungle_pressure_plate", 64, Block.JUNGLE_PRESSURE_PLATE), + ACACIA_PRESSURE_PLATE("minecraft:acacia_pressure_plate", 64, Block.ACACIA_PRESSURE_PLATE), + DARK_OAK_PRESSURE_PLATE("minecraft:dark_oak_pressure_plate", 64, Block.DARK_OAK_PRESSURE_PLATE), + REDSTONE_ORE("minecraft:redstone_ore", 64, Block.REDSTONE_ORE), + REDSTONE_TORCH("minecraft:redstone_torch", 64, Block.REDSTONE_TORCH), + STONE_BUTTON("minecraft:stone_button", 64, Block.STONE_BUTTON), + SNOW("minecraft:snow", 64, Block.SNOW), + ICE("minecraft:ice", 64, Block.ICE), + SNOW_BLOCK("minecraft:snow_block", 64, Block.SNOW_BLOCK), + CACTUS("minecraft:cactus", 64, Block.CACTUS), + CLAY("minecraft:clay", 64, Block.CLAY), + JUKEBOX("minecraft:jukebox", 64, Block.JUKEBOX), + OAK_FENCE("minecraft:oak_fence", 64, Block.OAK_FENCE), + SPRUCE_FENCE("minecraft:spruce_fence", 64, Block.SPRUCE_FENCE), + BIRCH_FENCE("minecraft:birch_fence", 64, Block.BIRCH_FENCE), + JUNGLE_FENCE("minecraft:jungle_fence", 64, Block.JUNGLE_FENCE), + ACACIA_FENCE("minecraft:acacia_fence", 64, Block.ACACIA_FENCE), + DARK_OAK_FENCE("minecraft:dark_oak_fence", 64, Block.DARK_OAK_FENCE), + PUMPKIN("minecraft:pumpkin", 64, Block.PUMPKIN), + CARVED_PUMPKIN("minecraft:carved_pumpkin", 64, Block.CARVED_PUMPKIN), + NETHERRACK("minecraft:netherrack", 64, Block.NETHERRACK), + SOUL_SAND("minecraft:soul_sand", 64, Block.SOUL_SAND), + GLOWSTONE("minecraft:glowstone", 64, Block.GLOWSTONE), + JACK_O_LANTERN("minecraft:jack_o_lantern", 64, Block.JACK_O_LANTERN), + OAK_TRAPDOOR("minecraft:oak_trapdoor", 64, Block.OAK_TRAPDOOR), + SPRUCE_TRAPDOOR("minecraft:spruce_trapdoor", 64, Block.SPRUCE_TRAPDOOR), + BIRCH_TRAPDOOR("minecraft:birch_trapdoor", 64, Block.BIRCH_TRAPDOOR), + JUNGLE_TRAPDOOR("minecraft:jungle_trapdoor", 64, Block.JUNGLE_TRAPDOOR), + ACACIA_TRAPDOOR("minecraft:acacia_trapdoor", 64, Block.ACACIA_TRAPDOOR), + DARK_OAK_TRAPDOOR("minecraft:dark_oak_trapdoor", 64, Block.DARK_OAK_TRAPDOOR), + INFESTED_STONE("minecraft:infested_stone", 64, Block.INFESTED_STONE), + INFESTED_COBBLESTONE("minecraft:infested_cobblestone", 64, Block.INFESTED_COBBLESTONE), + INFESTED_STONE_BRICKS("minecraft:infested_stone_bricks", 64, Block.INFESTED_STONE_BRICKS), + INFESTED_MOSSY_STONE_BRICKS("minecraft:infested_mossy_stone_bricks", 64, Block.INFESTED_MOSSY_STONE_BRICKS), + INFESTED_CRACKED_STONE_BRICKS("minecraft:infested_cracked_stone_bricks", 64, Block.INFESTED_CRACKED_STONE_BRICKS), + INFESTED_CHISELED_STONE_BRICKS("minecraft:infested_chiseled_stone_bricks", 64, Block.INFESTED_CHISELED_STONE_BRICKS), + STONE_BRICKS("minecraft:stone_bricks", 64, Block.STONE_BRICKS), + MOSSY_STONE_BRICKS("minecraft:mossy_stone_bricks", 64, Block.MOSSY_STONE_BRICKS), + CRACKED_STONE_BRICKS("minecraft:cracked_stone_bricks", 64, Block.CRACKED_STONE_BRICKS), + CHISELED_STONE_BRICKS("minecraft:chiseled_stone_bricks", 64, Block.CHISELED_STONE_BRICKS), + BROWN_MUSHROOM_BLOCK("minecraft:brown_mushroom_block", 64, Block.BROWN_MUSHROOM_BLOCK), + RED_MUSHROOM_BLOCK("minecraft:red_mushroom_block", 64, Block.RED_MUSHROOM_BLOCK), + MUSHROOM_STEM("minecraft:mushroom_stem", 64, Block.MUSHROOM_STEM), + IRON_BARS("minecraft:iron_bars", 64, Block.IRON_BARS), + GLASS_PANE("minecraft:glass_pane", 64, Block.GLASS_PANE), + MELON("minecraft:melon", 64, Block.MELON), + VINE("minecraft:vine", 64, Block.VINE), + OAK_FENCE_GATE("minecraft:oak_fence_gate", 64, Block.OAK_FENCE_GATE), + SPRUCE_FENCE_GATE("minecraft:spruce_fence_gate", 64, Block.SPRUCE_FENCE_GATE), + BIRCH_FENCE_GATE("minecraft:birch_fence_gate", 64, Block.BIRCH_FENCE_GATE), + JUNGLE_FENCE_GATE("minecraft:jungle_fence_gate", 64, Block.JUNGLE_FENCE_GATE), + ACACIA_FENCE_GATE("minecraft:acacia_fence_gate", 64, Block.ACACIA_FENCE_GATE), + DARK_OAK_FENCE_GATE("minecraft:dark_oak_fence_gate", 64, Block.DARK_OAK_FENCE_GATE), + BRICK_STAIRS("minecraft:brick_stairs", 64, Block.BRICK_STAIRS), + STONE_BRICK_STAIRS("minecraft:stone_brick_stairs", 64, Block.STONE_BRICK_STAIRS), + MYCELIUM("minecraft:mycelium", 64, Block.MYCELIUM), + LILY_PAD("minecraft:lily_pad", 64, Block.LILY_PAD), + NETHER_BRICKS("minecraft:nether_bricks", 64, Block.NETHER_BRICKS), + NETHER_BRICK_FENCE("minecraft:nether_brick_fence", 64, Block.NETHER_BRICK_FENCE), + NETHER_BRICK_STAIRS("minecraft:nether_brick_stairs", 64, Block.NETHER_BRICK_STAIRS), + ENCHANTING_TABLE("minecraft:enchanting_table", 64, Block.ENCHANTING_TABLE), + END_PORTAL_FRAME("minecraft:end_portal_frame", 64, Block.END_PORTAL_FRAME), + END_STONE("minecraft:end_stone", 64, Block.END_STONE), + END_STONE_BRICKS("minecraft:end_stone_bricks", 64, Block.END_STONE_BRICKS), + DRAGON_EGG("minecraft:dragon_egg", 64, Block.DRAGON_EGG), + REDSTONE_LAMP("minecraft:redstone_lamp", 64, Block.REDSTONE_LAMP), + SANDSTONE_STAIRS("minecraft:sandstone_stairs", 64, Block.SANDSTONE_STAIRS), + EMERALD_ORE("minecraft:emerald_ore", 64, Block.EMERALD_ORE), + ENDER_CHEST("minecraft:ender_chest", 64, Block.ENDER_CHEST), + TRIPWIRE_HOOK("minecraft:tripwire_hook", 64, Block.TRIPWIRE_HOOK), + EMERALD_BLOCK("minecraft:emerald_block", 64, Block.EMERALD_BLOCK), + SPRUCE_STAIRS("minecraft:spruce_stairs", 64, Block.SPRUCE_STAIRS), + BIRCH_STAIRS("minecraft:birch_stairs", 64, Block.BIRCH_STAIRS), + JUNGLE_STAIRS("minecraft:jungle_stairs", 64, Block.JUNGLE_STAIRS), + COMMAND_BLOCK("minecraft:command_block", 64, Block.COMMAND_BLOCK), + BEACON("minecraft:beacon", 64, Block.BEACON), + COBBLESTONE_WALL("minecraft:cobblestone_wall", 64, Block.COBBLESTONE_WALL), + MOSSY_COBBLESTONE_WALL("minecraft:mossy_cobblestone_wall", 64, Block.MOSSY_COBBLESTONE_WALL), + BRICK_WALL("minecraft:brick_wall", 64, Block.BRICK_WALL), + PRISMARINE_WALL("minecraft:prismarine_wall", 64, Block.PRISMARINE_WALL), + RED_SANDSTONE_WALL("minecraft:red_sandstone_wall", 64, Block.RED_SANDSTONE_WALL), + MOSSY_STONE_BRICK_WALL("minecraft:mossy_stone_brick_wall", 64, Block.MOSSY_STONE_BRICK_WALL), + GRANITE_WALL("minecraft:granite_wall", 64, Block.GRANITE_WALL), + STONE_BRICK_WALL("minecraft:stone_brick_wall", 64, Block.STONE_BRICK_WALL), + NETHER_BRICK_WALL("minecraft:nether_brick_wall", 64, Block.NETHER_BRICK_WALL), + ANDESITE_WALL("minecraft:andesite_wall", 64, Block.ANDESITE_WALL), + RED_NETHER_BRICK_WALL("minecraft:red_nether_brick_wall", 64, Block.RED_NETHER_BRICK_WALL), + SANDSTONE_WALL("minecraft:sandstone_wall", 64, Block.SANDSTONE_WALL), + END_STONE_BRICK_WALL("minecraft:end_stone_brick_wall", 64, Block.END_STONE_BRICK_WALL), + DIORITE_WALL("minecraft:diorite_wall", 64, Block.DIORITE_WALL), + OAK_BUTTON("minecraft:oak_button", 64, Block.OAK_BUTTON), + SPRUCE_BUTTON("minecraft:spruce_button", 64, Block.SPRUCE_BUTTON), + BIRCH_BUTTON("minecraft:birch_button", 64, Block.BIRCH_BUTTON), + JUNGLE_BUTTON("minecraft:jungle_button", 64, Block.JUNGLE_BUTTON), + ACACIA_BUTTON("minecraft:acacia_button", 64, Block.ACACIA_BUTTON), + DARK_OAK_BUTTON("minecraft:dark_oak_button", 64, Block.DARK_OAK_BUTTON), + ANVIL("minecraft:anvil", 64, Block.ANVIL), + CHIPPED_ANVIL("minecraft:chipped_anvil", 64, Block.CHIPPED_ANVIL), + DAMAGED_ANVIL("minecraft:damaged_anvil", 64, Block.DAMAGED_ANVIL), + TRAPPED_CHEST("minecraft:trapped_chest", 64, Block.TRAPPED_CHEST), + LIGHT_WEIGHTED_PRESSURE_PLATE("minecraft:light_weighted_pressure_plate", 64, Block.LIGHT_WEIGHTED_PRESSURE_PLATE), + HEAVY_WEIGHTED_PRESSURE_PLATE("minecraft:heavy_weighted_pressure_plate", 64, Block.HEAVY_WEIGHTED_PRESSURE_PLATE), + DAYLIGHT_DETECTOR("minecraft:daylight_detector", 64, Block.DAYLIGHT_DETECTOR), + REDSTONE_BLOCK("minecraft:redstone_block", 64, Block.REDSTONE_BLOCK), + NETHER_QUARTZ_ORE("minecraft:nether_quartz_ore", 64, Block.NETHER_QUARTZ_ORE), + HOPPER("minecraft:hopper", 64, Block.HOPPER), + CHISELED_QUARTZ_BLOCK("minecraft:chiseled_quartz_block", 64, Block.CHISELED_QUARTZ_BLOCK), + QUARTZ_BLOCK("minecraft:quartz_block", 64, Block.QUARTZ_BLOCK), + QUARTZ_PILLAR("minecraft:quartz_pillar", 64, Block.QUARTZ_PILLAR), + QUARTZ_STAIRS("minecraft:quartz_stairs", 64, Block.QUARTZ_STAIRS), + ACTIVATOR_RAIL("minecraft:activator_rail", 64, Block.ACTIVATOR_RAIL), + DROPPER("minecraft:dropper", 64, Block.DROPPER), + WHITE_TERRACOTTA("minecraft:white_terracotta", 64, Block.WHITE_TERRACOTTA), + ORANGE_TERRACOTTA("minecraft:orange_terracotta", 64, Block.ORANGE_TERRACOTTA), + MAGENTA_TERRACOTTA("minecraft:magenta_terracotta", 64, Block.MAGENTA_TERRACOTTA), + LIGHT_BLUE_TERRACOTTA("minecraft:light_blue_terracotta", 64, Block.LIGHT_BLUE_TERRACOTTA), + YELLOW_TERRACOTTA("minecraft:yellow_terracotta", 64, Block.YELLOW_TERRACOTTA), + LIME_TERRACOTTA("minecraft:lime_terracotta", 64, Block.LIME_TERRACOTTA), + PINK_TERRACOTTA("minecraft:pink_terracotta", 64, Block.PINK_TERRACOTTA), + GRAY_TERRACOTTA("minecraft:gray_terracotta", 64, Block.GRAY_TERRACOTTA), + LIGHT_GRAY_TERRACOTTA("minecraft:light_gray_terracotta", 64, Block.LIGHT_GRAY_TERRACOTTA), + CYAN_TERRACOTTA("minecraft:cyan_terracotta", 64, Block.CYAN_TERRACOTTA), + PURPLE_TERRACOTTA("minecraft:purple_terracotta", 64, Block.PURPLE_TERRACOTTA), + BLUE_TERRACOTTA("minecraft:blue_terracotta", 64, Block.BLUE_TERRACOTTA), + BROWN_TERRACOTTA("minecraft:brown_terracotta", 64, Block.BROWN_TERRACOTTA), + GREEN_TERRACOTTA("minecraft:green_terracotta", 64, Block.GREEN_TERRACOTTA), + RED_TERRACOTTA("minecraft:red_terracotta", 64, Block.RED_TERRACOTTA), + BLACK_TERRACOTTA("minecraft:black_terracotta", 64, Block.BLACK_TERRACOTTA), + BARRIER("minecraft:barrier", 64, Block.BARRIER), + IRON_TRAPDOOR("minecraft:iron_trapdoor", 64, Block.IRON_TRAPDOOR), + HAY_BLOCK("minecraft:hay_block", 64, Block.HAY_BLOCK), + WHITE_CARPET("minecraft:white_carpet", 64, Block.WHITE_CARPET), + ORANGE_CARPET("minecraft:orange_carpet", 64, Block.ORANGE_CARPET), + MAGENTA_CARPET("minecraft:magenta_carpet", 64, Block.MAGENTA_CARPET), + LIGHT_BLUE_CARPET("minecraft:light_blue_carpet", 64, Block.LIGHT_BLUE_CARPET), + YELLOW_CARPET("minecraft:yellow_carpet", 64, Block.YELLOW_CARPET), + LIME_CARPET("minecraft:lime_carpet", 64, Block.LIME_CARPET), + PINK_CARPET("minecraft:pink_carpet", 64, Block.PINK_CARPET), + GRAY_CARPET("minecraft:gray_carpet", 64, Block.GRAY_CARPET), + LIGHT_GRAY_CARPET("minecraft:light_gray_carpet", 64, Block.LIGHT_GRAY_CARPET), + CYAN_CARPET("minecraft:cyan_carpet", 64, Block.CYAN_CARPET), + PURPLE_CARPET("minecraft:purple_carpet", 64, Block.PURPLE_CARPET), + BLUE_CARPET("minecraft:blue_carpet", 64, Block.BLUE_CARPET), + BROWN_CARPET("minecraft:brown_carpet", 64, Block.BROWN_CARPET), + GREEN_CARPET("minecraft:green_carpet", 64, Block.GREEN_CARPET), + RED_CARPET("minecraft:red_carpet", 64, Block.RED_CARPET), + BLACK_CARPET("minecraft:black_carpet", 64, Block.BLACK_CARPET), + TERRACOTTA("minecraft:terracotta", 64, Block.TERRACOTTA), + COAL_BLOCK("minecraft:coal_block", 64, Block.COAL_BLOCK), + PACKED_ICE("minecraft:packed_ice", 64, Block.PACKED_ICE), + ACACIA_STAIRS("minecraft:acacia_stairs", 64, Block.ACACIA_STAIRS), + DARK_OAK_STAIRS("minecraft:dark_oak_stairs", 64, Block.DARK_OAK_STAIRS), + SLIME_BLOCK("minecraft:slime_block", 64, Block.SLIME_BLOCK), + GRASS_PATH("minecraft:grass_path", 64, Block.GRASS_PATH), + SUNFLOWER("minecraft:sunflower", 64, Block.SUNFLOWER), + LILAC("minecraft:lilac", 64, Block.LILAC), + ROSE_BUSH("minecraft:rose_bush", 64, Block.ROSE_BUSH), + PEONY("minecraft:peony", 64, Block.PEONY), + TALL_GRASS("minecraft:tall_grass", 64, Block.TALL_GRASS), + LARGE_FERN("minecraft:large_fern", 64, Block.LARGE_FERN), + WHITE_STAINED_GLASS("minecraft:white_stained_glass", 64, Block.WHITE_STAINED_GLASS), + ORANGE_STAINED_GLASS("minecraft:orange_stained_glass", 64, Block.ORANGE_STAINED_GLASS), + MAGENTA_STAINED_GLASS("minecraft:magenta_stained_glass", 64, Block.MAGENTA_STAINED_GLASS), + LIGHT_BLUE_STAINED_GLASS("minecraft:light_blue_stained_glass", 64, Block.LIGHT_BLUE_STAINED_GLASS), + YELLOW_STAINED_GLASS("minecraft:yellow_stained_glass", 64, Block.YELLOW_STAINED_GLASS), + LIME_STAINED_GLASS("minecraft:lime_stained_glass", 64, Block.LIME_STAINED_GLASS), + PINK_STAINED_GLASS("minecraft:pink_stained_glass", 64, Block.PINK_STAINED_GLASS), + GRAY_STAINED_GLASS("minecraft:gray_stained_glass", 64, Block.GRAY_STAINED_GLASS), + LIGHT_GRAY_STAINED_GLASS("minecraft:light_gray_stained_glass", 64, Block.LIGHT_GRAY_STAINED_GLASS), + CYAN_STAINED_GLASS("minecraft:cyan_stained_glass", 64, Block.CYAN_STAINED_GLASS), + PURPLE_STAINED_GLASS("minecraft:purple_stained_glass", 64, Block.PURPLE_STAINED_GLASS), + BLUE_STAINED_GLASS("minecraft:blue_stained_glass", 64, Block.BLUE_STAINED_GLASS), + BROWN_STAINED_GLASS("minecraft:brown_stained_glass", 64, Block.BROWN_STAINED_GLASS), + GREEN_STAINED_GLASS("minecraft:green_stained_glass", 64, Block.GREEN_STAINED_GLASS), + RED_STAINED_GLASS("minecraft:red_stained_glass", 64, Block.RED_STAINED_GLASS), + BLACK_STAINED_GLASS("minecraft:black_stained_glass", 64, Block.BLACK_STAINED_GLASS), + WHITE_STAINED_GLASS_PANE("minecraft:white_stained_glass_pane", 64, Block.WHITE_STAINED_GLASS_PANE), + ORANGE_STAINED_GLASS_PANE("minecraft:orange_stained_glass_pane", 64, Block.ORANGE_STAINED_GLASS_PANE), + MAGENTA_STAINED_GLASS_PANE("minecraft:magenta_stained_glass_pane", 64, Block.MAGENTA_STAINED_GLASS_PANE), + LIGHT_BLUE_STAINED_GLASS_PANE("minecraft:light_blue_stained_glass_pane", 64, Block.LIGHT_BLUE_STAINED_GLASS_PANE), + YELLOW_STAINED_GLASS_PANE("minecraft:yellow_stained_glass_pane", 64, Block.YELLOW_STAINED_GLASS_PANE), + LIME_STAINED_GLASS_PANE("minecraft:lime_stained_glass_pane", 64, Block.LIME_STAINED_GLASS_PANE), + PINK_STAINED_GLASS_PANE("minecraft:pink_stained_glass_pane", 64, Block.PINK_STAINED_GLASS_PANE), + GRAY_STAINED_GLASS_PANE("minecraft:gray_stained_glass_pane", 64, Block.GRAY_STAINED_GLASS_PANE), + LIGHT_GRAY_STAINED_GLASS_PANE("minecraft:light_gray_stained_glass_pane", 64, Block.LIGHT_GRAY_STAINED_GLASS_PANE), + CYAN_STAINED_GLASS_PANE("minecraft:cyan_stained_glass_pane", 64, Block.CYAN_STAINED_GLASS_PANE), + PURPLE_STAINED_GLASS_PANE("minecraft:purple_stained_glass_pane", 64, Block.PURPLE_STAINED_GLASS_PANE), + BLUE_STAINED_GLASS_PANE("minecraft:blue_stained_glass_pane", 64, Block.BLUE_STAINED_GLASS_PANE), + BROWN_STAINED_GLASS_PANE("minecraft:brown_stained_glass_pane", 64, Block.BROWN_STAINED_GLASS_PANE), + GREEN_STAINED_GLASS_PANE("minecraft:green_stained_glass_pane", 64, Block.GREEN_STAINED_GLASS_PANE), + RED_STAINED_GLASS_PANE("minecraft:red_stained_glass_pane", 64, Block.RED_STAINED_GLASS_PANE), + BLACK_STAINED_GLASS_PANE("minecraft:black_stained_glass_pane", 64, Block.BLACK_STAINED_GLASS_PANE), + PRISMARINE("minecraft:prismarine", 64, Block.PRISMARINE), + PRISMARINE_BRICKS("minecraft:prismarine_bricks", 64, Block.PRISMARINE_BRICKS), + DARK_PRISMARINE("minecraft:dark_prismarine", 64, Block.DARK_PRISMARINE), + PRISMARINE_STAIRS("minecraft:prismarine_stairs", 64, Block.PRISMARINE_STAIRS), + PRISMARINE_BRICK_STAIRS("minecraft:prismarine_brick_stairs", 64, Block.PRISMARINE_BRICK_STAIRS), + DARK_PRISMARINE_STAIRS("minecraft:dark_prismarine_stairs", 64, Block.DARK_PRISMARINE_STAIRS), + SEA_LANTERN("minecraft:sea_lantern", 64, Block.SEA_LANTERN), + RED_SANDSTONE("minecraft:red_sandstone", 64, Block.RED_SANDSTONE), + CHISELED_RED_SANDSTONE("minecraft:chiseled_red_sandstone", 64, Block.CHISELED_RED_SANDSTONE), + CUT_RED_SANDSTONE("minecraft:cut_red_sandstone", 64, Block.CUT_RED_SANDSTONE), + RED_SANDSTONE_STAIRS("minecraft:red_sandstone_stairs", 64, Block.RED_SANDSTONE_STAIRS), + REPEATING_COMMAND_BLOCK("minecraft:repeating_command_block", 64, Block.REPEATING_COMMAND_BLOCK), + CHAIN_COMMAND_BLOCK("minecraft:chain_command_block", 64, Block.CHAIN_COMMAND_BLOCK), + MAGMA_BLOCK("minecraft:magma_block", 64, Block.MAGMA_BLOCK), + NETHER_WART_BLOCK("minecraft:nether_wart_block", 64, Block.NETHER_WART_BLOCK), + RED_NETHER_BRICKS("minecraft:red_nether_bricks", 64, Block.RED_NETHER_BRICKS), + BONE_BLOCK("minecraft:bone_block", 64, Block.BONE_BLOCK), + STRUCTURE_VOID("minecraft:structure_void", 64, Block.STRUCTURE_VOID), + OBSERVER("minecraft:observer", 64, Block.OBSERVER), + SHULKER_BOX("minecraft:shulker_box", 1, Block.SHULKER_BOX), + WHITE_SHULKER_BOX("minecraft:white_shulker_box", 1, Block.WHITE_SHULKER_BOX), + ORANGE_SHULKER_BOX("minecraft:orange_shulker_box", 1, Block.ORANGE_SHULKER_BOX), + MAGENTA_SHULKER_BOX("minecraft:magenta_shulker_box", 1, Block.MAGENTA_SHULKER_BOX), + LIGHT_BLUE_SHULKER_BOX("minecraft:light_blue_shulker_box", 1, Block.LIGHT_BLUE_SHULKER_BOX), + YELLOW_SHULKER_BOX("minecraft:yellow_shulker_box", 1, Block.YELLOW_SHULKER_BOX), + LIME_SHULKER_BOX("minecraft:lime_shulker_box", 1, Block.LIME_SHULKER_BOX), + PINK_SHULKER_BOX("minecraft:pink_shulker_box", 1, Block.PINK_SHULKER_BOX), + GRAY_SHULKER_BOX("minecraft:gray_shulker_box", 1, Block.GRAY_SHULKER_BOX), + LIGHT_GRAY_SHULKER_BOX("minecraft:light_gray_shulker_box", 1, Block.LIGHT_GRAY_SHULKER_BOX), + CYAN_SHULKER_BOX("minecraft:cyan_shulker_box", 1, Block.CYAN_SHULKER_BOX), + PURPLE_SHULKER_BOX("minecraft:purple_shulker_box", 1, Block.PURPLE_SHULKER_BOX), + BLUE_SHULKER_BOX("minecraft:blue_shulker_box", 1, Block.BLUE_SHULKER_BOX), + BROWN_SHULKER_BOX("minecraft:brown_shulker_box", 1, Block.BROWN_SHULKER_BOX), + GREEN_SHULKER_BOX("minecraft:green_shulker_box", 1, Block.GREEN_SHULKER_BOX), + RED_SHULKER_BOX("minecraft:red_shulker_box", 1, Block.RED_SHULKER_BOX), + BLACK_SHULKER_BOX("minecraft:black_shulker_box", 1, Block.BLACK_SHULKER_BOX), + WHITE_GLAZED_TERRACOTTA("minecraft:white_glazed_terracotta", 64, Block.WHITE_GLAZED_TERRACOTTA), + ORANGE_GLAZED_TERRACOTTA("minecraft:orange_glazed_terracotta", 64, Block.ORANGE_GLAZED_TERRACOTTA), + MAGENTA_GLAZED_TERRACOTTA("minecraft:magenta_glazed_terracotta", 64, Block.MAGENTA_GLAZED_TERRACOTTA), + LIGHT_BLUE_GLAZED_TERRACOTTA("minecraft:light_blue_glazed_terracotta", 64, Block.LIGHT_BLUE_GLAZED_TERRACOTTA), + YELLOW_GLAZED_TERRACOTTA("minecraft:yellow_glazed_terracotta", 64, Block.YELLOW_GLAZED_TERRACOTTA), + LIME_GLAZED_TERRACOTTA("minecraft:lime_glazed_terracotta", 64, Block.LIME_GLAZED_TERRACOTTA), + PINK_GLAZED_TERRACOTTA("minecraft:pink_glazed_terracotta", 64, Block.PINK_GLAZED_TERRACOTTA), + GRAY_GLAZED_TERRACOTTA("minecraft:gray_glazed_terracotta", 64, Block.GRAY_GLAZED_TERRACOTTA), + LIGHT_GRAY_GLAZED_TERRACOTTA("minecraft:light_gray_glazed_terracotta", 64, Block.LIGHT_GRAY_GLAZED_TERRACOTTA), + CYAN_GLAZED_TERRACOTTA("minecraft:cyan_glazed_terracotta", 64, Block.CYAN_GLAZED_TERRACOTTA), + PURPLE_GLAZED_TERRACOTTA("minecraft:purple_glazed_terracotta", 64, Block.PURPLE_GLAZED_TERRACOTTA), + BLUE_GLAZED_TERRACOTTA("minecraft:blue_glazed_terracotta", 64, Block.BLUE_GLAZED_TERRACOTTA), + BROWN_GLAZED_TERRACOTTA("minecraft:brown_glazed_terracotta", 64, Block.BROWN_GLAZED_TERRACOTTA), + GREEN_GLAZED_TERRACOTTA("minecraft:green_glazed_terracotta", 64, Block.GREEN_GLAZED_TERRACOTTA), + RED_GLAZED_TERRACOTTA("minecraft:red_glazed_terracotta", 64, Block.RED_GLAZED_TERRACOTTA), + BLACK_GLAZED_TERRACOTTA("minecraft:black_glazed_terracotta", 64, Block.BLACK_GLAZED_TERRACOTTA), + WHITE_CONCRETE("minecraft:white_concrete", 64, Block.WHITE_CONCRETE), + ORANGE_CONCRETE("minecraft:orange_concrete", 64, Block.ORANGE_CONCRETE), + MAGENTA_CONCRETE("minecraft:magenta_concrete", 64, Block.MAGENTA_CONCRETE), + LIGHT_BLUE_CONCRETE("minecraft:light_blue_concrete", 64, Block.LIGHT_BLUE_CONCRETE), + YELLOW_CONCRETE("minecraft:yellow_concrete", 64, Block.YELLOW_CONCRETE), + LIME_CONCRETE("minecraft:lime_concrete", 64, Block.LIME_CONCRETE), + PINK_CONCRETE("minecraft:pink_concrete", 64, Block.PINK_CONCRETE), + GRAY_CONCRETE("minecraft:gray_concrete", 64, Block.GRAY_CONCRETE), + LIGHT_GRAY_CONCRETE("minecraft:light_gray_concrete", 64, Block.LIGHT_GRAY_CONCRETE), + CYAN_CONCRETE("minecraft:cyan_concrete", 64, Block.CYAN_CONCRETE), + PURPLE_CONCRETE("minecraft:purple_concrete", 64, Block.PURPLE_CONCRETE), + BLUE_CONCRETE("minecraft:blue_concrete", 64, Block.BLUE_CONCRETE), + BROWN_CONCRETE("minecraft:brown_concrete", 64, Block.BROWN_CONCRETE), + GREEN_CONCRETE("minecraft:green_concrete", 64, Block.GREEN_CONCRETE), + RED_CONCRETE("minecraft:red_concrete", 64, Block.RED_CONCRETE), + BLACK_CONCRETE("minecraft:black_concrete", 64, Block.BLACK_CONCRETE), + WHITE_CONCRETE_POWDER("minecraft:white_concrete_powder", 64, Block.WHITE_CONCRETE_POWDER), + ORANGE_CONCRETE_POWDER("minecraft:orange_concrete_powder", 64, Block.ORANGE_CONCRETE_POWDER), + MAGENTA_CONCRETE_POWDER("minecraft:magenta_concrete_powder", 64, Block.MAGENTA_CONCRETE_POWDER), + LIGHT_BLUE_CONCRETE_POWDER("minecraft:light_blue_concrete_powder", 64, Block.LIGHT_BLUE_CONCRETE_POWDER), + YELLOW_CONCRETE_POWDER("minecraft:yellow_concrete_powder", 64, Block.YELLOW_CONCRETE_POWDER), + LIME_CONCRETE_POWDER("minecraft:lime_concrete_powder", 64, Block.LIME_CONCRETE_POWDER), + PINK_CONCRETE_POWDER("minecraft:pink_concrete_powder", 64, Block.PINK_CONCRETE_POWDER), + GRAY_CONCRETE_POWDER("minecraft:gray_concrete_powder", 64, Block.GRAY_CONCRETE_POWDER), + LIGHT_GRAY_CONCRETE_POWDER("minecraft:light_gray_concrete_powder", 64, Block.LIGHT_GRAY_CONCRETE_POWDER), + CYAN_CONCRETE_POWDER("minecraft:cyan_concrete_powder", 64, Block.CYAN_CONCRETE_POWDER), + PURPLE_CONCRETE_POWDER("minecraft:purple_concrete_powder", 64, Block.PURPLE_CONCRETE_POWDER), + BLUE_CONCRETE_POWDER("minecraft:blue_concrete_powder", 64, Block.BLUE_CONCRETE_POWDER), + BROWN_CONCRETE_POWDER("minecraft:brown_concrete_powder", 64, Block.BROWN_CONCRETE_POWDER), + GREEN_CONCRETE_POWDER("minecraft:green_concrete_powder", 64, Block.GREEN_CONCRETE_POWDER), + RED_CONCRETE_POWDER("minecraft:red_concrete_powder", 64, Block.RED_CONCRETE_POWDER), + BLACK_CONCRETE_POWDER("minecraft:black_concrete_powder", 64, Block.BLACK_CONCRETE_POWDER), + TURTLE_EGG("minecraft:turtle_egg", 64, Block.TURTLE_EGG), + DEAD_TUBE_CORAL_BLOCK("minecraft:dead_tube_coral_block", 64, Block.DEAD_TUBE_CORAL_BLOCK), + DEAD_BRAIN_CORAL_BLOCK("minecraft:dead_brain_coral_block", 64, Block.DEAD_BRAIN_CORAL_BLOCK), + DEAD_BUBBLE_CORAL_BLOCK("minecraft:dead_bubble_coral_block", 64, Block.DEAD_BUBBLE_CORAL_BLOCK), + DEAD_FIRE_CORAL_BLOCK("minecraft:dead_fire_coral_block", 64, Block.DEAD_FIRE_CORAL_BLOCK), + DEAD_HORN_CORAL_BLOCK("minecraft:dead_horn_coral_block", 64, Block.DEAD_HORN_CORAL_BLOCK), + TUBE_CORAL_BLOCK("minecraft:tube_coral_block", 64, Block.TUBE_CORAL_BLOCK), + BRAIN_CORAL_BLOCK("minecraft:brain_coral_block", 64, Block.BRAIN_CORAL_BLOCK), + BUBBLE_CORAL_BLOCK("minecraft:bubble_coral_block", 64, Block.BUBBLE_CORAL_BLOCK), + FIRE_CORAL_BLOCK("minecraft:fire_coral_block", 64, Block.FIRE_CORAL_BLOCK), + HORN_CORAL_BLOCK("minecraft:horn_coral_block", 64, Block.HORN_CORAL_BLOCK), + TUBE_CORAL("minecraft:tube_coral", 64, Block.TUBE_CORAL), + BRAIN_CORAL("minecraft:brain_coral", 64, Block.BRAIN_CORAL), + BUBBLE_CORAL("minecraft:bubble_coral", 64, Block.BUBBLE_CORAL), + FIRE_CORAL("minecraft:fire_coral", 64, Block.FIRE_CORAL), + HORN_CORAL("minecraft:horn_coral", 64, Block.HORN_CORAL), + DEAD_BRAIN_CORAL("minecraft:dead_brain_coral", 64, Block.DEAD_BRAIN_CORAL), + DEAD_BUBBLE_CORAL("minecraft:dead_bubble_coral", 64, Block.DEAD_BUBBLE_CORAL), + DEAD_FIRE_CORAL("minecraft:dead_fire_coral", 64, Block.DEAD_FIRE_CORAL), + DEAD_HORN_CORAL("minecraft:dead_horn_coral", 64, Block.DEAD_HORN_CORAL), + DEAD_TUBE_CORAL("minecraft:dead_tube_coral", 64, Block.DEAD_TUBE_CORAL), + TUBE_CORAL_FAN("minecraft:tube_coral_fan", 64, Block.TUBE_CORAL_FAN), + BRAIN_CORAL_FAN("minecraft:brain_coral_fan", 64, Block.BRAIN_CORAL_FAN), + BUBBLE_CORAL_FAN("minecraft:bubble_coral_fan", 64, Block.BUBBLE_CORAL_FAN), + FIRE_CORAL_FAN("minecraft:fire_coral_fan", 64, Block.FIRE_CORAL_FAN), + HORN_CORAL_FAN("minecraft:horn_coral_fan", 64, Block.HORN_CORAL_FAN), + DEAD_TUBE_CORAL_FAN("minecraft:dead_tube_coral_fan", 64, Block.DEAD_TUBE_CORAL_FAN), + DEAD_BRAIN_CORAL_FAN("minecraft:dead_brain_coral_fan", 64, Block.DEAD_BRAIN_CORAL_FAN), + DEAD_BUBBLE_CORAL_FAN("minecraft:dead_bubble_coral_fan", 64, Block.DEAD_BUBBLE_CORAL_FAN), + DEAD_FIRE_CORAL_FAN("minecraft:dead_fire_coral_fan", 64, Block.DEAD_FIRE_CORAL_FAN), + DEAD_HORN_CORAL_FAN("minecraft:dead_horn_coral_fan", 64, Block.DEAD_HORN_CORAL_FAN), + BLUE_ICE("minecraft:blue_ice", 64, Block.BLUE_ICE), + CONDUIT("minecraft:conduit", 64, Block.CONDUIT), + POLISHED_GRANITE_STAIRS("minecraft:polished_granite_stairs", 64, Block.POLISHED_GRANITE_STAIRS), + SMOOTH_RED_SANDSTONE_STAIRS("minecraft:smooth_red_sandstone_stairs", 64, Block.SMOOTH_RED_SANDSTONE_STAIRS), + MOSSY_STONE_BRICK_STAIRS("minecraft:mossy_stone_brick_stairs", 64, Block.MOSSY_STONE_BRICK_STAIRS), + POLISHED_DIORITE_STAIRS("minecraft:polished_diorite_stairs", 64, Block.POLISHED_DIORITE_STAIRS), + MOSSY_COBBLESTONE_STAIRS("minecraft:mossy_cobblestone_stairs", 64, Block.MOSSY_COBBLESTONE_STAIRS), + END_STONE_BRICK_STAIRS("minecraft:end_stone_brick_stairs", 64, Block.END_STONE_BRICK_STAIRS), + STONE_STAIRS("minecraft:stone_stairs", 64, Block.STONE_STAIRS), + SMOOTH_SANDSTONE_STAIRS("minecraft:smooth_sandstone_stairs", 64, Block.SMOOTH_SANDSTONE_STAIRS), + SMOOTH_QUARTZ_STAIRS("minecraft:smooth_quartz_stairs", 64, Block.SMOOTH_QUARTZ_STAIRS), + GRANITE_STAIRS("minecraft:granite_stairs", 64, Block.GRANITE_STAIRS), + ANDESITE_STAIRS("minecraft:andesite_stairs", 64, Block.ANDESITE_STAIRS), + RED_NETHER_BRICK_STAIRS("minecraft:red_nether_brick_stairs", 64, Block.RED_NETHER_BRICK_STAIRS), + POLISHED_ANDESITE_STAIRS("minecraft:polished_andesite_stairs", 64, Block.POLISHED_ANDESITE_STAIRS), + DIORITE_STAIRS("minecraft:diorite_stairs", 64, Block.DIORITE_STAIRS), + POLISHED_GRANITE_SLAB("minecraft:polished_granite_slab", 64, Block.POLISHED_GRANITE_SLAB), + SMOOTH_RED_SANDSTONE_SLAB("minecraft:smooth_red_sandstone_slab", 64, Block.SMOOTH_RED_SANDSTONE_SLAB), + MOSSY_STONE_BRICK_SLAB("minecraft:mossy_stone_brick_slab", 64, Block.MOSSY_STONE_BRICK_SLAB), + POLISHED_DIORITE_SLAB("minecraft:polished_diorite_slab", 64, Block.POLISHED_DIORITE_SLAB), + MOSSY_COBBLESTONE_SLAB("minecraft:mossy_cobblestone_slab", 64, Block.MOSSY_COBBLESTONE_SLAB), + END_STONE_BRICK_SLAB("minecraft:end_stone_brick_slab", 64, Block.END_STONE_BRICK_SLAB), + SMOOTH_SANDSTONE_SLAB("minecraft:smooth_sandstone_slab", 64, Block.SMOOTH_SANDSTONE_SLAB), + SMOOTH_QUARTZ_SLAB("minecraft:smooth_quartz_slab", 64, Block.SMOOTH_QUARTZ_SLAB), + GRANITE_SLAB("minecraft:granite_slab", 64, Block.GRANITE_SLAB), + ANDESITE_SLAB("minecraft:andesite_slab", 64, Block.ANDESITE_SLAB), + RED_NETHER_BRICK_SLAB("minecraft:red_nether_brick_slab", 64, Block.RED_NETHER_BRICK_SLAB), + POLISHED_ANDESITE_SLAB("minecraft:polished_andesite_slab", 64, Block.POLISHED_ANDESITE_SLAB), + DIORITE_SLAB("minecraft:diorite_slab", 64, Block.DIORITE_SLAB), + SCAFFOLDING("minecraft:scaffolding", 64, Block.SCAFFOLDING), + IRON_DOOR("minecraft:iron_door", 64, Block.IRON_DOOR), + OAK_DOOR("minecraft:oak_door", 64, Block.OAK_DOOR), + SPRUCE_DOOR("minecraft:spruce_door", 64, Block.SPRUCE_DOOR), + BIRCH_DOOR("minecraft:birch_door", 64, Block.BIRCH_DOOR), + JUNGLE_DOOR("minecraft:jungle_door", 64, Block.JUNGLE_DOOR), + ACACIA_DOOR("minecraft:acacia_door", 64, Block.ACACIA_DOOR), + DARK_OAK_DOOR("minecraft:dark_oak_door", 64, Block.DARK_OAK_DOOR), + REPEATER("minecraft:repeater", 64, Block.REPEATER), + COMPARATOR("minecraft:comparator", 64, Block.COMPARATOR), + STRUCTURE_BLOCK("minecraft:structure_block", 64, Block.STRUCTURE_BLOCK), + JIGSAW("minecraft:jigsaw", 64, Block.JIGSAW), + COMPOSTER("minecraft:composter", 64, Block.COMPOSTER), + TURTLE_HELMET("minecraft:turtle_helmet", 1, null), + SCUTE("minecraft:scute", 64, null), + IRON_SHOVEL("minecraft:iron_shovel", 1, null), + IRON_PICKAXE("minecraft:iron_pickaxe", 1, null), + IRON_AXE("minecraft:iron_axe", 1, null), + FLINT_AND_STEEL("minecraft:flint_and_steel", 1, null), + APPLE("minecraft:apple", 64, null), + BOW("minecraft:bow", 1, null), + ARROW("minecraft:arrow", 64, null), + COAL("minecraft:coal", 64, null), + CHARCOAL("minecraft:charcoal", 64, null), + DIAMOND("minecraft:diamond", 64, null), + IRON_INGOT("minecraft:iron_ingot", 64, null), + GOLD_INGOT("minecraft:gold_ingot", 64, null), + IRON_SWORD("minecraft:iron_sword", 1, null), + WOODEN_SWORD("minecraft:wooden_sword", 1, null), + WOODEN_SHOVEL("minecraft:wooden_shovel", 1, null), + WOODEN_PICKAXE("minecraft:wooden_pickaxe", 1, null), + WOODEN_AXE("minecraft:wooden_axe", 1, null), + STONE_SWORD("minecraft:stone_sword", 1, null), + STONE_SHOVEL("minecraft:stone_shovel", 1, null), + STONE_PICKAXE("minecraft:stone_pickaxe", 1, null), + STONE_AXE("minecraft:stone_axe", 1, null), + DIAMOND_SWORD("minecraft:diamond_sword", 1, null), + DIAMOND_SHOVEL("minecraft:diamond_shovel", 1, null), + DIAMOND_PICKAXE("minecraft:diamond_pickaxe", 1, null), + DIAMOND_AXE("minecraft:diamond_axe", 1, null), + STICK("minecraft:stick", 64, null), + BOWL("minecraft:bowl", 64, null), + MUSHROOM_STEW("minecraft:mushroom_stew", 1, null), + GOLDEN_SWORD("minecraft:golden_sword", 1, null), + GOLDEN_SHOVEL("minecraft:golden_shovel", 1, null), + GOLDEN_PICKAXE("minecraft:golden_pickaxe", 1, null), + GOLDEN_AXE("minecraft:golden_axe", 1, null), + STRING("minecraft:string", 64, null), + FEATHER("minecraft:feather", 64, null), + GUNPOWDER("minecraft:gunpowder", 64, null), + WOODEN_HOE("minecraft:wooden_hoe", 1, null), + STONE_HOE("minecraft:stone_hoe", 1, null), + IRON_HOE("minecraft:iron_hoe", 1, null), + DIAMOND_HOE("minecraft:diamond_hoe", 1, null), + GOLDEN_HOE("minecraft:golden_hoe", 1, null), + WHEAT_SEEDS("minecraft:wheat_seeds", 64, null), + WHEAT("minecraft:wheat", 64, Block.WHEAT), + BREAD("minecraft:bread", 64, null), + LEATHER_HELMET("minecraft:leather_helmet", 1, null), + LEATHER_CHESTPLATE("minecraft:leather_chestplate", 1, null), + LEATHER_LEGGINGS("minecraft:leather_leggings", 1, null), + LEATHER_BOOTS("minecraft:leather_boots", 1, null), + CHAINMAIL_HELMET("minecraft:chainmail_helmet", 1, null), + CHAINMAIL_CHESTPLATE("minecraft:chainmail_chestplate", 1, null), + CHAINMAIL_LEGGINGS("minecraft:chainmail_leggings", 1, null), + CHAINMAIL_BOOTS("minecraft:chainmail_boots", 1, null), + IRON_HELMET("minecraft:iron_helmet", 1, null), + IRON_CHESTPLATE("minecraft:iron_chestplate", 1, null), + IRON_LEGGINGS("minecraft:iron_leggings", 1, null), + IRON_BOOTS("minecraft:iron_boots", 1, null), + DIAMOND_HELMET("minecraft:diamond_helmet", 1, null), + DIAMOND_CHESTPLATE("minecraft:diamond_chestplate", 1, null), + DIAMOND_LEGGINGS("minecraft:diamond_leggings", 1, null), + DIAMOND_BOOTS("minecraft:diamond_boots", 1, null), + GOLDEN_HELMET("minecraft:golden_helmet", 1, null), + GOLDEN_CHESTPLATE("minecraft:golden_chestplate", 1, null), + GOLDEN_LEGGINGS("minecraft:golden_leggings", 1, null), + GOLDEN_BOOTS("minecraft:golden_boots", 1, null), + FLINT("minecraft:flint", 64, null), + PORKCHOP("minecraft:porkchop", 64, null), + COOKED_PORKCHOP("minecraft:cooked_porkchop", 64, null), + PAINTING("minecraft:painting", 64, null), + GOLDEN_APPLE("minecraft:golden_apple", 64, null), + ENCHANTED_GOLDEN_APPLE("minecraft:enchanted_golden_apple", 64, null), + OAK_SIGN("minecraft:oak_sign", 16, Block.OAK_SIGN), + SPRUCE_SIGN("minecraft:spruce_sign", 16, Block.SPRUCE_SIGN), + BIRCH_SIGN("minecraft:birch_sign", 16, Block.BIRCH_SIGN), + JUNGLE_SIGN("minecraft:jungle_sign", 16, Block.JUNGLE_SIGN), + ACACIA_SIGN("minecraft:acacia_sign", 16, Block.ACACIA_SIGN), + DARK_OAK_SIGN("minecraft:dark_oak_sign", 16, Block.DARK_OAK_SIGN), + BUCKET("minecraft:bucket", 16, null), + WATER_BUCKET("minecraft:water_bucket", 1, null), + LAVA_BUCKET("minecraft:lava_bucket", 1, null), + MINECART("minecraft:minecart", 1, null), + SADDLE("minecraft:saddle", 1, null), + REDSTONE("minecraft:redstone", 64, Block.REDSTONE_WIRE), + SNOWBALL("minecraft:snowball", 16, null), + OAK_BOAT("minecraft:oak_boat", 1, null), + LEATHER("minecraft:leather", 64, null), + MILK_BUCKET("minecraft:milk_bucket", 1, null), + PUFFERFISH_BUCKET("minecraft:pufferfish_bucket", 1, null), + SALMON_BUCKET("minecraft:salmon_bucket", 1, null), + COD_BUCKET("minecraft:cod_bucket", 1, null), + TROPICAL_FISH_BUCKET("minecraft:tropical_fish_bucket", 1, null), + BRICK("minecraft:brick", 64, null), + CLAY_BALL("minecraft:clay_ball", 64, null), + SUGAR_CANE("minecraft:sugar_cane", 64, Block.SUGAR_CANE), + KELP("minecraft:kelp", 64, Block.KELP), + DRIED_KELP_BLOCK("minecraft:dried_kelp_block", 64, Block.DRIED_KELP_BLOCK), + BAMBOO("minecraft:bamboo", 64, Block.BAMBOO), + PAPER("minecraft:paper", 64, null), + BOOK("minecraft:book", 64, null), + SLIME_BALL("minecraft:slime_ball", 64, null), + CHEST_MINECART("minecraft:chest_minecart", 1, null), + FURNACE_MINECART("minecraft:furnace_minecart", 1, null), + EGG("minecraft:egg", 16, null), + COMPASS("minecraft:compass", 64, null), + FISHING_ROD("minecraft:fishing_rod", 1, null), + CLOCK("minecraft:clock", 64, null), + GLOWSTONE_DUST("minecraft:glowstone_dust", 64, null), + COD("minecraft:cod", 64, null), + SALMON("minecraft:salmon", 64, null), + TROPICAL_FISH("minecraft:tropical_fish", 64, null), + PUFFERFISH("minecraft:pufferfish", 64, null), + COOKED_COD("minecraft:cooked_cod", 64, null), + COOKED_SALMON("minecraft:cooked_salmon", 64, null), + INK_SAC("minecraft:ink_sac", 64, null), + RED_DYE("minecraft:red_dye", 64, null), + GREEN_DYE("minecraft:green_dye", 64, null), + COCOA_BEANS("minecraft:cocoa_beans", 64, null), + LAPIS_LAZULI("minecraft:lapis_lazuli", 64, null), + PURPLE_DYE("minecraft:purple_dye", 64, null), + CYAN_DYE("minecraft:cyan_dye", 64, null), + LIGHT_GRAY_DYE("minecraft:light_gray_dye", 64, null), + GRAY_DYE("minecraft:gray_dye", 64, null), + PINK_DYE("minecraft:pink_dye", 64, null), + LIME_DYE("minecraft:lime_dye", 64, null), + YELLOW_DYE("minecraft:yellow_dye", 64, null), + LIGHT_BLUE_DYE("minecraft:light_blue_dye", 64, null), + MAGENTA_DYE("minecraft:magenta_dye", 64, null), + ORANGE_DYE("minecraft:orange_dye", 64, null), + BONE_MEAL("minecraft:bone_meal", 64, null), + BLUE_DYE("minecraft:blue_dye", 64, null), + BROWN_DYE("minecraft:brown_dye", 64, null), + BLACK_DYE("minecraft:black_dye", 64, null), + WHITE_DYE("minecraft:white_dye", 64, null), + BONE("minecraft:bone", 64, null), + SUGAR("minecraft:sugar", 64, null), + CAKE("minecraft:cake", 1, Block.CAKE), + WHITE_BED("minecraft:white_bed", 1, Block.WHITE_BED), + ORANGE_BED("minecraft:orange_bed", 1, Block.ORANGE_BED), + MAGENTA_BED("minecraft:magenta_bed", 1, Block.MAGENTA_BED), + LIGHT_BLUE_BED("minecraft:light_blue_bed", 1, Block.LIGHT_BLUE_BED), + YELLOW_BED("minecraft:yellow_bed", 1, Block.YELLOW_BED), + LIME_BED("minecraft:lime_bed", 1, Block.LIME_BED), + PINK_BED("minecraft:pink_bed", 1, Block.PINK_BED), + GRAY_BED("minecraft:gray_bed", 1, Block.GRAY_BED), + LIGHT_GRAY_BED("minecraft:light_gray_bed", 1, Block.LIGHT_GRAY_BED), + CYAN_BED("minecraft:cyan_bed", 1, Block.CYAN_BED), + PURPLE_BED("minecraft:purple_bed", 1, Block.PURPLE_BED), + BLUE_BED("minecraft:blue_bed", 1, Block.BLUE_BED), + BROWN_BED("minecraft:brown_bed", 1, Block.BROWN_BED), + GREEN_BED("minecraft:green_bed", 1, Block.GREEN_BED), + RED_BED("minecraft:red_bed", 1, Block.RED_BED), + BLACK_BED("minecraft:black_bed", 1, Block.BLACK_BED), + COOKIE("minecraft:cookie", 64, null), + FILLED_MAP("minecraft:filled_map", 64, null), + SHEARS("minecraft:shears", 1, null), + MELON_SLICE("minecraft:melon_slice", 64, null), + DRIED_KELP("minecraft:dried_kelp", 64, null), + PUMPKIN_SEEDS("minecraft:pumpkin_seeds", 64, null), + MELON_SEEDS("minecraft:melon_seeds", 64, null), + BEEF("minecraft:beef", 64, null), + COOKED_BEEF("minecraft:cooked_beef", 64, null), + CHICKEN("minecraft:chicken", 64, null), + COOKED_CHICKEN("minecraft:cooked_chicken", 64, null), + ROTTEN_FLESH("minecraft:rotten_flesh", 64, null), + ENDER_PEARL("minecraft:ender_pearl", 16, null), + BLAZE_ROD("minecraft:blaze_rod", 64, null), + GHAST_TEAR("minecraft:ghast_tear", 64, null), + GOLD_NUGGET("minecraft:gold_nugget", 64, null), + NETHER_WART("minecraft:nether_wart", 64, Block.NETHER_WART), + POTION("minecraft:potion", 1, null), + GLASS_BOTTLE("minecraft:glass_bottle", 64, null), + SPIDER_EYE("minecraft:spider_eye", 64, null), + FERMENTED_SPIDER_EYE("minecraft:fermented_spider_eye", 64, null), + BLAZE_POWDER("minecraft:blaze_powder", 64, null), + MAGMA_CREAM("minecraft:magma_cream", 64, null), + BREWING_STAND("minecraft:brewing_stand", 64, Block.BREWING_STAND), + CAULDRON("minecraft:cauldron", 64, Block.CAULDRON), + ENDER_EYE("minecraft:ender_eye", 64, null), + GLISTERING_MELON_SLICE("minecraft:glistering_melon_slice", 64, null), + BAT_SPAWN_EGG("minecraft:bat_spawn_egg", 64, null), + BEE_SPAWN_EGG("minecraft:bee_spawn_egg", 64, null), + BLAZE_SPAWN_EGG("minecraft:blaze_spawn_egg", 64, null), + CAT_SPAWN_EGG("minecraft:cat_spawn_egg", 64, null), + CAVE_SPIDER_SPAWN_EGG("minecraft:cave_spider_spawn_egg", 64, null), + CHICKEN_SPAWN_EGG("minecraft:chicken_spawn_egg", 64, null), + COD_SPAWN_EGG("minecraft:cod_spawn_egg", 64, null), + COW_SPAWN_EGG("minecraft:cow_spawn_egg", 64, null), + CREEPER_SPAWN_EGG("minecraft:creeper_spawn_egg", 64, null), + DOLPHIN_SPAWN_EGG("minecraft:dolphin_spawn_egg", 64, null), + DONKEY_SPAWN_EGG("minecraft:donkey_spawn_egg", 64, null), + DROWNED_SPAWN_EGG("minecraft:drowned_spawn_egg", 64, null), + ELDER_GUARDIAN_SPAWN_EGG("minecraft:elder_guardian_spawn_egg", 64, null), + ENDERMAN_SPAWN_EGG("minecraft:enderman_spawn_egg", 64, null), + ENDERMITE_SPAWN_EGG("minecraft:endermite_spawn_egg", 64, null), + EVOKER_SPAWN_EGG("minecraft:evoker_spawn_egg", 64, null), + FOX_SPAWN_EGG("minecraft:fox_spawn_egg", 64, null), + GHAST_SPAWN_EGG("minecraft:ghast_spawn_egg", 64, null), + GUARDIAN_SPAWN_EGG("minecraft:guardian_spawn_egg", 64, null), + HORSE_SPAWN_EGG("minecraft:horse_spawn_egg", 64, null), + HUSK_SPAWN_EGG("minecraft:husk_spawn_egg", 64, null), + LLAMA_SPAWN_EGG("minecraft:llama_spawn_egg", 64, null), + MAGMA_CUBE_SPAWN_EGG("minecraft:magma_cube_spawn_egg", 64, null), + MOOSHROOM_SPAWN_EGG("minecraft:mooshroom_spawn_egg", 64, null), + MULE_SPAWN_EGG("minecraft:mule_spawn_egg", 64, null), + OCELOT_SPAWN_EGG("minecraft:ocelot_spawn_egg", 64, null), + PANDA_SPAWN_EGG("minecraft:panda_spawn_egg", 64, null), + PARROT_SPAWN_EGG("minecraft:parrot_spawn_egg", 64, null), + PHANTOM_SPAWN_EGG("minecraft:phantom_spawn_egg", 64, null), + PIG_SPAWN_EGG("minecraft:pig_spawn_egg", 64, null), + PILLAGER_SPAWN_EGG("minecraft:pillager_spawn_egg", 64, null), + POLAR_BEAR_SPAWN_EGG("minecraft:polar_bear_spawn_egg", 64, null), + PUFFERFISH_SPAWN_EGG("minecraft:pufferfish_spawn_egg", 64, null), + RABBIT_SPAWN_EGG("minecraft:rabbit_spawn_egg", 64, null), + RAVAGER_SPAWN_EGG("minecraft:ravager_spawn_egg", 64, null), + SALMON_SPAWN_EGG("minecraft:salmon_spawn_egg", 64, null), + SHEEP_SPAWN_EGG("minecraft:sheep_spawn_egg", 64, null), + SHULKER_SPAWN_EGG("minecraft:shulker_spawn_egg", 64, null), + SILVERFISH_SPAWN_EGG("minecraft:silverfish_spawn_egg", 64, null), + SKELETON_SPAWN_EGG("minecraft:skeleton_spawn_egg", 64, null), + SKELETON_HORSE_SPAWN_EGG("minecraft:skeleton_horse_spawn_egg", 64, null), + SLIME_SPAWN_EGG("minecraft:slime_spawn_egg", 64, null), + SPIDER_SPAWN_EGG("minecraft:spider_spawn_egg", 64, null), + SQUID_SPAWN_EGG("minecraft:squid_spawn_egg", 64, null), + STRAY_SPAWN_EGG("minecraft:stray_spawn_egg", 64, null), + TRADER_LLAMA_SPAWN_EGG("minecraft:trader_llama_spawn_egg", 64, null), + TROPICAL_FISH_SPAWN_EGG("minecraft:tropical_fish_spawn_egg", 64, null), + TURTLE_SPAWN_EGG("minecraft:turtle_spawn_egg", 64, null), + VEX_SPAWN_EGG("minecraft:vex_spawn_egg", 64, null), + VILLAGER_SPAWN_EGG("minecraft:villager_spawn_egg", 64, null), + VINDICATOR_SPAWN_EGG("minecraft:vindicator_spawn_egg", 64, null), + WANDERING_TRADER_SPAWN_EGG("minecraft:wandering_trader_spawn_egg", 64, null), + WITCH_SPAWN_EGG("minecraft:witch_spawn_egg", 64, null), + WITHER_SKELETON_SPAWN_EGG("minecraft:wither_skeleton_spawn_egg", 64, null), + WOLF_SPAWN_EGG("minecraft:wolf_spawn_egg", 64, null), + ZOMBIE_SPAWN_EGG("minecraft:zombie_spawn_egg", 64, null), + ZOMBIE_HORSE_SPAWN_EGG("minecraft:zombie_horse_spawn_egg", 64, null), + ZOMBIE_PIGMAN_SPAWN_EGG("minecraft:zombie_pigman_spawn_egg", 64, null), + ZOMBIE_VILLAGER_SPAWN_EGG("minecraft:zombie_villager_spawn_egg", 64, null), + EXPERIENCE_BOTTLE("minecraft:experience_bottle", 64, null), + FIRE_CHARGE("minecraft:fire_charge", 64, null), + WRITABLE_BOOK("minecraft:writable_book", 1, null), + WRITTEN_BOOK("minecraft:written_book", 16, null), + EMERALD("minecraft:emerald", 64, null), + ITEM_FRAME("minecraft:item_frame", 64, null), + FLOWER_POT("minecraft:flower_pot", 64, Block.FLOWER_POT), + CARROT("minecraft:carrot", 64, null), + POTATO("minecraft:potato", 64, null), + BAKED_POTATO("minecraft:baked_potato", 64, null), + POISONOUS_POTATO("minecraft:poisonous_potato", 64, null), + MAP("minecraft:map", 64, null), + GOLDEN_CARROT("minecraft:golden_carrot", 64, null), + SKELETON_SKULL("minecraft:skeleton_skull", 64, Block.SKELETON_SKULL), + WITHER_SKELETON_SKULL("minecraft:wither_skeleton_skull", 64, Block.WITHER_SKELETON_SKULL), + PLAYER_HEAD("minecraft:player_head", 64, Block.PLAYER_HEAD), + ZOMBIE_HEAD("minecraft:zombie_head", 64, Block.ZOMBIE_HEAD), + CREEPER_HEAD("minecraft:creeper_head", 64, Block.CREEPER_HEAD), + DRAGON_HEAD("minecraft:dragon_head", 64, Block.DRAGON_HEAD), + CARROT_ON_A_STICK("minecraft:carrot_on_a_stick", 1, null), + NETHER_STAR("minecraft:nether_star", 64, null), + PUMPKIN_PIE("minecraft:pumpkin_pie", 64, null), + FIREWORK_ROCKET("minecraft:firework_rocket", 64, null), + FIREWORK_STAR("minecraft:firework_star", 64, null), + ENCHANTED_BOOK("minecraft:enchanted_book", 1, null), + NETHER_BRICK("minecraft:nether_brick", 64, null), + QUARTZ("minecraft:quartz", 64, null), + TNT_MINECART("minecraft:tnt_minecart", 1, null), + HOPPER_MINECART("minecraft:hopper_minecart", 1, null), + PRISMARINE_SHARD("minecraft:prismarine_shard", 64, null), + PRISMARINE_CRYSTALS("minecraft:prismarine_crystals", 64, null), + RABBIT("minecraft:rabbit", 64, null), + COOKED_RABBIT("minecraft:cooked_rabbit", 64, null), + RABBIT_STEW("minecraft:rabbit_stew", 1, null), + RABBIT_FOOT("minecraft:rabbit_foot", 64, null), + RABBIT_HIDE("minecraft:rabbit_hide", 64, null), + ARMOR_STAND("minecraft:armor_stand", 16, null), + IRON_HORSE_ARMOR("minecraft:iron_horse_armor", 1, null), + GOLDEN_HORSE_ARMOR("minecraft:golden_horse_armor", 1, null), + DIAMOND_HORSE_ARMOR("minecraft:diamond_horse_armor", 1, null), + LEATHER_HORSE_ARMOR("minecraft:leather_horse_armor", 1, null), + LEAD("minecraft:lead", 64, null), + NAME_TAG("minecraft:name_tag", 64, null), + COMMAND_BLOCK_MINECART("minecraft:command_block_minecart", 1, null), + MUTTON("minecraft:mutton", 64, null), + COOKED_MUTTON("minecraft:cooked_mutton", 64, null), + WHITE_BANNER("minecraft:white_banner", 16, Block.WHITE_BANNER), + ORANGE_BANNER("minecraft:orange_banner", 16, Block.ORANGE_BANNER), + MAGENTA_BANNER("minecraft:magenta_banner", 16, Block.MAGENTA_BANNER), + LIGHT_BLUE_BANNER("minecraft:light_blue_banner", 16, Block.LIGHT_BLUE_BANNER), + YELLOW_BANNER("minecraft:yellow_banner", 16, Block.YELLOW_BANNER), + LIME_BANNER("minecraft:lime_banner", 16, Block.LIME_BANNER), + PINK_BANNER("minecraft:pink_banner", 16, Block.PINK_BANNER), + GRAY_BANNER("minecraft:gray_banner", 16, Block.GRAY_BANNER), + LIGHT_GRAY_BANNER("minecraft:light_gray_banner", 16, Block.LIGHT_GRAY_BANNER), + CYAN_BANNER("minecraft:cyan_banner", 16, Block.CYAN_BANNER), + PURPLE_BANNER("minecraft:purple_banner", 16, Block.PURPLE_BANNER), + BLUE_BANNER("minecraft:blue_banner", 16, Block.BLUE_BANNER), + BROWN_BANNER("minecraft:brown_banner", 16, Block.BROWN_BANNER), + GREEN_BANNER("minecraft:green_banner", 16, Block.GREEN_BANNER), + RED_BANNER("minecraft:red_banner", 16, Block.RED_BANNER), + BLACK_BANNER("minecraft:black_banner", 16, Block.BLACK_BANNER), + END_CRYSTAL("minecraft:end_crystal", 64, null), + CHORUS_FRUIT("minecraft:chorus_fruit", 64, null), + POPPED_CHORUS_FRUIT("minecraft:popped_chorus_fruit", 64, null), + BEETROOT("minecraft:beetroot", 64, null), + BEETROOT_SEEDS("minecraft:beetroot_seeds", 64, null), + BEETROOT_SOUP("minecraft:beetroot_soup", 1, null), + DRAGON_BREATH("minecraft:dragon_breath", 64, null), + SPLASH_POTION("minecraft:splash_potion", 1, null), + SPECTRAL_ARROW("minecraft:spectral_arrow", 64, null), + TIPPED_ARROW("minecraft:tipped_arrow", 64, null), + LINGERING_POTION("minecraft:lingering_potion", 1, null), + SHIELD("minecraft:shield", 1, null), + ELYTRA("minecraft:elytra", 1, null), + SPRUCE_BOAT("minecraft:spruce_boat", 1, null), + BIRCH_BOAT("minecraft:birch_boat", 1, null), + JUNGLE_BOAT("minecraft:jungle_boat", 1, null), + ACACIA_BOAT("minecraft:acacia_boat", 1, null), + DARK_OAK_BOAT("minecraft:dark_oak_boat", 1, null), + TOTEM_OF_UNDYING("minecraft:totem_of_undying", 1, null), + SHULKER_SHELL("minecraft:shulker_shell", 64, null), + IRON_NUGGET("minecraft:iron_nugget", 64, null), + KNOWLEDGE_BOOK("minecraft:knowledge_book", 1, null), + DEBUG_STICK("minecraft:debug_stick", 1, null), + MUSIC_DISC_13("minecraft:music_disc_13", 1, null), + MUSIC_DISC_CAT("minecraft:music_disc_cat", 1, null), + MUSIC_DISC_BLOCKS("minecraft:music_disc_blocks", 1, null), + MUSIC_DISC_CHIRP("minecraft:music_disc_chirp", 1, null), + MUSIC_DISC_FAR("minecraft:music_disc_far", 1, null), + MUSIC_DISC_MALL("minecraft:music_disc_mall", 1, null), + MUSIC_DISC_MELLOHI("minecraft:music_disc_mellohi", 1, null), + MUSIC_DISC_STAL("minecraft:music_disc_stal", 1, null), + MUSIC_DISC_STRAD("minecraft:music_disc_strad", 1, null), + MUSIC_DISC_WARD("minecraft:music_disc_ward", 1, null), + MUSIC_DISC_11("minecraft:music_disc_11", 1, null), + MUSIC_DISC_WAIT("minecraft:music_disc_wait", 1, null), + TRIDENT("minecraft:trident", 1, null), + PHANTOM_MEMBRANE("minecraft:phantom_membrane", 64, null), + NAUTILUS_SHELL("minecraft:nautilus_shell", 64, null), + HEART_OF_THE_SEA("minecraft:heart_of_the_sea", 64, null), + CROSSBOW("minecraft:crossbow", 1, null), + SUSPICIOUS_STEW("minecraft:suspicious_stew", 1, null), + LOOM("minecraft:loom", 64, Block.LOOM), + FLOWER_BANNER_PATTERN("minecraft:flower_banner_pattern", 1, null), + CREEPER_BANNER_PATTERN("minecraft:creeper_banner_pattern", 1, null), + SKULL_BANNER_PATTERN("minecraft:skull_banner_pattern", 1, null), + MOJANG_BANNER_PATTERN("minecraft:mojang_banner_pattern", 1, null), + GLOBE_BANNER_PATTERN("minecraft:globe_banner_pattern", 1, null), + BARREL("minecraft:barrel", 64, Block.BARREL), + SMOKER("minecraft:smoker", 64, Block.SMOKER), + BLAST_FURNACE("minecraft:blast_furnace", 64, Block.BLAST_FURNACE), + CARTOGRAPHY_TABLE("minecraft:cartography_table", 64, Block.CARTOGRAPHY_TABLE), + FLETCHING_TABLE("minecraft:fletching_table", 64, Block.FLETCHING_TABLE), + GRINDSTONE("minecraft:grindstone", 64, Block.GRINDSTONE), + LECTERN("minecraft:lectern", 64, Block.LECTERN), + SMITHING_TABLE("minecraft:smithing_table", 64, Block.SMITHING_TABLE), + STONECUTTER("minecraft:stonecutter", 64, Block.STONECUTTER), + BELL("minecraft:bell", 64, Block.BELL), + LANTERN("minecraft:lantern", 64, Block.LANTERN), + SWEET_BERRIES("minecraft:sweet_berries", 64, null), + CAMPFIRE("minecraft:campfire", 64, Block.CAMPFIRE), + HONEYCOMB("minecraft:honeycomb", 64, null), + BEE_NEST("minecraft:bee_nest", 64, Block.BEE_NEST), + BEEHIVE("minecraft:beehive", 64, Block.BEEHIVE), + HONEY_BOTTLE("minecraft:honey_bottle", 16, null), + HONEY_BLOCK("minecraft:honey_block", 64, Block.HONEY_BLOCK), + HONEYCOMB_BLOCK("minecraft:honeycomb_block", 64, Block.HONEYCOMB_BLOCK), +; + private String namespaceID; + private int maxDefaultStackSize; + private Block correspondingBlock; + + Material(String namespaceID, int maxDefaultStackSize, Block correspondingBlock) { + this.namespaceID = namespaceID; + this.maxDefaultStackSize = maxDefaultStackSize; + this.correspondingBlock = correspondingBlock; + MaterialMap.map.put((short)ordinal(), this); + } + + public short getId() { + return (short)ordinal(); + } + + public String getName() { + return namespaceID; + } + + public int getMaxDefaultStackSize() { + return maxDefaultStackSize; + } + + public boolean isBlock() { + return correspondingBlock != null && this != AIR; + } + + public Block getBlock() { + return correspondingBlock; + } + + public static Material fromId(short blockId) { + return MaterialMap.map.getOrDefault(blockId, AIR); + } + + public boolean isHelmet() { + return toString().endsWith("HELMET"); + } + + public boolean isChestplate() { + return toString().endsWith("CHESTPLATE"); + } + + public boolean isLeggings() { + return toString().endsWith("LEGGINGS"); + } + + public boolean isBoots() { + return toString().endsWith("BOOTS"); + } + + public boolean isArmor() { + return isChestplate() || isHelmet() || isLeggings() || isBoots(); + } + + public boolean isFood() { + switch (this) { + case APPLE: + case MUSHROOM_STEW: + case BREAD: + case PORKCHOP: + case COOKED_PORKCHOP: + case GOLDEN_APPLE: + case ENCHANTED_GOLDEN_APPLE: + case COD: + case SALMON: + case TROPICAL_FISH: + case PUFFERFISH: + case COOKED_COD: + case COOKED_SALMON: + case CAKE: + case COOKIE: + case MELON_SLICE: + case DRIED_KELP: + case BEEF: + case COOKED_BEEF: + case CHICKEN: + case COOKED_CHICKEN: + case ROTTEN_FLESH: + case SPIDER_EYE: + case CARROT: + case POTATO: + case BAKED_POTATO: + case POISONOUS_POTATO: + case PUMPKIN_PIE: + case RABBIT: + case COOKED_RABBIT: + case RABBIT_STEW: + case MUTTON: + case COOKED_MUTTON: + case BEETROOT: + case BEETROOT_SOUP: + case SWEET_BERRIES: + case HONEY_BOTTLE: + return true; + default: + return false; + } + } + + public boolean hasState() { + switch (this) { + case BOW: + case TRIDENT: + case CROSSBOW: + case SHIELD: + return true; + } + + return isFood(); + } +} diff --git a/src/autogenerated/java/net/minestom/server/item/MaterialMap.java b/src/autogenerated/java/net/minestom/server/item/MaterialMap.java new file mode 100644 index 000000000..c87af2b93 --- /dev/null +++ b/src/autogenerated/java/net/minestom/server/item/MaterialMap.java @@ -0,0 +1,5 @@ +package net.minestom.server.item; +import it.unimi.dsi.fastutil.shorts.Short2ObjectOpenHashMap; +final class MaterialMap { + static final Short2ObjectOpenHashMap map = new Short2ObjectOpenHashMap<>(); +} diff --git a/src/generators/java/net/minestom/codegen/items/ItemEnumGenerator.java b/src/generators/java/net/minestom/codegen/items/ItemEnumGenerator.java index e7d30b319..8187a8f11 100644 --- a/src/generators/java/net/minestom/codegen/items/ItemEnumGenerator.java +++ b/src/generators/java/net/minestom/codegen/items/ItemEnumGenerator.java @@ -82,12 +82,12 @@ public class ItemEnumGenerator extends MinestomEnumGenerator { @Override public String getPackageName() { - return "net.minestom.server.instance.item"; + return "net.minestom.server.item"; } @Override public String getClassName() { - return "TmpMaterial"; + return "Material"; } @Override @@ -146,7 +146,48 @@ public class ItemEnumGenerator extends MinestomEnumGenerator { generator.addMethod("isLeggings", "()", "boolean", "return toString().endsWith(\"LEGGINGS\");"); generator.addMethod("isBoots", "()", "boolean", "return toString().endsWith(\"BOOTS\");"); generator.addMethod("isArmor", "()", "boolean", "return isChestplate() || isHelmet() || isLeggings() || isBoots();"); - generator.addMethod("isFood", "()", "boolean", "return false; // TODO"); + generator.addMethod("isFood", "()", "boolean", "switch (this) {\n" + + " case APPLE:\n" + + " case MUSHROOM_STEW:\n" + + " case BREAD:\n" + + " case PORKCHOP:\n" + + " case COOKED_PORKCHOP:\n" + + " case GOLDEN_APPLE:\n" + + " case ENCHANTED_GOLDEN_APPLE:\n" + + " case COD:\n" + + " case SALMON:\n" + + " case TROPICAL_FISH:\n" + + " case PUFFERFISH:\n" + + " case COOKED_COD:\n" + + " case COOKED_SALMON:\n" + + " case CAKE:\n" + + " case COOKIE:\n" + + " case MELON_SLICE:\n" + + " case DRIED_KELP:\n" + + " case BEEF:\n" + + " case COOKED_BEEF:\n" + + " case CHICKEN:\n" + + " case COOKED_CHICKEN:\n" + + " case ROTTEN_FLESH:\n" + + " case SPIDER_EYE:\n" + + " case CARROT:\n" + + " case POTATO:\n" + + " case BAKED_POTATO:\n" + + " case POISONOUS_POTATO:\n" + + " case PUMPKIN_PIE:\n" + + " case RABBIT:\n" + + " case COOKED_RABBIT:\n" + + " case RABBIT_STEW:\n" + + " case MUTTON:\n" + + " case COOKED_MUTTON:\n" + + " case BEETROOT:\n" + + " case BEETROOT_SOUP:\n" + + " case SWEET_BERRIES:\n" + + " case HONEY_BOTTLE:\n" + + " return true;\n" + + " default:\n" + + " return false;\n" + + " }"); generator.addMethod("hasState", "()", "boolean", "switch (this) {\n" + " case BOW:\n" + " case TRIDENT:\n" + diff --git a/src/main/java/net/minestom/server/MinecraftServer.java b/src/main/java/net/minestom/server/MinecraftServer.java index 5525ff612..db73dc8d4 100644 --- a/src/main/java/net/minestom/server/MinecraftServer.java +++ b/src/main/java/net/minestom/server/MinecraftServer.java @@ -123,7 +123,6 @@ public class MinecraftServer { } catch (IOException e) { LOGGER.error("An error happened during resource gathering. Minestom will attempt to load anyway, but things may not work, and crashes can happen.", e); } - RegistryMain.registerItems(); RegistryMain.registerEntities(); RegistryMain.registerSounds(); RegistryMain.registerParticles(); diff --git a/src/main/java/net/minestom/server/item/Material.java b/src/main/java/net/minestom/server/item/Material.java deleted file mode 100644 index 48a0c0525..000000000 --- a/src/main/java/net/minestom/server/item/Material.java +++ /dev/null @@ -1,998 +0,0 @@ -package net.minestom.server.item; - -import it.unimi.dsi.fastutil.shorts.Short2ObjectOpenHashMap; -import net.minestom.server.instance.block.Block; - -public enum Material { - - AIR, - STONE, - GRANITE, - POLISHED_GRANITE, - DIORITE, - POLISHED_DIORITE, - ANDESITE, - POLISHED_ANDESITE, - GRASS_BLOCK, - DIRT, - COARSE_DIRT, - PODZOL, - COBBLESTONE, - OAK_PLANKS, - SPRUCE_PLANKS, - BIRCH_PLANKS, - JUNGLE_PLANKS, - ACACIA_PLANKS, - DARK_OAK_PLANKS, - OAK_SAPLING, - SPRUCE_SAPLING, - BIRCH_SAPLING, - JUNGLE_SAPLING, - ACACIA_SAPLING, - DARK_OAK_SAPLING, - BEDROCK, - SAND, - RED_SAND, - GRAVEL, - GOLD_ORE, - IRON_ORE, - COAL_ORE, - OAK_LOG, - SPRUCE_LOG, - BIRCH_LOG, - JUNGLE_LOG, - ACACIA_LOG, - DARK_OAK_LOG, - STRIPPED_OAK_LOG, - STRIPPED_SPRUCE_LOG, - STRIPPED_BIRCH_LOG, - STRIPPED_JUNGLE_LOG, - STRIPPED_ACACIA_LOG, - STRIPPED_DARK_OAK_LOG, - STRIPPED_OAK_WOOD, - STRIPPED_SPRUCE_WOOD, - STRIPPED_BIRCH_WOOD, - STRIPPED_JUNGLE_WOOD, - STRIPPED_ACACIA_WOOD, - STRIPPED_DARK_OAK_WOOD, - OAK_WOOD, - SPRUCE_WOOD, - BIRCH_WOOD, - JUNGLE_WOOD, - ACACIA_WOOD, - DARK_OAK_WOOD, - OAK_LEAVES, - SPRUCE_LEAVES, - BIRCH_LEAVES, - JUNGLE_LEAVES, - ACACIA_LEAVES, - DARK_OAK_LEAVES, - SPONGE, - WET_SPONGE, - GLASS, - LAPIS_ORE, - LAPIS_BLOCK, - DISPENSER, - SANDSTONE, - CHISELED_SANDSTONE, - CUT_SANDSTONE, - NOTE_BLOCK, - POWERED_RAIL, - DETECTOR_RAIL, - STICKY_PISTON, - COBWEB, - GRASS, - FERN, - DEAD_BUSH, - SEAGRASS, - SEA_PICKLE, - PISTON, - WHITE_WOOL, - ORANGE_WOOL, - MAGENTA_WOOL, - LIGHT_BLUE_WOOL, - YELLOW_WOOL, - LIME_WOOL, - PINK_WOOL, - GRAY_WOOL, - LIGHT_GRAY_WOOL, - CYAN_WOOL, - PURPLE_WOOL, - BLUE_WOOL, - BROWN_WOOL, - GREEN_WOOL, - RED_WOOL, - BLACK_WOOL, - DANDELION, - POPPY, - BLUE_ORCHID, - ALLIUM, - AZURE_BLUET, - RED_TULIP, - ORANGE_TULIP, - WHITE_TULIP, - PINK_TULIP, - OXEYE_DAISY, - CORNFLOWER, - LILY_OF_THE_VALLEY, - WITHER_ROSE, - BROWN_MUSHROOM, - RED_MUSHROOM, - GOLD_BLOCK, - IRON_BLOCK, - OAK_SLAB, - SPRUCE_SLAB, - BIRCH_SLAB, - JUNGLE_SLAB, - ACACIA_SLAB, - DARK_OAK_SLAB, - STONE_SLAB, - SMOOTH_STONE_SLAB, - SANDSTONE_SLAB, - CUT_SANDSTONE_SLAB, - PETRIFIED_OAK_SLAB, - COBBLESTONE_SLAB, - BRICK_SLAB, - STONE_BRICK_SLAB, - NETHER_BRICK_SLAB, - QUARTZ_SLAB, - RED_SANDSTONE_SLAB, - CUT_RED_SANDSTONE_SLAB, - PURPUR_SLAB, - PRISMARINE_SLAB, - PRISMARINE_BRICK_SLAB, - DARK_PRISMARINE_SLAB, - SMOOTH_QUARTZ, - SMOOTH_RED_SANDSTONE, - SMOOTH_SANDSTONE, - SMOOTH_STONE, - BRICKS, - TNT, - BOOKSHELF, - MOSSY_COBBLESTONE, - OBSIDIAN, - TORCH, - END_ROD, - CHORUS_PLANT, - CHORUS_FLOWER, - PURPUR_BLOCK, - PURPUR_PILLAR, - PURPUR_STAIRS, - SPAWNER, - OAK_STAIRS, - CHEST, - DIAMOND_ORE, - DIAMOND_BLOCK, - CRAFTING_TABLE, - FARMLAND, - FURNACE, - LADDER, - RAIL, - COBBLESTONE_STAIRS, - LEVER, - STONE_PRESSURE_PLATE, - OAK_PRESSURE_PLATE, - SPRUCE_PRESSURE_PLATE, - BIRCH_PRESSURE_PLATE, - JUNGLE_PRESSURE_PLATE, - ACACIA_PRESSURE_PLATE, - DARK_OAK_PRESSURE_PLATE, - REDSTONE_ORE, - REDSTONE_TORCH, - STONE_BUTTON, - SNOW, - ICE, - SNOW_BLOCK, - CACTUS, - CLAY, - JUKEBOX, - OAK_FENCE, - SPRUCE_FENCE, - BIRCH_FENCE, - JUNGLE_FENCE, - ACACIA_FENCE, - DARK_OAK_FENCE, - PUMPKIN, - CARVED_PUMPKIN, - NETHERRACK, - SOUL_SAND, - GLOWSTONE, - JACK_O_LANTERN, - OAK_TRAPDOOR, - SPRUCE_TRAPDOOR, - BIRCH_TRAPDOOR, - JUNGLE_TRAPDOOR, - ACACIA_TRAPDOOR, - DARK_OAK_TRAPDOOR, - INFESTED_STONE, - INFESTED_COBBLESTONE, - INFESTED_STONE_BRICKS, - INFESTED_MOSSY_STONE_BRICKS, - INFESTED_CRACKED_STONE_BRICKS, - INFESTED_CHISELED_STONE_BRICKS, - STONE_BRICKS, - MOSSY_STONE_BRICKS, - CRACKED_STONE_BRICKS, - CHISELED_STONE_BRICKS, - BROWN_MUSHROOM_BLOCK, - RED_MUSHROOM_BLOCK, - MUSHROOM_STEM, - IRON_BARS, - GLASS_PANE, - MELON, - VINE, - OAK_FENCE_GATE, - SPRUCE_FENCE_GATE, - BIRCH_FENCE_GATE, - JUNGLE_FENCE_GATE, - ACACIA_FENCE_GATE, - DARK_OAK_FENCE_GATE, - BRICK_STAIRS, - STONE_BRICK_STAIRS, - MYCELIUM, - LILY_PAD, - NETHER_BRICKS, - NETHER_BRICK_FENCE, - NETHER_BRICK_STAIRS, - ENCHANTING_TABLE, - END_PORTAL_FRAME, - END_STONE, - END_STONE_BRICKS, - DRAGON_EGG, - REDSTONE_LAMP, - SANDSTONE_STAIRS, - EMERALD_ORE, - ENDER_CHEST, - TRIPWIRE_HOOK, - EMERALD_BLOCK, - SPRUCE_STAIRS, - BIRCH_STAIRS, - JUNGLE_STAIRS, - COMMAND_BLOCK, - BEACON, - COBBLESTONE_WALL, - MOSSY_COBBLESTONE_WALL, - BRICK_WALL, - PRISMARINE_WALL, - RED_SANDSTONE_WALL, - MOSSY_STONE_BRICK_WALL, - GRANITE_WALL, - STONE_BRICK_WALL, - NETHER_BRICK_WALL, - ANDESITE_WALL, - RED_NETHER_BRICK_WALL, - SANDSTONE_WALL, - END_STONE_BRICK_WALL, - DIORITE_WALL, - OAK_BUTTON, - SPRUCE_BUTTON, - BIRCH_BUTTON, - JUNGLE_BUTTON, - ACACIA_BUTTON, - DARK_OAK_BUTTON, - ANVIL, - CHIPPED_ANVIL, - DAMAGED_ANVIL, - TRAPPED_CHEST, - LIGHT_WEIGHTED_PRESSURE_PLATE, - HEAVY_WEIGHTED_PRESSURE_PLATE, - DAYLIGHT_DETECTOR, - REDSTONE_BLOCK, - NETHER_QUARTZ_ORE, - HOPPER, - CHISELED_QUARTZ_BLOCK, - QUARTZ_BLOCK, - QUARTZ_PILLAR, - QUARTZ_STAIRS, - ACTIVATOR_RAIL, - DROPPER, - WHITE_TERRACOTTA, - ORANGE_TERRACOTTA, - MAGENTA_TERRACOTTA, - LIGHT_BLUE_TERRACOTTA, - YELLOW_TERRACOTTA, - LIME_TERRACOTTA, - PINK_TERRACOTTA, - GRAY_TERRACOTTA, - LIGHT_GRAY_TERRACOTTA, - CYAN_TERRACOTTA, - PURPLE_TERRACOTTA, - BLUE_TERRACOTTA, - BROWN_TERRACOTTA, - GREEN_TERRACOTTA, - RED_TERRACOTTA, - BLACK_TERRACOTTA, - BARRIER, - IRON_TRAPDOOR, - HAY_BLOCK, - WHITE_CARPET, - ORANGE_CARPET, - MAGENTA_CARPET, - LIGHT_BLUE_CARPET, - YELLOW_CARPET, - LIME_CARPET, - PINK_CARPET, - GRAY_CARPET, - LIGHT_GRAY_CARPET, - CYAN_CARPET, - PURPLE_CARPET, - BLUE_CARPET, - BROWN_CARPET, - GREEN_CARPET, - RED_CARPET, - BLACK_CARPET, - TERRACOTTA, - COAL_BLOCK, - PACKED_ICE, - ACACIA_STAIRS, - DARK_OAK_STAIRS, - SLIME_BLOCK, - GRASS_PATH, - SUNFLOWER, - LILAC, - ROSE_BUSH, - PEONY, - TALL_GRASS, - LARGE_FERN, - WHITE_STAINED_GLASS, - ORANGE_STAINED_GLASS, - MAGENTA_STAINED_GLASS, - LIGHT_BLUE_STAINED_GLASS, - YELLOW_STAINED_GLASS, - LIME_STAINED_GLASS, - PINK_STAINED_GLASS, - GRAY_STAINED_GLASS, - LIGHT_GRAY_STAINED_GLASS, - CYAN_STAINED_GLASS, - PURPLE_STAINED_GLASS, - BLUE_STAINED_GLASS, - BROWN_STAINED_GLASS, - GREEN_STAINED_GLASS, - RED_STAINED_GLASS, - BLACK_STAINED_GLASS, - WHITE_STAINED_GLASS_PANE, - ORANGE_STAINED_GLASS_PANE, - MAGENTA_STAINED_GLASS_PANE, - LIGHT_BLUE_STAINED_GLASS_PANE, - YELLOW_STAINED_GLASS_PANE, - LIME_STAINED_GLASS_PANE, - PINK_STAINED_GLASS_PANE, - GRAY_STAINED_GLASS_PANE, - LIGHT_GRAY_STAINED_GLASS_PANE, - CYAN_STAINED_GLASS_PANE, - PURPLE_STAINED_GLASS_PANE, - BLUE_STAINED_GLASS_PANE, - BROWN_STAINED_GLASS_PANE, - GREEN_STAINED_GLASS_PANE, - RED_STAINED_GLASS_PANE, - BLACK_STAINED_GLASS_PANE, - PRISMARINE, - PRISMARINE_BRICKS, - DARK_PRISMARINE, - PRISMARINE_STAIRS, - PRISMARINE_BRICK_STAIRS, - DARK_PRISMARINE_STAIRS, - SEA_LANTERN, - RED_SANDSTONE, - CHISELED_RED_SANDSTONE, - CUT_RED_SANDSTONE, - RED_SANDSTONE_STAIRS, - REPEATING_COMMAND_BLOCK, - CHAIN_COMMAND_BLOCK, - MAGMA_BLOCK, - NETHER_WART_BLOCK, - RED_NETHER_BRICKS, - BONE_BLOCK, - STRUCTURE_VOID, - OBSERVER, - SHULKER_BOX, - WHITE_SHULKER_BOX, - ORANGE_SHULKER_BOX, - MAGENTA_SHULKER_BOX, - LIGHT_BLUE_SHULKER_BOX, - YELLOW_SHULKER_BOX, - LIME_SHULKER_BOX, - PINK_SHULKER_BOX, - GRAY_SHULKER_BOX, - LIGHT_GRAY_SHULKER_BOX, - CYAN_SHULKER_BOX, - PURPLE_SHULKER_BOX, - BLUE_SHULKER_BOX, - BROWN_SHULKER_BOX, - GREEN_SHULKER_BOX, - RED_SHULKER_BOX, - BLACK_SHULKER_BOX, - WHITE_GLAZED_TERRACOTTA, - ORANGE_GLAZED_TERRACOTTA, - MAGENTA_GLAZED_TERRACOTTA, - LIGHT_BLUE_GLAZED_TERRACOTTA, - YELLOW_GLAZED_TERRACOTTA, - LIME_GLAZED_TERRACOTTA, - PINK_GLAZED_TERRACOTTA, - GRAY_GLAZED_TERRACOTTA, - LIGHT_GRAY_GLAZED_TERRACOTTA, - CYAN_GLAZED_TERRACOTTA, - PURPLE_GLAZED_TERRACOTTA, - BLUE_GLAZED_TERRACOTTA, - BROWN_GLAZED_TERRACOTTA, - GREEN_GLAZED_TERRACOTTA, - RED_GLAZED_TERRACOTTA, - BLACK_GLAZED_TERRACOTTA, - WHITE_CONCRETE, - ORANGE_CONCRETE, - MAGENTA_CONCRETE, - LIGHT_BLUE_CONCRETE, - YELLOW_CONCRETE, - LIME_CONCRETE, - PINK_CONCRETE, - GRAY_CONCRETE, - LIGHT_GRAY_CONCRETE, - CYAN_CONCRETE, - PURPLE_CONCRETE, - BLUE_CONCRETE, - BROWN_CONCRETE, - GREEN_CONCRETE, - RED_CONCRETE, - BLACK_CONCRETE, - WHITE_CONCRETE_POWDER, - ORANGE_CONCRETE_POWDER, - MAGENTA_CONCRETE_POWDER, - LIGHT_BLUE_CONCRETE_POWDER, - YELLOW_CONCRETE_POWDER, - LIME_CONCRETE_POWDER, - PINK_CONCRETE_POWDER, - GRAY_CONCRETE_POWDER, - LIGHT_GRAY_CONCRETE_POWDER, - CYAN_CONCRETE_POWDER, - PURPLE_CONCRETE_POWDER, - BLUE_CONCRETE_POWDER, - BROWN_CONCRETE_POWDER, - GREEN_CONCRETE_POWDER, - RED_CONCRETE_POWDER, - BLACK_CONCRETE_POWDER, - TURTLE_EGG, - DEAD_TUBE_CORAL_BLOCK, - DEAD_BRAIN_CORAL_BLOCK, - DEAD_BUBBLE_CORAL_BLOCK, - DEAD_FIRE_CORAL_BLOCK, - DEAD_HORN_CORAL_BLOCK, - TUBE_CORAL_BLOCK, - BRAIN_CORAL_BLOCK, - BUBBLE_CORAL_BLOCK, - FIRE_CORAL_BLOCK, - HORN_CORAL_BLOCK, - TUBE_CORAL, - BRAIN_CORAL, - BUBBLE_CORAL, - FIRE_CORAL, - HORN_CORAL, - DEAD_BRAIN_CORAL, - DEAD_BUBBLE_CORAL, - DEAD_FIRE_CORAL, - DEAD_HORN_CORAL, - DEAD_TUBE_CORAL, - TUBE_CORAL_FAN, - BRAIN_CORAL_FAN, - BUBBLE_CORAL_FAN, - FIRE_CORAL_FAN, - HORN_CORAL_FAN, - DEAD_TUBE_CORAL_FAN, - DEAD_BRAIN_CORAL_FAN, - DEAD_BUBBLE_CORAL_FAN, - DEAD_FIRE_CORAL_FAN, - DEAD_HORN_CORAL_FAN, - BLUE_ICE, - CONDUIT, - POLISHED_GRANITE_STAIRS, - SMOOTH_RED_SANDSTONE_STAIRS, - MOSSY_STONE_BRICK_STAIRS, - POLISHED_DIORITE_STAIRS, - MOSSY_COBBLESTONE_STAIRS, - END_STONE_BRICK_STAIRS, - STONE_STAIRS, - SMOOTH_SANDSTONE_STAIRS, - SMOOTH_QUARTZ_STAIRS, - GRANITE_STAIRS, - ANDESITE_STAIRS, - RED_NETHER_BRICK_STAIRS, - POLISHED_ANDESITE_STAIRS, - DIORITE_STAIRS, - POLISHED_GRANITE_SLAB, - SMOOTH_RED_SANDSTONE_SLAB, - MOSSY_STONE_BRICK_SLAB, - POLISHED_DIORITE_SLAB, - MOSSY_COBBLESTONE_SLAB, - END_STONE_BRICK_SLAB, - SMOOTH_SANDSTONE_SLAB, - SMOOTH_QUARTZ_SLAB, - GRANITE_SLAB, - ANDESITE_SLAB, - RED_NETHER_BRICK_SLAB, - POLISHED_ANDESITE_SLAB, - DIORITE_SLAB, - SCAFFOLDING, - IRON_DOOR, - OAK_DOOR, - SPRUCE_DOOR, - BIRCH_DOOR, - JUNGLE_DOOR, - ACACIA_DOOR, - DARK_OAK_DOOR, - REPEATER, - COMPARATOR, - STRUCTURE_BLOCK, - JIGSAW, - COMPOSTER, - TURTLE_HELMET, - SCUTE, - IRON_SHOVEL, - IRON_PICKAXE, - IRON_AXE, - FLINT_AND_STEEL, - APPLE, - BOW, - ARROW, - COAL, - CHARCOAL, - DIAMOND, - IRON_INGOT, - GOLD_INGOT, - IRON_SWORD, - WOODEN_SWORD, - WOODEN_SHOVEL, - WOODEN_PICKAXE, - WOODEN_AXE, - STONE_SWORD, - STONE_SHOVEL, - STONE_PICKAXE, - STONE_AXE, - DIAMOND_SWORD, - DIAMOND_SHOVEL, - DIAMOND_PICKAXE, - DIAMOND_AXE, - STICK, - BOWL, - MUSHROOM_STEW, - GOLDEN_SWORD, - GOLDEN_SHOVEL, - GOLDEN_PICKAXE, - GOLDEN_AXE, - STRING, - FEATHER, - GUNPOWDER, - WOODEN_HOE, - STONE_HOE, - IRON_HOE, - DIAMOND_HOE, - GOLDEN_HOE, - WHEAT_SEEDS, - WHEAT, - BREAD, - LEATHER_HELMET, - LEATHER_CHESTPLATE, - LEATHER_LEGGINGS, - LEATHER_BOOTS, - CHAINMAIL_HELMET, - CHAINMAIL_CHESTPLATE, - CHAINMAIL_LEGGINGS, - CHAINMAIL_BOOTS, - IRON_HELMET, - IRON_CHESTPLATE, - IRON_LEGGINGS, - IRON_BOOTS, - DIAMOND_HELMET, - DIAMOND_CHESTPLATE, - DIAMOND_LEGGINGS, - DIAMOND_BOOTS, - GOLDEN_HELMET, - GOLDEN_CHESTPLATE, - GOLDEN_LEGGINGS, - GOLDEN_BOOTS, - FLINT, - PORKCHOP, - COOKED_PORKCHOP, - PAINTING, - GOLDEN_APPLE, - ENCHANTED_GOLDEN_APPLE, - OAK_SIGN, - SPRUCE_SIGN, - BIRCH_SIGN, - JUNGLE_SIGN, - ACACIA_SIGN, - DARK_OAK_SIGN, - BUCKET, - WATER_BUCKET, - LAVA_BUCKET, - MINECART, - SADDLE, - REDSTONE, - SNOWBALL, - OAK_BOAT, - LEATHER, - MILK_BUCKET, - PUFFERFISH_BUCKET, - SALMON_BUCKET, - COD_BUCKET, - TROPICAL_FISH_BUCKET, - BRICK, - CLAY_BALL, - SUGAR_CANE, - KELP, - DRIED_KELP_BLOCK, - BAMBOO, - PAPER, - BOOK, - SLIME_BALL, - CHEST_MINECART, - FURNACE_MINECART, - EGG, - COMPASS, - FISHING_ROD, - CLOCK, - GLOWSTONE_DUST, - COD, - SALMON, - TROPICAL_FISH, - PUFFERFISH, - COOKED_COD, - COOKED_SALMON, - INK_SAC, - RED_DYE, - GREEN_DYE, - COCOA_BEANS, - LAPIS_LAZULI, - PURPLE_DYE, - CYAN_DYE, - LIGHT_GRAY_DYE, - GRAY_DYE, - PINK_DYE, - LIME_DYE, - YELLOW_DYE, - LIGHT_BLUE_DYE, - MAGENTA_DYE, - ORANGE_DYE, - BONE_MEAL, - BLUE_DYE, - BROWN_DYE, - BLACK_DYE, - WHITE_DYE, - BONE, - SUGAR, - CAKE, - WHITE_BED, - ORANGE_BED, - MAGENTA_BED, - LIGHT_BLUE_BED, - YELLOW_BED, - LIME_BED, - PINK_BED, - GRAY_BED, - LIGHT_GRAY_BED, - CYAN_BED, - PURPLE_BED, - BLUE_BED, - BROWN_BED, - GREEN_BED, - RED_BED, - BLACK_BED, - COOKIE, - FILLED_MAP, - SHEARS, - MELON_SLICE, - DRIED_KELP, - PUMPKIN_SEEDS, - MELON_SEEDS, - BEEF, - COOKED_BEEF, - CHICKEN, - COOKED_CHICKEN, - ROTTEN_FLESH, - ENDER_PEARL, - BLAZE_ROD, - GHAST_TEAR, - GOLD_NUGGET, - NETHER_WART, - POTION, - GLASS_BOTTLE, - SPIDER_EYE, - FERMENTED_SPIDER_EYE, - BLAZE_POWDER, - MAGMA_CREAM, - BREWING_STAND, - CAULDRON, - ENDER_EYE, - GLISTERING_MELON_SLICE, - BAT_SPAWN_EGG, - BEE_SPAWN_EGG, - BLAZE_SPAWN_EGG, - CAT_SPAWN_EGG, - CAVE_SPIDER_SPAWN_EGG, - CHICKEN_SPAWN_EGG, - COD_SPAWN_EGG, - COW_SPAWN_EGG, - CREEPER_SPAWN_EGG, - DOLPHIN_SPAWN_EGG, - DONKEY_SPAWN_EGG, - DROWNED_SPAWN_EGG, - ELDER_GUARDIAN_SPAWN_EGG, - ENDERMAN_SPAWN_EGG, - ENDERMITE_SPAWN_EGG, - EVOKER_SPAWN_EGG, - FOX_SPAWN_EGG, - GHAST_SPAWN_EGG, - GUARDIAN_SPAWN_EGG, - HORSE_SPAWN_EGG, - HUSK_SPAWN_EGG, - LLAMA_SPAWN_EGG, - MAGMA_CUBE_SPAWN_EGG, - MOOSHROOM_SPAWN_EGG, - MULE_SPAWN_EGG, - OCELOT_SPAWN_EGG, - PANDA_SPAWN_EGG, - PARROT_SPAWN_EGG, - PHANTOM_SPAWN_EGG, - PIG_SPAWN_EGG, - PILLAGER_SPAWN_EGG, - POLAR_BEAR_SPAWN_EGG, - PUFFERFISH_SPAWN_EGG, - RABBIT_SPAWN_EGG, - RAVAGER_SPAWN_EGG, - SALMON_SPAWN_EGG, - SHEEP_SPAWN_EGG, - SHULKER_SPAWN_EGG, - SILVERFISH_SPAWN_EGG, - SKELETON_SPAWN_EGG, - SKELETON_HORSE_SPAWN_EGG, - SLIME_SPAWN_EGG, - SPIDER_SPAWN_EGG, - SQUID_SPAWN_EGG, - STRAY_SPAWN_EGG, - TRADER_LLAMA_SPAWN_EGG, - TROPICAL_FISH_SPAWN_EGG, - TURTLE_SPAWN_EGG, - VEX_SPAWN_EGG, - VILLAGER_SPAWN_EGG, - VINDICATOR_SPAWN_EGG, - WANDERING_TRADER_SPAWN_EGG, - WITCH_SPAWN_EGG, - WITHER_SKELETON_SPAWN_EGG, - WOLF_SPAWN_EGG, - ZOMBIE_SPAWN_EGG, - ZOMBIE_HORSE_SPAWN_EGG, - ZOMBIE_PIGMAN_SPAWN_EGG, - ZOMBIE_VILLAGER_SPAWN_EGG, - EXPERIENCE_BOTTLE, - FIRE_CHARGE, - WRITABLE_BOOK, - WRITTEN_BOOK, - EMERALD, - ITEM_FRAME, - FLOWER_POT, - CARROT, - POTATO, - BAKED_POTATO, - POISONOUS_POTATO, - MAP, - GOLDEN_CARROT, - SKELETON_SKULL, - WITHER_SKELETON_SKULL, - PLAYER_HEAD, - ZOMBIE_HEAD, - CREEPER_HEAD, - DRAGON_HEAD, - CARROT_ON_A_STICK, - NETHER_STAR, - PUMPKIN_PIE, - FIREWORK_ROCKET, - FIREWORK_STAR, - ENCHANTED_BOOK, - NETHER_BRICK, - QUARTZ, - TNT_MINECART, - HOPPER_MINECART, - PRISMARINE_SHARD, - PRISMARINE_CRYSTALS, - RABBIT, - COOKED_RABBIT, - RABBIT_STEW, - RABBIT_FOOT, - RABBIT_HIDE, - ARMOR_STAND, - IRON_HORSE_ARMOR, - GOLDEN_HORSE_ARMOR, - DIAMOND_HORSE_ARMOR, - LEATHER_HORSE_ARMOR, - LEAD, - NAME_TAG, - COMMAND_BLOCK_MINECART, - MUTTON, - COOKED_MUTTON, - WHITE_BANNER, - ORANGE_BANNER, - MAGENTA_BANNER, - LIGHT_BLUE_BANNER, - YELLOW_BANNER, - LIME_BANNER, - PINK_BANNER, - GRAY_BANNER, - LIGHT_GRAY_BANNER, - CYAN_BANNER, - PURPLE_BANNER, - BLUE_BANNER, - BROWN_BANNER, - GREEN_BANNER, - RED_BANNER, - BLACK_BANNER, - END_CRYSTAL, - CHORUS_FRUIT, - POPPED_CHORUS_FRUIT, - BEETROOT, - BEETROOT_SEEDS, - BEETROOT_SOUP, - DRAGON_BREATH, - SPLASH_POTION, - SPECTRAL_ARROW, - TIPPED_ARROW, - LINGERING_POTION, - SHIELD, - ELYTRA, - SPRUCE_BOAT, - BIRCH_BOAT, - JUNGLE_BOAT, - ACACIA_BOAT, - DARK_OAK_BOAT, - TOTEM_OF_UNDYING, - SHULKER_SHELL, - IRON_NUGGET, - KNOWLEDGE_BOOK, - DEBUG_STICK, - MUSIC_DISC_13, - MUSIC_DISC_CAT, - MUSIC_DISC_BLOCKS, - MUSIC_DISC_CHIRP, - MUSIC_DISC_FAR, - MUSIC_DISC_MALL, - MUSIC_DISC_MELLOHI, - MUSIC_DISC_STAL, - MUSIC_DISC_STRAD, - MUSIC_DISC_WARD, - MUSIC_DISC_11, - MUSIC_DISC_WAIT, - TRIDENT, - PHANTOM_MEMBRANE, - NAUTILUS_SHELL, - HEART_OF_THE_SEA, - CROSSBOW, - SUSPICIOUS_STEW, - LOOM, - FLOWER_BANNER_PATTERN, - CREEPER_BANNER_PATTERN, - SKULL_BANNER_PATTERN, - MOJANG_BANNER_PATTERN, - GLOBE_BANNER_PATTERN, - BARREL, - SMOKER, - BLAST_FURNACE, - CARTOGRAPHY_TABLE, - FLETCHING_TABLE, - GRINDSTONE, - LECTERN, - SMITHING_TABLE, - STONECUTTER, - BELL, - LANTERN, - SWEET_BERRIES, - CAMPFIRE, - HONEYCOMB, - BEE_NEST, - BEEHIVE, - HONEY_BOTTLE, - HONEY_BLOCK, - HONEYCOMB_BLOCK; - - private static Short2ObjectOpenHashMap idToMaterial = new Short2ObjectOpenHashMap<>(); - - private short materialId; - private Block block; - - public static Material fromId(short id) { - return idToMaterial.get(id); - } - - public void setIdentifier(short materialId, Block block) { - this.materialId = materialId; - this.block = block; - - idToMaterial.put(materialId, this); - } - - public boolean isBlock() { - return block != null && this != AIR; - } - - public Block getBlock() { - return block; - } - - public boolean isHelmet() { - return toString().endsWith("HELMET"); - } - - public boolean isChestplate() { - return toString().endsWith("CHESTPLATE"); - } - - public boolean isLeggings() { - return toString().endsWith("LEGGINGS"); - } - - public boolean isBoots() { - return toString().endsWith("BOOTS"); - } - - public boolean isArmor() { - return isHelmet() || isChestplate() || - isLeggings() || isBoots(); - } - - public boolean isFood() { - switch (this) { - case APPLE: - case MUSHROOM_STEW: - case BREAD: - case PORKCHOP: - case COOKED_PORKCHOP: - case GOLDEN_APPLE: - case ENCHANTED_GOLDEN_APPLE: - case COD: - case SALMON: - case TROPICAL_FISH: - case PUFFERFISH: - case COOKED_COD: - case COOKED_SALMON: - case CAKE: - case COOKIE: - case MELON_SLICE: - case DRIED_KELP: - case BEEF: - case COOKED_BEEF: - case CHICKEN: - case COOKED_CHICKEN: - case ROTTEN_FLESH: - case SPIDER_EYE: - case CARROT: - case POTATO: - case BAKED_POTATO: - case POISONOUS_POTATO: - case PUMPKIN_PIE: - case RABBIT: - case COOKED_RABBIT: - case RABBIT_STEW: - case MUTTON: - case COOKED_MUTTON: - case BEETROOT: - case BEETROOT_SOUP: - case SWEET_BERRIES: - case HONEY_BOTTLE: - return true; - default: - return false; - } - } - - public boolean hasState() { - switch (this) { - case BOW: - case TRIDENT: - case CROSSBOW: - case SHIELD: - return true; - } - - return isFood(); - } - - public short getId() { - return materialId; - } -} diff --git a/src/main/java/net/minestom/server/registry/RegistryMain.java b/src/main/java/net/minestom/server/registry/RegistryMain.java index e9a9c01b1..7aadf984f 100644 --- a/src/main/java/net/minestom/server/registry/RegistryMain.java +++ b/src/main/java/net/minestom/server/registry/RegistryMain.java @@ -49,27 +49,6 @@ public class RegistryMain { writePotionsClass(potions); } - public static void registerItems() { - List items = parseItems(ITEMS_PATH); - - for (RegistryItem registryItem : items) { - Material material = Material.valueOf(registryItem.name); - try { - Block block = Block.valueOf(registryItem.name); - material.setIdentifier(registryItem.itemId, block); - } catch (IllegalArgumentException e) { - switch (material) { - case REDSTONE: - material.setIdentifier(registryItem.itemId, Block.REDSTONE_WIRE); - break; - default: - material.setIdentifier(registryItem.itemId, null); - break; - } - } - } - } - public static void registerEntities() { List registryEntityTypes = parseEntities(ENTITIES_PATH);