Used ItemID in ItemType

Dieser Commit ist enthalten in:
TomyLobo 2011-09-19 08:04:57 +02:00
Ursprung 51d4b572cb
Commit 088001f099

Datei anzeigen

@ -145,121 +145,121 @@ public enum ItemType {
STONE_BRICK_STAIRS(BlockID.STONE_BRICK_STAIRS, "Stone brick stairs", "stonebrickstairs", "smoothstonebrickstairs"), STONE_BRICK_STAIRS(BlockID.STONE_BRICK_STAIRS, "Stone brick stairs", "stonebrickstairs", "smoothstonebrickstairs"),
// Items // Items
IRON_SHOVEL(256, "Iron shovel", "ironshovel"), IRON_SHOVEL(ItemID.IRON_SHOVEL, "Iron shovel", "ironshovel"),
IRON_PICK(257, "Iron pick", "ironpick", "ironpickaxe"), IRON_PICK(ItemID.IRON_PICK, "Iron pick", "ironpick", "ironpickaxe"),
IRON_AXE(258, "Iron axe", "ironaxe"), IRON_AXE(ItemID.IRON_AXE, "Iron axe", "ironaxe"),
FLINT_AND_TINDER(259, "Flint and tinder", "flintandtinder", "lighter", "flintandsteel", "flintsteel", "flintandiron", "flintnsteel", "flintniron", "flintntinder"), FLINT_AND_TINDER(ItemID.FLINT_AND_TINDER, "Flint and tinder", "flintandtinder", "lighter", "flintandsteel", "flintsteel", "flintandiron", "flintnsteel", "flintniron", "flintntinder"),
RED_APPLE(260, "Red apple", "redapple", "apple"), RED_APPLE(ItemID.RED_APPLE, "Red apple", "redapple", "apple"),
BOW(261, "Bow", "bow"), BOW(ItemID.BOW, "Bow", "bow"),
ARROW(262, "Arrow", "arrow"), ARROW(ItemID.ARROW, "Arrow", "arrow"),
COAL(263, "Coal", "coal"), COAL(ItemID.COAL, "Coal", "coal"),
DIAMOND(264, "Diamond", "diamond"), DIAMOND(ItemID.DIAMOND, "Diamond", "diamond"),
IRON_BAR(265, "Iron bar", "ironbar", "iron"), IRON_BAR(ItemID.IRON_BAR, "Iron bar", "ironbar", "iron"),
GOLD_BAR(266, "Gold bar", "goldbar", "gold"), GOLD_BAR(ItemID.GOLD_BAR, "Gold bar", "goldbar", "gold"),
IRON_SWORD(267, "Iron sword", "ironsword"), IRON_SWORD(ItemID.IRON_SWORD, "Iron sword", "ironsword"),
WOOD_SWORD(268, "Wooden sword", "woodsword"), WOOD_SWORD(ItemID.WOOD_SWORD, "Wooden sword", "woodsword"),
WOOD_SHOVEL(269, "Wooden shovel", "woodshovel"), WOOD_SHOVEL(ItemID.WOOD_SHOVEL, "Wooden shovel", "woodshovel"),
WOOD_PICKAXE(270, "Wooden pickaxe", "woodpick", "woodpickaxe"), WOOD_PICKAXE(ItemID.WOOD_PICKAXE, "Wooden pickaxe", "woodpick", "woodpickaxe"),
WOOD_AXE(271, "Wooden axe", "woodaxe"), WOOD_AXE(ItemID.WOOD_AXE, "Wooden axe", "woodaxe"),
STONE_SWORD(272, "Stone sword", "stonesword"), STONE_SWORD(ItemID.STONE_SWORD, "Stone sword", "stonesword"),
STONE_SHOVEL(273, "Stone shovel", "stoneshovel"), STONE_SHOVEL(ItemID.STONE_SHOVEL, "Stone shovel", "stoneshovel"),
STONE_PICKAXE(274, "Stone pickaxe", "stonepick", "stonepickaxe"), STONE_PICKAXE(ItemID.STONE_PICKAXE, "Stone pickaxe", "stonepick", "stonepickaxe"),
STONE_AXE(275, "Stone pickaxe", "stoneaxe"), STONE_AXE(ItemID.STONE_AXE, "Stone pickaxe", "stoneaxe"),
DIAMOND_SWORD(276, "Diamond sword", "diamondsword"), DIAMOND_SWORD(ItemID.DIAMOND_SWORD, "Diamond sword", "diamondsword"),
DIAMOND_SHOVEL(277, "Diamond shovel", "diamondshovel"), DIAMOND_SHOVEL(ItemID.DIAMOND_SHOVEL, "Diamond shovel", "diamondshovel"),
DIAMOND_PICKAXE(278, "Diamond pickaxe", "diamondpick", "diamondpickaxe"), DIAMOND_PICKAXE(ItemID.DIAMOND_PICKAXE, "Diamond pickaxe", "diamondpick", "diamondpickaxe"),
DIAMOND_AXE(279, "Diamond axe", "diamondaxe"), DIAMOND_AXE(ItemID.DIAMOND_AXE, "Diamond axe", "diamondaxe"),
STICK(280, "Stick", "stick"), STICK(ItemID.STICK, "Stick", "stick"),
BOWL(281, "Bowl", "bowl"), BOWL(ItemID.BOWL, "Bowl", "bowl"),
MUSHROOM_SOUP(282, "Mushroom soup", "mushroomsoup", "soup", "brbsoup"), MUSHROOM_SOUP(ItemID.MUSHROOM_SOUP, "Mushroom soup", "mushroomsoup", "soup", "brbsoup"),
GOLD_SWORD(283, "Golden sword", "goldsword"), GOLD_SWORD(ItemID.GOLD_SWORD, "Golden sword", "goldsword"),
GOLD_SHOVEL(284, "Golden shovel", "goldshovel"), GOLD_SHOVEL(ItemID.GOLD_SHOVEL, "Golden shovel", "goldshovel"),
GOLD_PICKAXE(285, "Golden pickaxe", "goldpick", "goldpickaxe"), GOLD_PICKAXE(ItemID.GOLD_PICKAXE, "Golden pickaxe", "goldpick", "goldpickaxe"),
GOLD_AXE(286, "Golden axe", "goldaxe"), GOLD_AXE(ItemID.GOLD_AXE, "Golden axe", "goldaxe"),
STRING(287, "String", "string"), STRING(ItemID.STRING, "String", "string"),
FEATHER(288, "Feather", "feather"), FEATHER(ItemID.FEATHER, "Feather", "feather"),
SULPHUR(289, "Sulphur", "sulphur", "sulfur", "gunpowder"), SULPHUR(ItemID.SULPHUR, "Sulphur", "sulphur", "sulfur", "gunpowder"),
WOOD_HOE(290, "Wooden hoe", "woodhoe"), WOOD_HOE(ItemID.WOOD_HOE, "Wooden hoe", "woodhoe"),
STONE_HOE(291, "Stone hoe", "stonehoe"), STONE_HOE(ItemID.STONE_HOE, "Stone hoe", "stonehoe"),
IRON_HOE(292, "Iron hoe", "ironhoe"), IRON_HOE(ItemID.IRON_HOE, "Iron hoe", "ironhoe"),
DIAMOND_HOE(293, "Diamond hoe", "diamondhoe"), DIAMOND_HOE(ItemID.DIAMOND_HOE, "Diamond hoe", "diamondhoe"),
GOLD_HOE(294, "Golden hoe", "goldhoe"), GOLD_HOE(ItemID.GOLD_HOE, "Golden hoe", "goldhoe"),
SEEDS(295, "Seeds", "seeds", "seed"), SEEDS(ItemID.SEEDS, "Seeds", "seeds", "seed"),
WHEAT(296, "Wheat", "wheat"), WHEAT(ItemID.WHEAT, "Wheat", "wheat"),
BREAD(297, "Bread", "bread"), BREAD(ItemID.BREAD, "Bread", "bread"),
LEATHER_HELMET(298, "Leather helmet", "leatherhelmet", "leatherhat"), LEATHER_HELMET(ItemID.LEATHER_HELMET, "Leather helmet", "leatherhelmet", "leatherhat"),
LEATHER_CHEST(299, "Leather chestplate", "leatherchest", "leatherchestplate", "leathervest", "leatherbreastplate", "leatherplate", "leathercplate", "leatherbody"), LEATHER_CHEST(ItemID.LEATHER_CHEST, "Leather chestplate", "leatherchest", "leatherchestplate", "leathervest", "leatherbreastplate", "leatherplate", "leathercplate", "leatherbody"),
LEATHER_PANTS(300, "Leather pants", "leatherpants", "leathergreaves", "leatherlegs", "leatherleggings", "leatherstockings", "leatherbreeches"), LEATHER_PANTS(ItemID.LEATHER_PANTS, "Leather pants", "leatherpants", "leathergreaves", "leatherlegs", "leatherleggings", "leatherstockings", "leatherbreeches"),
LEATHER_BOOTS(301, "Leather boots", "leatherboots", "leathershoes", "leatherfoot", "leatherfeet"), LEATHER_BOOTS(ItemID.LEATHER_BOOTS, "Leather boots", "leatherboots", "leathershoes", "leatherfoot", "leatherfeet"),
CHAINMAIL_HELMET(302, "Chainmail helmet", "chainmailhelmet", "chainmailhat"), CHAINMAIL_HELMET(ItemID.CHAINMAIL_HELMET, "Chainmail helmet", "chainmailhelmet", "chainmailhat"),
CHAINMAIL_CHEST(303, "Chainmail chestplate", "chainmailchest", "chainmailchestplate", "chainmailvest", "chainmailbreastplate", "chainmailplate", "chainmailcplate", "chainmailbody"), CHAINMAIL_CHEST(ItemID.CHAINMAIL_CHEST, "Chainmail chestplate", "chainmailchest", "chainmailchestplate", "chainmailvest", "chainmailbreastplate", "chainmailplate", "chainmailcplate", "chainmailbody"),
CHAINMAIL_PANTS(304, "Chainmail pants", "chainmailpants", "chainmailgreaves", "chainmaillegs", "chainmailleggings", "chainmailstockings", "chainmailbreeches"), CHAINMAIL_PANTS(ItemID.CHAINMAIL_PANTS, "Chainmail pants", "chainmailpants", "chainmailgreaves", "chainmaillegs", "chainmailleggings", "chainmailstockings", "chainmailbreeches"),
CHAINMAIL_BOOTS(305, "Chainmail boots", "chainmailboots", "chainmailshoes", "chainmailfoot", "chainmailfeet"), CHAINMAIL_BOOTS(ItemID.CHAINMAIL_BOOTS, "Chainmail boots", "chainmailboots", "chainmailshoes", "chainmailfoot", "chainmailfeet"),
IRON_HELMET(306, "Iron helmet", "ironhelmet", "ironhat"), IRON_HELMET(ItemID.IRON_HELMET, "Iron helmet", "ironhelmet", "ironhat"),
IRON_CHEST(307, "Iron chestplate", "ironchest", "ironchestplate", "ironvest", "ironbreastplate", "ironplate", "ironcplate", "ironbody"), IRON_CHEST(ItemID.IRON_CHEST, "Iron chestplate", "ironchest", "ironchestplate", "ironvest", "ironbreastplate", "ironplate", "ironcplate", "ironbody"),
IRON_PANTS(308, "Iron pants", "ironpants", "irongreaves", "ironlegs", "ironleggings", "ironstockings", "ironbreeches"), IRON_PANTS(ItemID.IRON_PANTS, "Iron pants", "ironpants", "irongreaves", "ironlegs", "ironleggings", "ironstockings", "ironbreeches"),
IRON_BOOTS(309, "Iron boots", "ironboots", "ironshoes", "ironfoot", "ironfeet"), IRON_BOOTS(ItemID.IRON_BOOTS, "Iron boots", "ironboots", "ironshoes", "ironfoot", "ironfeet"),
DIAMOND_HELMET(310, "Diamond helmet", "diamondhelmet", "diamondhat"), DIAMOND_HELMET(ItemID.DIAMOND_HELMET, "Diamond helmet", "diamondhelmet", "diamondhat"),
DIAMOND_CHEST(311, "Diamond chestplate", "diamondchest", "diamondchestplate", "diamondvest", "diamondbreastplate", "diamondplate", "diamondcplate", "diamondbody"), DIAMOND_CHEST(ItemID.DIAMOND_CHEST, "Diamond chestplate", "diamondchest", "diamondchestplate", "diamondvest", "diamondbreastplate", "diamondplate", "diamondcplate", "diamondbody"),
DIAMOND_PANTS(312, "Diamond pants", "diamondpants", "diamondgreaves", "diamondlegs", "diamondleggings", "diamondstockings", "diamondbreeches"), DIAMOND_PANTS(ItemID.DIAMOND_PANTS, "Diamond pants", "diamondpants", "diamondgreaves", "diamondlegs", "diamondleggings", "diamondstockings", "diamondbreeches"),
DIAMOND_BOOTS(313, "Diamond boots", "diamondboots", "diamondshoes", "diamondfoot", "diamondfeet"), DIAMOND_BOOTS(ItemID.DIAMOND_BOOTS, "Diamond boots", "diamondboots", "diamondshoes", "diamondfoot", "diamondfeet"),
GOLD_HELMET(314, "Gold helmet", "goldhelmet", "goldhat"), GOLD_HELMET(ItemID.GOLD_HELMET, "Gold helmet", "goldhelmet", "goldhat"),
GOLD_CHEST(315, "Gold chestplate", "goldchest", "goldchestplate", "goldvest", "goldbreastplate", "goldplate", "goldcplate", "goldbody"), GOLD_CHEST(ItemID.GOLD_CHEST, "Gold chestplate", "goldchest", "goldchestplate", "goldvest", "goldbreastplate", "goldplate", "goldcplate", "goldbody"),
GOLD_PANTS(316, "Gold pants", "goldpants", "goldgreaves", "goldlegs", "goldleggings", "goldstockings", "goldbreeches"), GOLD_PANTS(ItemID.GOLD_PANTS, "Gold pants", "goldpants", "goldgreaves", "goldlegs", "goldleggings", "goldstockings", "goldbreeches"),
GOLD_BOOTS(317, "Gold boots", "goldboots", "goldshoes", "goldfoot", "goldfeet"), GOLD_BOOTS(ItemID.GOLD_BOOTS, "Gold boots", "goldboots", "goldshoes", "goldfoot", "goldfeet"),
FLINT(318, "Flint", "flint"), FLINT(ItemID.FLINT, "Flint", "flint"),
RAW_PORKCHOP(319, "Raw porkchop", "rawpork", "rawporkchop", "rawbacon", "baconstrips", "rawmeat"), RAW_PORKCHOP(ItemID.RAW_PORKCHOP, "Raw porkchop", "rawpork", "rawporkchop", "rawbacon", "baconstrips", "rawmeat"),
COOKED_PORKCHOP(320, "Cooked porkchop", "pork", "cookedpork", "cookedporkchop", "cookedbacon", "bacon", "meat"), COOKED_PORKCHOP(ItemID.COOKED_PORKCHOP, "Cooked porkchop", "pork", "cookedpork", "cookedporkchop", "cookedbacon", "bacon", "meat"),
PAINTING(321, "Painting", "painting"), PAINTING(ItemID.PAINTING, "Painting", "painting"),
GOLD_APPLE(322, "Golden apple", "goldapple", "goldenapple"), GOLD_APPLE(ItemID.GOLD_APPLE, "Golden apple", "goldapple", "goldenapple"),
SIGN(323, "Wooden sign", "sign"), SIGN(ItemID.SIGN, "Wooden sign", "sign"),
WOODEN_DOOR_ITEM(324, "Wooden door", "wooddoor", "door"), WOODEN_DOOR_ITEM(ItemID.WOODEN_DOOR_ITEM, "Wooden door", "wooddoor", "door"),
BUCKET(325, "Bucket", "bucket", "bukkit"), BUCKET(ItemID.BUCKET, "Bucket", "bucket", "bukkit"),
WATER_BUCKET(326, "Water bucket", "waterbucket", "waterbukkit"), WATER_BUCKET(ItemID.WATER_BUCKET, "Water bucket", "waterbucket", "waterbukkit"),
LAVA_BUCKET(327, "Lava bucket", "lavabucket", "lavabukkit"), LAVA_BUCKET(ItemID.LAVA_BUCKET, "Lava bucket", "lavabucket", "lavabukkit"),
MINECART(328, "Minecart", "minecart", "cart"), MINECART(ItemID.MINECART, "Minecart", "minecart", "cart"),
SADDLE(329, "Saddle", "saddle"), SADDLE(ItemID.SADDLE, "Saddle", "saddle"),
IRON_DOOR_ITEM(330, "Iron door", "irondoor"), IRON_DOOR_ITEM(ItemID.IRON_DOOR_ITEM, "Iron door", "irondoor"),
REDSTONE_DUST(331, "Redstone dust", "redstonedust", "reddust", "redstone", "dust", "wire"), REDSTONE_DUST(ItemID.REDSTONE_DUST, "Redstone dust", "redstonedust", "reddust", "redstone", "dust", "wire"),
SNOWBALL(332, "Snowball", "snowball"), SNOWBALL(ItemID.SNOWBALL, "Snowball", "snowball"),
WOOD_BOAT(333, "Wooden boat", "woodboat", "woodenboat", "boat"), WOOD_BOAT(ItemID.WOOD_BOAT, "Wooden boat", "woodboat", "woodenboat", "boat"),
LEATHER(334, "Leather", "leather", "cowhide"), LEATHER(ItemID.LEATHER, "Leather", "leather", "cowhide"),
MILK_BUCKET(335, "Milk bucket", "milkbucket", "milk", "milkbukkit"), MILK_BUCKET(ItemID.MILK_BUCKET, "Milk bucket", "milkbucket", "milk", "milkbukkit"),
BRICK_BAR(336, "Brick", "brickbar"), BRICK_BAR(ItemID.BRICK_BAR, "Brick", "brickbar"),
CLAY_BALL(337, "Clay", "clay"), CLAY_BALL(ItemID.CLAY_BALL, "Clay", "clay"),
SUGAR_CANE_ITEM(338, "Sugar cane", "sugarcane", "reed", "reeds"), SUGAR_CANE_ITEM(ItemID.SUGAR_CANE_ITEM, "Sugar cane", "sugarcane", "reed", "reeds"),
PAPER(339, "Paper", "paper"), PAPER(ItemID.PAPER, "Paper", "paper"),
BOOK(340, "Book", "book"), BOOK(ItemID.BOOK, "Book", "book"),
SLIME_BALL(341, "Slime ball", "slimeball", "slime"), SLIME_BALL(ItemID.SLIME_BALL, "Slime ball", "slimeball", "slime"),
STORAGE_MINECART(342, "Storage minecart", "storageminecart", "storagecart"), STORAGE_MINECART(ItemID.STORAGE_MINECART, "Storage minecart", "storageminecart", "storagecart"),
POWERED_MINECART(343, "Powered minecart", "poweredminecart", "poweredcart"), POWERED_MINECART(ItemID.POWERED_MINECART, "Powered minecart", "poweredminecart", "poweredcart"),
EGG(344, "Egg", "egg"), EGG(ItemID.EGG, "Egg", "egg"),
COMPASS(345, "Compass", "compass"), COMPASS(ItemID.COMPASS, "Compass", "compass"),
FISHING_ROD(346, "Fishing rod", "fishingrod", "fishingpole"), FISHING_ROD(ItemID.FISHING_ROD, "Fishing rod", "fishingrod", "fishingpole"),
WATCH(347, "Watch", "watch", "clock", "timer"), WATCH(ItemID.WATCH, "Watch", "watch", "clock", "timer"),
LIGHTSTONE_DUST(348, "Glowstone dust", "lightstonedust", "glowstonedone", "brightstonedust", "brittlegolddust", "brimstonedust"), LIGHTSTONE_DUST(ItemID.LIGHTSTONE_DUST, "Glowstone dust", "lightstonedust", "glowstonedone", "brightstonedust", "brittlegolddust", "brimstonedust"),
RAW_FISH(349, "Raw fish", "rawfish", "fish"), RAW_FISH(ItemID.RAW_FISH, "Raw fish", "rawfish", "fish"),
COOKED_FISH(350, "Cooked fish", "cookedfish"), COOKED_FISH(ItemID.COOKED_FISH, "Cooked fish", "cookedfish"),
INK_SACK(351, "Ink sac", "inksac", "ink", "dye", "inksack"), INK_SACK(ItemID.INK_SACK, "Ink sac", "inksac", "ink", "dye", "inksack"),
BONE(352, "Bone", "bone"), BONE(ItemID.BONE, "Bone", "bone"),
SUGAR(353, "Sugar", "sugar"), SUGAR(ItemID.SUGAR, "Sugar", "sugar"),
CAKE_ITEM(354, "Cake", "cake"), CAKE_ITEM(ItemID.CAKE_ITEM, "Cake", "cake"),
BED_ITEM(355, "Bed", "bed"), BED_ITEM(ItemID.BED_ITEM, "Bed", "bed"),
REDSTONE_REPEATER(356, "Redstone repeater", "redstonerepeater", "diode", "delayer", "repeater"), REDSTONE_REPEATER(ItemID.REDSTONE_REPEATER, "Redstone repeater", "redstonerepeater", "diode", "delayer", "repeater"),
COOKIE(357, "Cookie", "cookie"), COOKIE(ItemID.COOKIE, "Cookie", "cookie"),
MAP(358, "Map", "map"), MAP(ItemID.MAP, "Map", "map"),
SHEARS(359, "Shears", "shears", "scissors"), SHEARS(ItemID.SHEARS, "Shears", "shears", "scissors"),
MELON(360, "Melon Slice", "melon", "melonslice"), MELON(ItemID.MELON, "Melon Slice", "melon", "melonslice"),
PUMPKIN_SEEDS(361, "Pumpkin seeds", "pumpkinseed", "pumpkinseeds"), PUMPKIN_SEEDS(ItemID.PUMPKIN_SEEDS, "Pumpkin seeds", "pumpkinseed", "pumpkinseeds"),
MELON_SEEDS(362, "Melon seeds", "melonseed", "melonseeds"), MELON_SEEDS(ItemID.MELON_SEEDS, "Melon seeds", "melonseed", "melonseeds"),
RAW_BEEF(363, "Raw beef", "rawbeef", "rawcow", "beef"), RAW_BEEF(ItemID.RAW_BEEF, "Raw beef", "rawbeef", "rawcow", "beef"),
COOKED_BEEF(364, "Steak", "steak", "cookedbeef", "cookedcow"), COOKED_BEEF(ItemID.COOKED_BEEF, "Steak", "steak", "cookedbeef", "cookedcow"),
RAW_CHICKEN(365, "Raw chicken", "rawchicken"), RAW_CHICKEN(ItemID.RAW_CHICKEN, "Raw chicken", "rawchicken"),
COOKED_CHICKEN(366, "Cooked chicken", "cookedchicken", "chicken", "grilledchicken"), COOKED_CHICKEN(ItemID.COOKED_CHICKEN, "Cooked chicken", "cookedchicken", "chicken", "grilledchicken"),
ROTTEN_FLESH(367, "Rotten flesh", "rottenflesh", "zombiemeat", "flesh"), ROTTEN_FLESH(ItemID.ROTTEN_FLESH, "Rotten flesh", "rottenflesh", "zombiemeat", "flesh"),
ENDER_PEARL(368, "Ender pearl", "pearl", "enderpearl"), ENDER_PEARL(ItemID.ENDER_PEARL, "Ender pearl", "pearl", "enderpearl"),
GOLD_RECORD(2256, "Gold Record", "goldrecord", "golddisc"), GOLD_RECORD(ItemID.GOLD_RECORD, "Gold Record", "goldrecord", "golddisc"),
GREEN_RECORD(2257, "Green Record", "greenrecord", "greenddisc"); GREEN_RECORD(ItemID.GREEN_RECORD, "Green Record", "greenrecord", "greenddisc");
/** /**
* Stores a map of the IDs for fast access. * Stores a map of the IDs for fast access.
@ -433,74 +433,72 @@ public enum ItemType {
* @return * @return
*/ */
public static boolean shouldNotStack(int id) { public static boolean shouldNotStack(int id) {
ItemType t = ItemType.fromID(id); return id == ItemID.IRON_SHOVEL
if (t == null) return false; || id == ItemID.IRON_PICK
return t == ItemType.IRON_SHOVEL || id == ItemID.IRON_AXE
|| t == ItemType.IRON_PICK || id == ItemID.FLINT_AND_TINDER
|| t == ItemType.IRON_AXE || id == ItemID.BOW
|| t == ItemType.FLINT_AND_TINDER || id == ItemID.IRON_SWORD
|| t == ItemType.BOW || id == ItemID.WOOD_SWORD
|| t == ItemType.IRON_SWORD || id == ItemID.WOOD_SHOVEL
|| t == ItemType.WOOD_SWORD || id == ItemID.WOOD_PICKAXE
|| t == ItemType.WOOD_SHOVEL || id == ItemID.WOOD_AXE
|| t == ItemType.WOOD_PICKAXE || id == ItemID.STONE_SWORD
|| t == ItemType.WOOD_AXE || id == ItemID.STONE_SHOVEL
|| t == ItemType.STONE_SWORD || id == ItemID.STONE_PICKAXE
|| t == ItemType.STONE_SHOVEL || id == ItemID.STONE_AXE
|| t == ItemType.STONE_PICKAXE || id == ItemID.DIAMOND_SWORD
|| t == ItemType.STONE_AXE || id == ItemID.DIAMOND_SHOVEL
|| t == ItemType.DIAMOND_SWORD || id == ItemID.DIAMOND_PICKAXE
|| t == ItemType.DIAMOND_SHOVEL || id == ItemID.DIAMOND_AXE
|| t == ItemType.DIAMOND_PICKAXE || id == ItemID.BOWL
|| t == ItemType.DIAMOND_AXE || id == ItemID.GOLD_SWORD
|| t == ItemType.BOWL || id == ItemID.GOLD_SHOVEL
|| t == ItemType.GOLD_SWORD || id == ItemID.GOLD_PICKAXE
|| t == ItemType.GOLD_SHOVEL || id == ItemID.GOLD_AXE
|| t == ItemType.GOLD_PICKAXE || id == ItemID.WOOD_HOE
|| t == ItemType.GOLD_AXE || id == ItemID.STONE_HOE
|| t == ItemType.WOOD_HOE || id == ItemID.IRON_HOE
|| t == ItemType.STONE_HOE || id == ItemID.DIAMOND_HOE
|| t == ItemType.IRON_HOE || id == ItemID.GOLD_HOE
|| t == ItemType.DIAMOND_HOE || id == ItemID.LEATHER_HELMET
|| t == ItemType.GOLD_HOE || id == ItemID.LEATHER_CHEST
|| t == ItemType.LEATHER_HELMET || id == ItemID.LEATHER_PANTS
|| t == ItemType.LEATHER_CHEST || id == ItemID.LEATHER_BOOTS
|| t == ItemType.LEATHER_PANTS || id == ItemID.CHAINMAIL_CHEST
|| t == ItemType.LEATHER_BOOTS || id == ItemID.CHAINMAIL_HELMET
|| t == ItemType.CHAINMAIL_CHEST || id == ItemID.CHAINMAIL_BOOTS
|| t == ItemType.CHAINMAIL_HELMET || id == ItemID.CHAINMAIL_PANTS
|| t == ItemType.CHAINMAIL_BOOTS || id == ItemID.IRON_HELMET
|| t == ItemType.CHAINMAIL_PANTS || id == ItemID.IRON_CHEST
|| t == ItemType.IRON_HELMET || id == ItemID.IRON_PANTS
|| t == ItemType.IRON_CHEST || id == ItemID.IRON_BOOTS
|| t == ItemType.IRON_PANTS || id == ItemID.DIAMOND_HELMET
|| t == ItemType.IRON_BOOTS || id == ItemID.DIAMOND_PANTS
|| t == ItemType.DIAMOND_HELMET || id == ItemID.DIAMOND_CHEST
|| t == ItemType.DIAMOND_PANTS || id == ItemID.DIAMOND_BOOTS
|| t == ItemType.DIAMOND_CHEST || id == ItemID.GOLD_HELMET
|| t == ItemType.DIAMOND_BOOTS || id == ItemID.GOLD_CHEST
|| t == ItemType.GOLD_HELMET || id == ItemID.GOLD_PANTS
|| t == ItemType.GOLD_CHEST || id == ItemID.GOLD_BOOTS
|| t == ItemType.GOLD_PANTS || id == ItemID.SIGN
|| t == ItemType.GOLD_BOOTS || id == ItemID.WOODEN_DOOR_ITEM
|| t == ItemType.SIGN || id == ItemID.BUCKET
|| t == ItemType.WOODEN_DOOR_ITEM || id == ItemID.WATER_BUCKET
|| t == ItemType.BUCKET || id == ItemID.LAVA_BUCKET
|| t == ItemType.WATER_BUCKET || id == ItemID.MINECART
|| t == ItemType.LAVA_BUCKET || id == ItemID.SADDLE
|| t == ItemType.MINECART || id == ItemID.IRON_DOOR_ITEM
|| t == ItemType.SADDLE || id == ItemID.WOOD_BOAT
|| t == ItemType.IRON_DOOR_ITEM || id == ItemID.MILK_BUCKET
|| t == ItemType.WOOD_BOAT || id == ItemID.STORAGE_MINECART
|| t == ItemType.MILK_BUCKET || id == ItemID.POWERED_MINECART
|| t == ItemType.STORAGE_MINECART || id == ItemID.WATCH
|| t == ItemType.POWERED_MINECART || id == ItemID.CAKE_ITEM
|| t == ItemType.WATCH || id == ItemID.BED_ITEM
|| t == ItemType.CAKE_ITEM || id == ItemID.MAP
|| t == ItemType.BED_ITEM || id == ItemID.GOLD_RECORD
|| t == ItemType.MAP || id == ItemID.GREEN_RECORD;
|| t == ItemType.GOLD_RECORD
|| t == ItemType.GREEN_RECORD;
} }
/** /**
@ -511,7 +509,7 @@ public enum ItemType {
* @return * @return
*/ */
public static boolean usesDamageValue(int id) { public static boolean usesDamageValue(int id) {
return id == ItemType.CLOTH.getID() return id == BlockID.CLOTH
|| id == ItemType.INK_SACK.getID(); || id == ItemID.INK_SACK;
} }
} }