| 1 | package net.minecraft.init;
|
| 2 |
|
| 3 | import net.minecraft.item.Item;
|
| 4 | import net.minecraft.item.ItemArmor;
|
| 5 | import net.minecraft.item.ItemArmorStand;
|
| 6 | import net.minecraft.item.ItemBow;
|
| 7 | import net.minecraft.item.ItemEmptyMap;
|
| 8 | import net.minecraft.item.ItemEnchantedBook;
|
| 9 | import net.minecraft.item.ItemFishingRod;
|
| 10 | import net.minecraft.item.ItemMap;
|
| 11 | import net.minecraft.item.ItemPotion;
|
| 12 | import net.minecraft.item.ItemShears;
|
| 13 | import net.minecraft.util.ResourceLocation;
|
| 14 |
|
| 15 | public class Items
|
| 16 | {
|
| 17 | public static final Item iron_shovel;
|
| 18 | public static final Item iron_pickaxe;
|
| 19 | public static final Item iron_axe;
|
| 20 | public static final Item flint_and_steel;
|
| 21 | public static final Item apple;
|
| 22 | public static final ItemBow bow;
|
| 23 | public static final Item arrow;
|
| 24 | public static final Item coal;
|
| 25 | public static final Item diamond;
|
| 26 | public static final Item iron_ingot;
|
| 27 | public static final Item gold_ingot;
|
| 28 | public static final Item iron_sword;
|
| 29 | public static final Item wooden_sword;
|
| 30 | public static final Item wooden_shovel;
|
| 31 | public static final Item wooden_pickaxe;
|
| 32 | public static final Item wooden_axe;
|
| 33 | public static final Item stone_sword;
|
| 34 | public static final Item stone_shovel;
|
| 35 | public static final Item stone_pickaxe;
|
| 36 | public static final Item stone_axe;
|
| 37 | public static final Item diamond_sword;
|
| 38 | public static final Item diamond_shovel;
|
| 39 | public static final Item diamond_pickaxe;
|
| 40 | public static final Item diamond_axe;
|
| 41 | public static final Item stick;
|
| 42 | public static final Item bowl;
|
| 43 | public static final Item mushroom_stew;
|
| 44 | public static final Item golden_sword;
|
| 45 | public static final Item golden_shovel;
|
| 46 | public static final Item golden_pickaxe;
|
| 47 | public static final Item golden_axe;
|
| 48 | public static final Item string;
|
| 49 | public static final Item feather;
|
| 50 | public static final Item gunpowder;
|
| 51 | public static final Item wooden_hoe;
|
| 52 | public static final Item stone_hoe;
|
| 53 | public static final Item iron_hoe;
|
| 54 | public static final Item diamond_hoe;
|
| 55 | public static final Item golden_hoe;
|
| 56 | public static final Item wheat_seeds;
|
| 57 | public static final Item wheat;
|
| 58 | public static final Item bread;
|
| 59 | public static final ItemArmor leather_helmet;
|
| 60 | public static final ItemArmor leather_chestplate;
|
| 61 | public static final ItemArmor leather_leggings;
|
| 62 | public static final ItemArmor leather_boots;
|
| 63 | public static final ItemArmor chainmail_helmet;
|
| 64 | public static final ItemArmor chainmail_chestplate;
|
| 65 | public static final ItemArmor chainmail_leggings;
|
| 66 | public static final ItemArmor chainmail_boots;
|
| 67 | public static final ItemArmor iron_helmet;
|
| 68 | public static final ItemArmor iron_chestplate;
|
| 69 | public static final ItemArmor iron_leggings;
|
| 70 | public static final ItemArmor iron_boots;
|
| 71 | public static final ItemArmor diamond_helmet;
|
| 72 | public static final ItemArmor diamond_chestplate;
|
| 73 | public static final ItemArmor diamond_leggings;
|
| 74 | public static final ItemArmor diamond_boots;
|
| 75 | public static final ItemArmor golden_helmet;
|
| 76 | public static final ItemArmor golden_chestplate;
|
| 77 | public static final ItemArmor golden_leggings;
|
| 78 | public static final ItemArmor golden_boots;
|
| 79 | public static final Item flint;
|
| 80 | public static final Item porkchop;
|
| 81 | public static final Item cooked_porkchop;
|
| 82 | public static final Item painting;
|
| 83 | public static final Item golden_apple;
|
| 84 | public static final Item sign;
|
| 85 | public static final Item oak_door;
|
| 86 | public static final Item spruce_door;
|
| 87 | public static final Item birch_door;
|
| 88 | public static final Item jungle_door;
|
| 89 | public static final Item acacia_door;
|
| 90 | public static final Item dark_oak_door;
|
| 91 | public static final Item bucket;
|
| 92 | public static final Item water_bucket;
|
| 93 | public static final Item lava_bucket;
|
| 94 | public static final Item minecart;
|
| 95 | public static final Item saddle;
|
| 96 | public static final Item iron_door;
|
| 97 | public static final Item redstone;
|
| 98 | public static final Item snowball;
|
| 99 | public static final Item boat;
|
| 100 | public static final Item leather;
|
| 101 | public static final Item milk_bucket;
|
| 102 | public static final Item brick;
|
| 103 | public static final Item clay_ball;
|
| 104 | public static final Item reeds;
|
| 105 | public static final Item paper;
|
| 106 | public static final Item book;
|
| 107 | public static final Item slime_ball;
|
| 108 | public static final Item chest_minecart;
|
| 109 | public static final Item furnace_minecart;
|
| 110 | public static final Item egg;
|
| 111 | public static final Item compass;
|
| 112 | public static final ItemFishingRod fishing_rod;
|
| 113 | public static final Item clock;
|
| 114 | public static final Item glowstone_dust;
|
| 115 | public static final Item fish;
|
| 116 | public static final Item cooked_fish;
|
| 117 | public static final Item dye;
|
| 118 | public static final Item bone;
|
| 119 | public static final Item sugar;
|
| 120 | public static final Item cake;
|
| 121 | public static final Item bed;
|
| 122 | public static final Item repeater;
|
| 123 | public static final Item cookie;
|
| 124 | public static final ItemMap filled_map;
|
| 125 | public static final ItemShears shears;
|
| 126 | public static final Item melon;
|
| 127 | public static final Item pumpkin_seeds;
|
| 128 | public static final Item melon_seeds;
|
| 129 | public static final Item beef;
|
| 130 | public static final Item cooked_beef;
|
| 131 | public static final Item chicken;
|
| 132 | public static final Item cooked_chicken;
|
| 133 | public static final Item mutton;
|
| 134 | public static final Item cooked_mutton;
|
| 135 | public static final Item rabbit;
|
| 136 | public static final Item cooked_rabbit;
|
| 137 | public static final Item rabbit_stew;
|
| 138 | public static final Item rabbit_foot;
|
| 139 | public static final Item rabbit_hide;
|
| 140 | public static final Item rotten_flesh;
|
| 141 | public static final Item ender_pearl;
|
| 142 | public static final Item blaze_rod;
|
| 143 | public static final Item ghast_tear;
|
| 144 | public static final Item gold_nugget;
|
| 145 | public static final Item nether_wart;
|
| 146 | public static final ItemPotion potionitem;
|
| 147 | public static final Item glass_bottle;
|
| 148 | public static final Item spider_eye;
|
| 149 | public static final Item fermented_spider_eye;
|
| 150 | public static final Item blaze_powder;
|
| 151 | public static final Item magma_cream;
|
| 152 | public static final Item brewing_stand;
|
| 153 | public static final Item cauldron;
|
| 154 | public static final Item ender_eye;
|
| 155 | public static final Item speckled_melon;
|
| 156 | public static final Item spawn_egg;
|
| 157 | public static final Item experience_bottle;
|
| 158 | public static final Item fire_charge;
|
| 159 | public static final Item writable_book;
|
| 160 | public static final Item written_book;
|
| 161 | public static final Item emerald;
|
| 162 | public static final Item item_frame;
|
| 163 | public static final Item flower_pot;
|
| 164 | public static final Item carrot;
|
| 165 | public static final Item potato;
|
| 166 | public static final Item baked_potato;
|
| 167 | public static final Item poisonous_potato;
|
| 168 | public static final ItemEmptyMap map;
|
| 169 | public static final Item golden_carrot;
|
| 170 | public static final Item skull;
|
| 171 | public static final Item carrot_on_a_stick;
|
| 172 | public static final Item nether_star;
|
| 173 | public static final Item pumpkin_pie;
|
| 174 | public static final Item fireworks;
|
| 175 | public static final Item firework_charge;
|
| 176 | public static final ItemEnchantedBook enchanted_book;
|
| 177 | public static final Item comparator;
|
| 178 | public static final Item netherbrick;
|
| 179 | public static final Item quartz;
|
| 180 | public static final Item tnt_minecart;
|
| 181 | public static final Item hopper_minecart;
|
| 182 | public static final ItemArmorStand armor_stand;
|
| 183 | public static final Item iron_horse_armor;
|
| 184 | public static final Item golden_horse_armor;
|
| 185 | public static final Item diamond_horse_armor;
|
| 186 | public static final Item lead;
|
| 187 | public static final Item name_tag;
|
| 188 | public static final Item command_block_minecart;
|
| 189 | public static final Item record_13;
|
| 190 | public static final Item record_cat;
|
| 191 | public static final Item record_blocks;
|
| 192 | public static final Item record_chirp;
|
| 193 | public static final Item record_far;
|
| 194 | public static final Item record_mall;
|
| 195 | public static final Item record_mellohi;
|
| 196 | public static final Item record_stal;
|
| 197 | public static final Item record_strad;
|
| 198 | public static final Item record_ward;
|
| 199 | public static final Item record_11;
|
| 200 | public static final Item record_wait;
|
| 201 | public static final Item prismarine_shard;
|
| 202 | public static final Item prismarine_crystals;
|
| 203 | public static final Item banner;
|
| 204 |
|
| 205 | private static Item getRegisteredItem(String name)
|
| 206 | {
|
| 207 | return (Item)Item.itemRegistry.getObject(new ResourceLocation(name));
|
| 208 | }
|
| 209 |
|
| 210 | static
|
| 211 | {
|
| 212 | if (!Bootstrap.isRegistered())
|
| 213 | {
|
| 214 | throw new RuntimeException("Accessed Items before Bootstrap!");
|
| 215 | }
|
| 216 | else
|
| 217 | {
|
| 218 | iron_shovel = getRegisteredItem("iron_shovel");
|
| 219 | iron_pickaxe = getRegisteredItem("iron_pickaxe");
|
| 220 | iron_axe = getRegisteredItem("iron_axe");
|
| 221 | flint_and_steel = getRegisteredItem("flint_and_steel");
|
| 222 | apple = getRegisteredItem("apple");
|
| 223 | bow = (ItemBow)getRegisteredItem("bow");
|
| 224 | arrow = getRegisteredItem("arrow");
|
| 225 | coal = getRegisteredItem("coal");
|
| 226 | diamond = getRegisteredItem("diamond");
|
| 227 | iron_ingot = getRegisteredItem("iron_ingot");
|
| 228 | gold_ingot = getRegisteredItem("gold_ingot");
|
| 229 | iron_sword = getRegisteredItem("iron_sword");
|
| 230 | wooden_sword = getRegisteredItem("wooden_sword");
|
| 231 | wooden_shovel = getRegisteredItem("wooden_shovel");
|
| 232 | wooden_pickaxe = getRegisteredItem("wooden_pickaxe");
|
| 233 | wooden_axe = getRegisteredItem("wooden_axe");
|
| 234 | stone_sword = getRegisteredItem("stone_sword");
|
| 235 | stone_shovel = getRegisteredItem("stone_shovel");
|
| 236 | stone_pickaxe = getRegisteredItem("stone_pickaxe");
|
| 237 | stone_axe = getRegisteredItem("stone_axe");
|
| 238 | diamond_sword = getRegisteredItem("diamond_sword");
|
| 239 | diamond_shovel = getRegisteredItem("diamond_shovel");
|
| 240 | diamond_pickaxe = getRegisteredItem("diamond_pickaxe");
|
| 241 | diamond_axe = getRegisteredItem("diamond_axe");
|
| 242 | stick = getRegisteredItem("stick");
|
| 243 | bowl = getRegisteredItem("bowl");
|
| 244 | mushroom_stew = getRegisteredItem("mushroom_stew");
|
| 245 | golden_sword = getRegisteredItem("golden_sword");
|
| 246 | golden_shovel = getRegisteredItem("golden_shovel");
|
| 247 | golden_pickaxe = getRegisteredItem("golden_pickaxe");
|
| 248 | golden_axe = getRegisteredItem("golden_axe");
|
| 249 | string = getRegisteredItem("string");
|
| 250 | feather = getRegisteredItem("feather");
|
| 251 | gunpowder = getRegisteredItem("gunpowder");
|
| 252 | wooden_hoe = getRegisteredItem("wooden_hoe");
|
| 253 | stone_hoe = getRegisteredItem("stone_hoe");
|
| 254 | iron_hoe = getRegisteredItem("iron_hoe");
|
| 255 | diamond_hoe = getRegisteredItem("diamond_hoe");
|
| 256 | golden_hoe = getRegisteredItem("golden_hoe");
|
| 257 | wheat_seeds = getRegisteredItem("wheat_seeds");
|
| 258 | wheat = getRegisteredItem("wheat");
|
| 259 | bread = getRegisteredItem("bread");
|
| 260 | leather_helmet = (ItemArmor)getRegisteredItem("leather_helmet");
|
| 261 | leather_chestplate = (ItemArmor)getRegisteredItem("leather_chestplate");
|
| 262 | leather_leggings = (ItemArmor)getRegisteredItem("leather_leggings");
|
| 263 | leather_boots = (ItemArmor)getRegisteredItem("leather_boots");
|
| 264 | chainmail_helmet = (ItemArmor)getRegisteredItem("chainmail_helmet");
|
| 265 | chainmail_chestplate = (ItemArmor)getRegisteredItem("chainmail_chestplate");
|
| 266 | chainmail_leggings = (ItemArmor)getRegisteredItem("chainmail_leggings");
|
| 267 | chainmail_boots = (ItemArmor)getRegisteredItem("chainmail_boots");
|
| 268 | iron_helmet = (ItemArmor)getRegisteredItem("iron_helmet");
|
| 269 | iron_chestplate = (ItemArmor)getRegisteredItem("iron_chestplate");
|
| 270 | iron_leggings = (ItemArmor)getRegisteredItem("iron_leggings");
|
| 271 | iron_boots = (ItemArmor)getRegisteredItem("iron_boots");
|
| 272 | diamond_helmet = (ItemArmor)getRegisteredItem("diamond_helmet");
|
| 273 | diamond_chestplate = (ItemArmor)getRegisteredItem("diamond_chestplate");
|
| 274 | diamond_leggings = (ItemArmor)getRegisteredItem("diamond_leggings");
|
| 275 | diamond_boots = (ItemArmor)getRegisteredItem("diamond_boots");
|
| 276 | golden_helmet = (ItemArmor)getRegisteredItem("golden_helmet");
|
| 277 | golden_chestplate = (ItemArmor)getRegisteredItem("golden_chestplate");
|
| 278 | golden_leggings = (ItemArmor)getRegisteredItem("golden_leggings");
|
| 279 | golden_boots = (ItemArmor)getRegisteredItem("golden_boots");
|
| 280 | flint = getRegisteredItem("flint");
|
| 281 | porkchop = getRegisteredItem("porkchop");
|
| 282 | cooked_porkchop = getRegisteredItem("cooked_porkchop");
|
| 283 | painting = getRegisteredItem("painting");
|
| 284 | golden_apple = getRegisteredItem("golden_apple");
|
| 285 | sign = getRegisteredItem("sign");
|
| 286 | oak_door = getRegisteredItem("wooden_door");
|
| 287 | spruce_door = getRegisteredItem("spruce_door");
|
| 288 | birch_door = getRegisteredItem("birch_door");
|
| 289 | jungle_door = getRegisteredItem("jungle_door");
|
| 290 | acacia_door = getRegisteredItem("acacia_door");
|
| 291 | dark_oak_door = getRegisteredItem("dark_oak_door");
|
| 292 | bucket = getRegisteredItem("bucket");
|
| 293 | water_bucket = getRegisteredItem("water_bucket");
|
| 294 | lava_bucket = getRegisteredItem("lava_bucket");
|
| 295 | minecart = getRegisteredItem("minecart");
|
| 296 | saddle = getRegisteredItem("saddle");
|
| 297 | iron_door = getRegisteredItem("iron_door");
|
| 298 | redstone = getRegisteredItem("redstone");
|
| 299 | snowball = getRegisteredItem("snowball");
|
| 300 | boat = getRegisteredItem("boat");
|
| 301 | leather = getRegisteredItem("leather");
|
| 302 | milk_bucket = getRegisteredItem("milk_bucket");
|
| 303 | brick = getRegisteredItem("brick");
|
| 304 | clay_ball = getRegisteredItem("clay_ball");
|
| 305 | reeds = getRegisteredItem("reeds");
|
| 306 | paper = getRegisteredItem("paper");
|
| 307 | book = getRegisteredItem("book");
|
| 308 | slime_ball = getRegisteredItem("slime_ball");
|
| 309 | chest_minecart = getRegisteredItem("chest_minecart");
|
| 310 | furnace_minecart = getRegisteredItem("furnace_minecart");
|
| 311 | egg = getRegisteredItem("egg");
|
| 312 | compass = getRegisteredItem("compass");
|
| 313 | fishing_rod = (ItemFishingRod)getRegisteredItem("fishing_rod");
|
| 314 | clock = getRegisteredItem("clock");
|
| 315 | glowstone_dust = getRegisteredItem("glowstone_dust");
|
| 316 | fish = getRegisteredItem("fish");
|
| 317 | cooked_fish = getRegisteredItem("cooked_fish");
|
| 318 | dye = getRegisteredItem("dye");
|
| 319 | bone = getRegisteredItem("bone");
|
| 320 | sugar = getRegisteredItem("sugar");
|
| 321 | cake = getRegisteredItem("cake");
|
| 322 | bed = getRegisteredItem("bed");
|
| 323 | repeater = getRegisteredItem("repeater");
|
| 324 | cookie = getRegisteredItem("cookie");
|
| 325 | filled_map = (ItemMap)getRegisteredItem("filled_map");
|
| 326 | shears = (ItemShears)getRegisteredItem("shears");
|
| 327 | melon = getRegisteredItem("melon");
|
| 328 | pumpkin_seeds = getRegisteredItem("pumpkin_seeds");
|
| 329 | melon_seeds = getRegisteredItem("melon_seeds");
|
| 330 | beef = getRegisteredItem("beef");
|
| 331 | cooked_beef = getRegisteredItem("cooked_beef");
|
| 332 | chicken = getRegisteredItem("chicken");
|
| 333 | cooked_chicken = getRegisteredItem("cooked_chicken");
|
| 334 | mutton = getRegisteredItem("mutton");
|
| 335 | cooked_mutton = getRegisteredItem("cooked_mutton");
|
| 336 | rabbit = getRegisteredItem("rabbit");
|
| 337 | cooked_rabbit = getRegisteredItem("cooked_rabbit");
|
| 338 | rabbit_stew = getRegisteredItem("rabbit_stew");
|
| 339 | rabbit_foot = getRegisteredItem("rabbit_foot");
|
| 340 | rabbit_hide = getRegisteredItem("rabbit_hide");
|
| 341 | rotten_flesh = getRegisteredItem("rotten_flesh");
|
| 342 | ender_pearl = getRegisteredItem("ender_pearl");
|
| 343 | blaze_rod = getRegisteredItem("blaze_rod");
|
| 344 | ghast_tear = getRegisteredItem("ghast_tear");
|
| 345 | gold_nugget = getRegisteredItem("gold_nugget");
|
| 346 | nether_wart = getRegisteredItem("nether_wart");
|
| 347 | potionitem = (ItemPotion)getRegisteredItem("potion");
|
| 348 | glass_bottle = getRegisteredItem("glass_bottle");
|
| 349 | spider_eye = getRegisteredItem("spider_eye");
|
| 350 | fermented_spider_eye = getRegisteredItem("fermented_spider_eye");
|
| 351 | blaze_powder = getRegisteredItem("blaze_powder");
|
| 352 | magma_cream = getRegisteredItem("magma_cream");
|
| 353 | brewing_stand = getRegisteredItem("brewing_stand");
|
| 354 | cauldron = getRegisteredItem("cauldron");
|
| 355 | ender_eye = getRegisteredItem("ender_eye");
|
| 356 | speckled_melon = getRegisteredItem("speckled_melon");
|
| 357 | spawn_egg = getRegisteredItem("spawn_egg");
|
| 358 | experience_bottle = getRegisteredItem("experience_bottle");
|
| 359 | fire_charge = getRegisteredItem("fire_charge");
|
| 360 | writable_book = getRegisteredItem("writable_book");
|
| 361 | written_book = getRegisteredItem("written_book");
|
| 362 | emerald = getRegisteredItem("emerald");
|
| 363 | item_frame = getRegisteredItem("item_frame");
|
| 364 | flower_pot = getRegisteredItem("flower_pot");
|
| 365 | carrot = getRegisteredItem("carrot");
|
| 366 | potato = getRegisteredItem("potato");
|
| 367 | baked_potato = getRegisteredItem("baked_potato");
|
| 368 | poisonous_potato = getRegisteredItem("poisonous_potato");
|
| 369 | map = (ItemEmptyMap)getRegisteredItem("map");
|
| 370 | golden_carrot = getRegisteredItem("golden_carrot");
|
| 371 | skull = getRegisteredItem("skull");
|
| 372 | carrot_on_a_stick = getRegisteredItem("carrot_on_a_stick");
|
| 373 | nether_star = getRegisteredItem("nether_star");
|
| 374 | pumpkin_pie = getRegisteredItem("pumpkin_pie");
|
| 375 | fireworks = getRegisteredItem("fireworks");
|
| 376 | firework_charge = getRegisteredItem("firework_charge");
|
| 377 | enchanted_book = (ItemEnchantedBook)getRegisteredItem("enchanted_book");
|
| 378 | comparator = getRegisteredItem("comparator");
|
| 379 | netherbrick = getRegisteredItem("netherbrick");
|
| 380 | quartz = getRegisteredItem("quartz");
|
| 381 | tnt_minecart = getRegisteredItem("tnt_minecart");
|
| 382 | hopper_minecart = getRegisteredItem("hopper_minecart");
|
| 383 | armor_stand = (ItemArmorStand)getRegisteredItem("armor_stand");
|
| 384 | iron_horse_armor = getRegisteredItem("iron_horse_armor");
|
| 385 | golden_horse_armor = getRegisteredItem("golden_horse_armor");
|
| 386 | diamond_horse_armor = getRegisteredItem("diamond_horse_armor");
|
| 387 | lead = getRegisteredItem("lead");
|
| 388 | name_tag = getRegisteredItem("name_tag");
|
| 389 | command_block_minecart = getRegisteredItem("command_block_minecart");
|
| 390 | record_13 = getRegisteredItem("record_13");
|
| 391 | record_cat = getRegisteredItem("record_cat");
|
| 392 | record_blocks = getRegisteredItem("record_blocks");
|
| 393 | record_chirp = getRegisteredItem("record_chirp");
|
| 394 | record_far = getRegisteredItem("record_far");
|
| 395 | record_mall = getRegisteredItem("record_mall");
|
| 396 | record_mellohi = getRegisteredItem("record_mellohi");
|
| 397 | record_stal = getRegisteredItem("record_stal");
|
| 398 | record_strad = getRegisteredItem("record_strad");
|
| 399 | record_ward = getRegisteredItem("record_ward");
|
| 400 | record_11 = getRegisteredItem("record_11");
|
| 401 | record_wait = getRegisteredItem("record_wait");
|
| 402 | prismarine_shard = getRegisteredItem("prismarine_shard");
|
| 403 | prismarine_crystals = getRegisteredItem("prismarine_crystals");
|
| 404 | banner = getRegisteredItem("banner");
|
| 405 | }
|
| 406 | }
|
| 407 | }
|
| 408 |
|