|
|
|
@@ -1,790 +0,0 @@
|
|
|
|
|
/*
|
|
|
|
|
* WorldEdit, a Minecraft world manipulation toolkit
|
|
|
|
|
* Copyright (C) sk89q <http://www.sk89q.com>
|
|
|
|
|
* Copyright (C) WorldEdit team and contributors
|
|
|
|
|
*
|
|
|
|
|
* This program is free software: you can redistribute it and/or modify it
|
|
|
|
|
* under the terms of the GNU Lesser General Public License as published by the
|
|
|
|
|
* Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
|
|
|
|
* for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
package com.sk89q.worldedit.blocks;
|
|
|
|
|
|
|
|
|
|
import com.sk89q.util.StringUtil;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Nullable;
|
|
|
|
|
import java.util.EnumSet;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.HashSet;
|
|
|
|
|
import java.util.LinkedHashMap;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.Set;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* An enum of types of items.
|
|
|
|
|
*
|
|
|
|
|
* {@Deprecated Please use {@link com.sk89q.worldedit.blocks.type.ItemType}}
|
|
|
|
|
*/
|
|
|
|
|
@Deprecated
|
|
|
|
|
public enum ItemType {
|
|
|
|
|
|
|
|
|
|
// Blocks
|
|
|
|
|
AIR(BlockID.AIR, "Air", "air"),
|
|
|
|
|
STONE(BlockID.STONE, "Stone", "stone", "rock"),
|
|
|
|
|
GRASS(BlockID.GRASS, "Grass", "grass"),
|
|
|
|
|
DIRT(BlockID.DIRT, "Dirt", "dirt"),
|
|
|
|
|
COBBLESTONE(BlockID.COBBLESTONE, "Cobblestone", "cobblestone", "cobble"),
|
|
|
|
|
WOOD(BlockID.WOOD, "Wood", "wood", "woodplank", "plank", "woodplanks", "planks"),
|
|
|
|
|
SAPLING(BlockID.SAPLING, "Sapling", "sapling", "seedling"),
|
|
|
|
|
BEDROCK(BlockID.BEDROCK, "Bedrock", "adminium", "bedrock"),
|
|
|
|
|
WATER(BlockID.WATER, "Water", "watermoving", "movingwater", "flowingwater", "waterflowing"),
|
|
|
|
|
STATIONARY_WATER(BlockID.STATIONARY_WATER, "Water (stationary)", "water", "waterstationary", "stationarywater", "stillwater"),
|
|
|
|
|
LAVA(BlockID.LAVA, "Lava", "lavamoving", "movinglava", "flowinglava", "lavaflowing"),
|
|
|
|
|
STATIONARY_LAVA(BlockID.STATIONARY_LAVA, "Lava (stationary)", "lava", "lavastationary", "stationarylava", "stilllava"),
|
|
|
|
|
SAND(BlockID.SAND, "Sand", "sand"),
|
|
|
|
|
GRAVEL(BlockID.GRAVEL, "Gravel", "gravel"),
|
|
|
|
|
GOLD_ORE(BlockID.GOLD_ORE, "Gold ore", "goldore"),
|
|
|
|
|
IRON_ORE(BlockID.IRON_ORE, "Iron ore", "ironore"),
|
|
|
|
|
COAL_ORE(BlockID.COAL_ORE, "Coal ore", "coalore"),
|
|
|
|
|
LOG(BlockID.LOG, "Log", "log", "tree", "pine", "oak", "birch", "redwood"),
|
|
|
|
|
LEAVES(BlockID.LEAVES, "Leaves", "leaves", "leaf"),
|
|
|
|
|
SPONGE(BlockID.SPONGE, "Sponge", "sponge"),
|
|
|
|
|
GLASS(BlockID.GLASS, "Glass", "glass"),
|
|
|
|
|
LAPIS_LAZULI_ORE(BlockID.LAPIS_LAZULI_ORE, "Lapis lazuli ore", "lapislazuliore", "blueore", "lapisore"),
|
|
|
|
|
LAPIS_LAZULI(BlockID.LAPIS_LAZULI_BLOCK, "Lapis lazuli", "lapislazuli", "lapislazuliblock", "bluerock"),
|
|
|
|
|
DISPENSER(BlockID.DISPENSER, "Dispenser", "dispenser"),
|
|
|
|
|
SANDSTONE(BlockID.SANDSTONE, "Sandstone", "sandstone"),
|
|
|
|
|
NOTE_BLOCK(BlockID.NOTE_BLOCK, "Note block", "musicblock", "noteblock", "note", "music", "instrument"),
|
|
|
|
|
BED(BlockID.BED, "Bed", "bed"),
|
|
|
|
|
POWERED_RAIL(BlockID.POWERED_RAIL, "Powered Rail", "poweredrail", "boosterrail", "poweredtrack", "boostertrack", "booster"),
|
|
|
|
|
DETECTOR_RAIL(BlockID.DETECTOR_RAIL, "Detector Rail", "detectorrail", "detector"),
|
|
|
|
|
PISTON_STICKY_BASE(BlockID.PISTON_STICKY_BASE, "Sticky Piston", "stickypiston"),
|
|
|
|
|
WEB(BlockID.WEB, "Web", "web", "spiderweb"),
|
|
|
|
|
LONG_GRASS(BlockID.LONG_GRASS, "Long grass", "longgrass", "tallgrass"),
|
|
|
|
|
DEAD_BUSH(BlockID.DEAD_BUSH, "Shrub", "deadbush", "shrub", "deadshrub", "tumbleweed"),
|
|
|
|
|
PISTON_BASE(BlockID.PISTON_BASE, "Piston", "piston"),
|
|
|
|
|
PISTON_EXTENSION(BlockID.PISTON_EXTENSION, "Piston extension", "pistonextendsion", "pistonhead"),
|
|
|
|
|
CLOTH(BlockID.CLOTH, "Wool", "cloth", "wool"),
|
|
|
|
|
PISTON_MOVING_PIECE(BlockID.PISTON_MOVING_PIECE, "Piston moving piece", "movingpiston"),
|
|
|
|
|
YELLOW_FLOWER(BlockID.YELLOW_FLOWER, "Yellow flower", "yellowflower", "flower"),
|
|
|
|
|
RED_FLOWER(BlockID.RED_FLOWER, "Red rose", "redflower", "redrose", "rose"),
|
|
|
|
|
BROWN_MUSHROOM(BlockID.BROWN_MUSHROOM, "Brown mushroom", "brownmushroom", "mushroom"),
|
|
|
|
|
RED_MUSHROOM(BlockID.RED_MUSHROOM, "Red mushroom", "redmushroom"),
|
|
|
|
|
GOLD_BLOCK(BlockID.GOLD_BLOCK, "Gold block", "gold", "goldblock"),
|
|
|
|
|
IRON_BLOCK(BlockID.IRON_BLOCK, "Iron block", "iron", "ironblock"),
|
|
|
|
|
DOUBLE_STEP(BlockID.DOUBLE_STEP, "Double step", "doubleslab", "doublestoneslab", "doublestep"),
|
|
|
|
|
STEP(BlockID.STEP, "Step", "slab", "stoneslab", "step", "halfstep"),
|
|
|
|
|
BRICK(BlockID.BRICK, "Brick", "brick", "brickblock"),
|
|
|
|
|
TNT(BlockID.TNT, "TNT", "tnt", "c4", "explosive"),
|
|
|
|
|
BOOKCASE(BlockID.BOOKCASE, "Bookcase", "bookshelf", "bookshelves", "bookcase", "bookcases"),
|
|
|
|
|
MOSSY_COBBLESTONE(BlockID.MOSSY_COBBLESTONE, "Cobblestone (mossy)", "mossycobblestone", "mossstone", "mossystone", "mosscobble", "mossycobble", "moss", "mossy", "sossymobblecone"),
|
|
|
|
|
OBSIDIAN(BlockID.OBSIDIAN, "Obsidian", "obsidian"),
|
|
|
|
|
TORCH(BlockID.TORCH, "Torch", "torch", "light", "candle"),
|
|
|
|
|
FIRE(BlockID.FIRE, "Fire", "fire", "flame", "flames"),
|
|
|
|
|
MOB_SPAWNER(BlockID.MOB_SPAWNER, "Mob spawner", "mobspawner", "spawner"),
|
|
|
|
|
WOODEN_STAIRS(BlockID.OAK_WOOD_STAIRS, "Wooden stairs", "woodstair", "woodstairs", "woodenstair", "woodenstairs"),
|
|
|
|
|
CHEST(BlockID.CHEST, "Chest", "chest", "storage", "storagechest"),
|
|
|
|
|
REDSTONE_WIRE(BlockID.REDSTONE_WIRE, "Redstone wire", "redstone", "redstoneblock"),
|
|
|
|
|
DIAMOND_ORE(BlockID.DIAMOND_ORE, "Diamond ore", "diamondore"),
|
|
|
|
|
DIAMOND_BLOCK(BlockID.DIAMOND_BLOCK, "Diamond block", "diamond", "diamondblock"),
|
|
|
|
|
WORKBENCH(BlockID.WORKBENCH, "Workbench", "workbench", "table", "craftingtable", "crafting"),
|
|
|
|
|
CROPS(BlockID.CROPS, "Crops", "crops", "crop", "plant", "plants"),
|
|
|
|
|
SOIL(BlockID.SOIL, "Soil", "soil", "farmland"),
|
|
|
|
|
FURNACE(BlockID.FURNACE, "Furnace", "furnace"),
|
|
|
|
|
BURNING_FURNACE(BlockID.BURNING_FURNACE, "Furnace (burning)", "burningfurnace", "litfurnace"),
|
|
|
|
|
SIGN_POST(BlockID.SIGN_POST, "Sign post", "sign", "signpost"),
|
|
|
|
|
WOODEN_DOOR(BlockID.WOODEN_DOOR, "Wooden door", "wooddoor", "woodendoor", "door"),
|
|
|
|
|
LADDER(BlockID.LADDER, "Ladder", "ladder"),
|
|
|
|
|
MINECART_TRACKS(BlockID.MINECART_TRACKS, "Minecart tracks", "track", "tracks", "minecrattrack", "minecarttracks", "rails", "rail"),
|
|
|
|
|
COBBLESTONE_STAIRS(BlockID.COBBLESTONE_STAIRS, "Cobblestone stairs", "cobblestonestair", "cobblestonestairs", "cobblestair", "cobblestairs"),
|
|
|
|
|
WALL_SIGN(BlockID.WALL_SIGN, "Wall sign", "wallsign"),
|
|
|
|
|
LEVER(BlockID.LEVER, "Lever", "lever", "switch", "stonelever", "stoneswitch"),
|
|
|
|
|
STONE_PRESSURE_PLATE(BlockID.STONE_PRESSURE_PLATE, "Stone pressure plate", "stonepressureplate", "stoneplate"),
|
|
|
|
|
IRON_DOOR(BlockID.IRON_DOOR, "Iron Door", "irondoor"),
|
|
|
|
|
WOODEN_PRESSURE_PLATE(BlockID.WOODEN_PRESSURE_PLATE, "Wooden pressure plate", "woodpressureplate", "woodplate", "woodenpressureplate", "woodenplate", "plate", "pressureplate"),
|
|
|
|
|
REDSTONE_ORE(BlockID.REDSTONE_ORE, "Redstone ore", "redstoneore"),
|
|
|
|
|
GLOWING_REDSTONE_ORE(BlockID.GLOWING_REDSTONE_ORE, "Glowing redstone ore", "glowingredstoneore"),
|
|
|
|
|
REDSTONE_TORCH_OFF(BlockID.REDSTONE_TORCH_OFF, "Redstone torch (off)", "redstonetorchoff", "rstorchoff"),
|
|
|
|
|
REDSTONE_TORCH_ON(BlockID.REDSTONE_TORCH_ON, "Redstone torch (on)", "redstonetorch", "redstonetorchon", "rstorchon", "redtorch"),
|
|
|
|
|
STONE_BUTTON(BlockID.STONE_BUTTON, "Stone Button", "stonebutton", "button"),
|
|
|
|
|
SNOW(BlockID.SNOW, "Snow", "snow"),
|
|
|
|
|
ICE(BlockID.ICE, "Ice", "ice"),
|
|
|
|
|
SNOW_BLOCK(BlockID.SNOW_BLOCK, "Snow block", "snowblock"),
|
|
|
|
|
CACTUS(BlockID.CACTUS, "Cactus", "cactus", "cacti"),
|
|
|
|
|
CLAY(BlockID.CLAY, "Clay", "clay"),
|
|
|
|
|
SUGAR_CANE(BlockID.REED, "Reed", "reed", "cane", "sugarcane", "sugarcanes", "vine", "vines"),
|
|
|
|
|
JUKEBOX(BlockID.JUKEBOX, "Jukebox", "jukebox", "stereo", "recordplayer"),
|
|
|
|
|
FENCE(BlockID.FENCE, "Fence", "fence"),
|
|
|
|
|
PUMPKIN(BlockID.PUMPKIN, "Pumpkin", "pumpkin"),
|
|
|
|
|
NETHERRACK(BlockID.NETHERRACK, "Netherrack", "redmossycobblestone", "redcobblestone", "redmosstone", "redcobble", "netherstone", "netherrack", "nether", "hellstone"),
|
|
|
|
|
SOUL_SAND(BlockID.SLOW_SAND, "Soul sand", "slowmud", "mud", "soulsand", "hellmud"),
|
|
|
|
|
GLOWSTONE(BlockID.LIGHTSTONE, "Glowstone", "brittlegold", "glowstone", "lightstone", "brimstone", "australium"),
|
|
|
|
|
PORTAL(BlockID.PORTAL, "Portal", "portal"),
|
|
|
|
|
JACK_O_LANTERN(BlockID.JACKOLANTERN, "Pumpkin (on)", "pumpkinlighted", "pumpkinon", "litpumpkin", "jackolantern"),
|
|
|
|
|
CAKE(BlockID.CAKE_BLOCK, "Cake", "cake", "cakeblock"),
|
|
|
|
|
REDSTONE_REPEATER_OFF(BlockID.REDSTONE_REPEATER_OFF, "Redstone repeater (off)", "diodeoff", "redstonerepeater", "repeateroff", "delayeroff"),
|
|
|
|
|
REDSTONE_REPEATER_ON(BlockID.REDSTONE_REPEATER_ON, "Redstone repeater (on)", "diodeon", "redstonerepeateron", "repeateron", "delayeron"),
|
|
|
|
|
@Deprecated LOCKED_CHEST(BlockID.LOCKED_CHEST, "thisblockisinvalidusedstainedglassinstead"),
|
|
|
|
|
STAINED_GLASS(BlockID.STAINED_GLASS, "Stained Glass", "stainedglass"),
|
|
|
|
|
TRAP_DOOR(BlockID.TRAP_DOOR, "Trap door", "trapdoor", "hatch", "floordoor"),
|
|
|
|
|
SILVERFISH_BLOCK(BlockID.SILVERFISH_BLOCK, "Silverfish block", "silverfish", "silver"),
|
|
|
|
|
STONE_BRICK(BlockID.STONE_BRICK, "Stone brick", "stonebrick", "sbrick", "smoothstonebrick"),
|
|
|
|
|
RED_MUSHROOM_CAP(BlockID.RED_MUSHROOM_CAP, "Red mushroom cap", "giantmushroomred", "redgiantmushroom", "redmushroomcap"),
|
|
|
|
|
BROWN_MUSHROOM_CAP(BlockID.BROWN_MUSHROOM_CAP, "Brown mushroom cap", "giantmushroombrown", "browngiantmushoom", "brownmushroomcap"),
|
|
|
|
|
IRON_BARS(BlockID.IRON_BARS, "Iron bars", "ironbars", "ironfence"),
|
|
|
|
|
GLASS_PANE(BlockID.GLASS_PANE, "Glass pane", "window", "glasspane", "glasswindow"),
|
|
|
|
|
MELON_BLOCK(BlockID.MELON_BLOCK, "Melon (block)", "melonblock"),
|
|
|
|
|
PUMPKIN_STEM(BlockID.PUMPKIN_STEM, "Pumpkin stem", "pumpkinstem"),
|
|
|
|
|
MELON_STEM(BlockID.MELON_STEM, "Melon stem", "melonstem"),
|
|
|
|
|
VINE(BlockID.VINE, "Vine", "vine", "vines", "creepers"),
|
|
|
|
|
FENCE_GATE(BlockID.FENCE_GATE, "Fence gate", "fencegate", "gate"),
|
|
|
|
|
BRICK_STAIRS(BlockID.BRICK_STAIRS, "Brick stairs", "brickstairs", "bricksteps"),
|
|
|
|
|
STONE_BRICK_STAIRS(BlockID.STONE_BRICK_STAIRS, "Stone brick stairs", "stonebrickstairs", "smoothstonebrickstairs"),
|
|
|
|
|
MYCELIUM(BlockID.MYCELIUM, "Mycelium", "mycelium", "fungus", "mycel"),
|
|
|
|
|
LILY_PAD(BlockID.LILY_PAD, "Lily pad", "lilypad", "waterlily"),
|
|
|
|
|
NETHER_BRICK(BlockID.NETHER_BRICK, "Nether brick", "netherbrick"),
|
|
|
|
|
NETHER_BRICK_FENCE(BlockID.NETHER_BRICK_FENCE, "Nether brick fence", "netherbrickfence", "netherfence"),
|
|
|
|
|
NETHER_BRICK_STAIRS(BlockID.NETHER_BRICK_STAIRS, "Nether brick stairs", "netherbrickstairs", "netherbricksteps", "netherstairs", "nethersteps"),
|
|
|
|
|
NETHER_WART(BlockID.NETHER_WART, "Nether wart", "netherwart", "netherstalk"),
|
|
|
|
|
ENCHANTMENT_TABLE(BlockID.ENCHANTMENT_TABLE, "Enchantment table", "enchantmenttable", "enchanttable"),
|
|
|
|
|
BREWING_STAND(BlockID.BREWING_STAND, "Brewing Stand", "brewingstand"),
|
|
|
|
|
CAULDRON(BlockID.CAULDRON, "Cauldron"),
|
|
|
|
|
END_PORTAL(BlockID.END_PORTAL, "End Portal", "endportal", "blackstuff", "airportal", "weirdblackstuff"),
|
|
|
|
|
END_PORTAL_FRAME(BlockID.END_PORTAL_FRAME, "End Portal Frame", "endportalframe", "airportalframe", "crystalblock"),
|
|
|
|
|
END_STONE(BlockID.END_STONE, "End Stone", "endstone", "enderstone", "endersand"),
|
|
|
|
|
DRAGON_EGG(BlockID.DRAGON_EGG, "Dragon Egg", "dragonegg", "dragons"),
|
|
|
|
|
REDSTONE_LAMP_OFF(BlockID.REDSTONE_LAMP_OFF, "Redstone lamp (off)", "redstonelamp", "redstonelampoff", "rslamp", "rslampoff", "rsglow", "rsglowoff"),
|
|
|
|
|
REDSTONE_LAMP_ON(BlockID.REDSTONE_LAMP_ON, "Redstone lamp (on)", "redstonelampon", "rslampon", "rsglowon"),
|
|
|
|
|
DOUBLE_WOODEN_STEP(BlockID.DOUBLE_WOODEN_STEP, "Double wood step", "doublewoodslab", "doublewoodstep"),
|
|
|
|
|
WOODEN_STEP(BlockID.WOODEN_STEP, "Wood step", "woodenslab", "woodslab", "woodstep", "woodhalfstep"),
|
|
|
|
|
COCOA_PLANT(BlockID.COCOA_PLANT, "Cocoa plant", "cocoplant", "cocoaplant"),
|
|
|
|
|
SANDSTONE_STAIRS(BlockID.SANDSTONE_STAIRS, "Sandstone stairs", "sandstairs", "sandstonestairs"),
|
|
|
|
|
EMERALD_ORE(BlockID.EMERALD_ORE, "Emerald ore", "emeraldore"),
|
|
|
|
|
ENDER_CHEST(BlockID.ENDER_CHEST, "Ender chest", "enderchest"),
|
|
|
|
|
TRIPWIRE_HOOK(BlockID.TRIPWIRE_HOOK, "Tripwire hook", "tripwirehook"),
|
|
|
|
|
TRIPWIRE(BlockID.TRIPWIRE, "Tripwire", "tripwire", "string"),
|
|
|
|
|
EMERALD_BLOCK(BlockID.EMERALD_BLOCK, "Emerald block", "emeraldblock", "emerald"),
|
|
|
|
|
SPRUCE_WOOD_STAIRS(BlockID.SPRUCE_WOOD_STAIRS, "Spruce wood stairs", "sprucestairs", "sprucewoodstairs"),
|
|
|
|
|
BIRCH_WOOD_STAIRS(BlockID.BIRCH_WOOD_STAIRS, "Birch wood stairs", "birchstairs", "birchwoodstairs"),
|
|
|
|
|
JUNGLE_WOOD_STAIRS(BlockID.JUNGLE_WOOD_STAIRS, "Jungle wood stairs", "junglestairs", "junglewoodstairs"),
|
|
|
|
|
COMMAND_BLOCK(BlockID.COMMAND_BLOCK, "Command block", "commandblock", "cmdblock", "command", "cmd"),
|
|
|
|
|
BEACON(BlockID.BEACON, "Beacon", "beacon", "beaconblock"),
|
|
|
|
|
COBBLESTONE_WALL(BlockID.COBBLESTONE_WALL, "Cobblestone wall", "cobblestonewall", "cobblewall"),
|
|
|
|
|
FLOWER_POT_BLOCK(BlockID.FLOWER_POT, "Flower pot", "flowerpot", "plantpot", "pot"),
|
|
|
|
|
CARROTS(BlockID.CARROTS, "Carrots", "carrots", "carrotsplant", "carrotsblock"),
|
|
|
|
|
POTATOES(BlockID.POTATOES, "Potatoes", "potatoes", "potatoesblock"),
|
|
|
|
|
WOODEN_BUTTON(BlockID.WOODEN_BUTTON, "Wooden button", "woodbutton", "woodenbutton"),
|
|
|
|
|
HEAD_BLOCK(BlockID.HEAD, "Head", "head", "skull"),
|
|
|
|
|
ANVIL(BlockID.ANVIL, "Anvil", "anvil", "blacksmith"),
|
|
|
|
|
TRAPPED_CHEST(BlockID.TRAPPED_CHEST, "Trapped Chest", "trappedchest", "redstonechest"),
|
|
|
|
|
PRESSURE_PLATE_LIGHT(BlockID.PRESSURE_PLATE_LIGHT, "Weighted Pressure Plate (Light)", "lightpressureplate"),
|
|
|
|
|
PRESSURE_PLATE_HEAVY(BlockID.PRESSURE_PLATE_HEAVY, "Weighted Pressure Plate (Heavy)", "heavypressureplate"),
|
|
|
|
|
COMPARATOR_OFF(BlockID.COMPARATOR_OFF, "Redstone Comparator (inactive)", "redstonecomparator", "comparator"),
|
|
|
|
|
COMPARATOR_ON(BlockID.COMPARATOR_ON, "Redstone Comparator (active)", "redstonecomparatoron", "comparatoron"),
|
|
|
|
|
DAYLIGHT_SENSOR(BlockID.DAYLIGHT_SENSOR, "Daylight Sensor", "daylightsensor", "lightsensor", "daylightdetector"),
|
|
|
|
|
REDSTONE_BLOCK(BlockID.REDSTONE_BLOCK, "Block of Redstone", "redstoneblock", "blockofredstone"),
|
|
|
|
|
QUARTZ_ORE(BlockID.QUARTZ_ORE, "Nether Quartz Ore", "quartzore", "netherquartzore"),
|
|
|
|
|
HOPPER(BlockID.HOPPER, "Hopper", "hopper"),
|
|
|
|
|
QUARTZ_BLOCK(BlockID.QUARTZ_BLOCK, "Block of Quartz", "quartzblock", "quartz"),
|
|
|
|
|
QUARTZ_STAIRS(BlockID.QUARTZ_STAIRS, "Quartz Stairs", "quartzstairs"),
|
|
|
|
|
ACTIVATOR_RAIL(BlockID.ACTIVATOR_RAIL, "Activator Rail", "activatorrail", "tntrail", "activatortrack"),
|
|
|
|
|
DROPPER(BlockID.DROPPER, "Dropper", "dropper"),
|
|
|
|
|
STAINED_CLAY(BlockID.STAINED_CLAY, "Stained Clay", "stainedclay", "stainedhardenedclay"),
|
|
|
|
|
STAINED_GLASS_PANE(BlockID.STAINED_GLASS_PANE, "Stained Glass Pane", "stainedglasspane"),
|
|
|
|
|
LEAVES2(BlockID.LEAVES2, "Leaves", "leaves2", "acacialeaves", "darkoakleaves"),
|
|
|
|
|
LOG2(BlockID.LOG2, "Log", "log2", "acacia", "darkoak"),
|
|
|
|
|
ACACIA_STAIRS(BlockID.ACACIA_STAIRS, "Acacia Wood Stairs", "acaciawoodstairs", "acaciastairs"),
|
|
|
|
|
DARK_OAK_STAIRS(BlockID.DARK_OAK_STAIRS, "Dark Oak Wood Stairs", "darkoakwoodstairs", "darkoakstairs"),
|
|
|
|
|
HAY_BLOCK(BlockID.HAY_BLOCK, "Hay Block", "hayblock", "haybale", "wheatbale"),
|
|
|
|
|
CARPET(BlockID.CARPET, "Carpet", "carpet"),
|
|
|
|
|
HARDENED_CLAY(BlockID.HARDENED_CLAY, "Hardened Clay", "hardenedclay", "hardclay"),
|
|
|
|
|
COAL_BLOCK(BlockID.COAL_BLOCK, "Block of Coal", "coalblock", "blockofcoal"),
|
|
|
|
|
PACKED_ICE(BlockID.PACKED_ICE, "Packed Ice", "packedice", "hardice"),
|
|
|
|
|
DOUBLE_PLANT(BlockID.DOUBLE_PLANT, "Large Flowers", "largeflowers", "doubleflowers"),
|
|
|
|
|
|
|
|
|
|
DARK_OAK_DOOR(BlockID.DARK_OAK_DOOR, "Dark Oak Door", "darkoakdoor"),
|
|
|
|
|
END_ROD(BlockID.END_ROD, "End Rod", "endrod", "endtorch"),
|
|
|
|
|
CHORUS_PLANT(BlockID.CHORUS_PLANT, "Chorus Plant", "chorusplant", "chorusstem"),
|
|
|
|
|
CHORUS_FLOWER(BlockID.CHORUS_FLOWER, "Chorus Flower", "chorusflower"),
|
|
|
|
|
PURPUR_BLOCK(BlockID.PURPUR_BLOCK, "Purpur Block", "purpurblock", "blockpurpur"),
|
|
|
|
|
PURPUR_PILLAR(BlockID.PURPUR_PILLAR, "Purpur Pillar", "purpurpillar"),
|
|
|
|
|
PURPUR_STAIRS(BlockID.PURPUR_STAIRS, "Purpur Stairs", "purpurstairs"),
|
|
|
|
|
PURPUR_DOUBLE_SLAB(BlockID.PURPUR_DOUBLE_SLAB, "Purpur Double Slab", "purpurdoubleslab", "doubleslabpurpur", "doublepurpurslab"),
|
|
|
|
|
PURPUR_SLAB(BlockID.PURPUR_SLAB, "Purpur Slab", "purpurslab", "slabpurpur"),
|
|
|
|
|
END_BRICKS(BlockID.END_BRICKS, "End Bricks", "endbricks"),
|
|
|
|
|
BEETROOTS(BlockID.BEETROOTS, "Beetroots", "beetroots", "beetroot_plant"),
|
|
|
|
|
GRASS_PATH(BlockID.GRASS_PATH, "Grass Path", "grasspath", "dirtpath"),
|
|
|
|
|
END_GATEWAY(BlockID.END_GATEWAY, "End Gateway", "endgateway"),
|
|
|
|
|
REPEATING_COMMAND_BLOCK(BlockID.REPEATING_COMMAND_BLOCK, "Repeating Command Block", "repeatingcommandblock", "commandblockrepeating"),
|
|
|
|
|
CHAIN_COMMAND_BLOCK(BlockID.CHAIN_COMMAND_BLOCK, "Chain Command Block", "chaincommandblock", "commandblockchain"),
|
|
|
|
|
FROSTED_ICE(BlockID.FROSTED_ICE, "Frosted Ice", "frostedice", "frostwalkerice"),
|
|
|
|
|
MAGMA_BLOCK(BlockID.MAGMA_BLOCK, "Magma Block", "magmablock", "magma"),
|
|
|
|
|
NETHER_WART_BLOCK(BlockID.NETHER_WART_BLOCK, "Nether Wart Block", "netherwartblock"),
|
|
|
|
|
RED_NETHER_BRICK(BlockID.RED_NETHER_BRICK, "Red Nether Brick", "rednetherbrick", "netherbrickred"),
|
|
|
|
|
BONE_BLOCK(BlockID.BONE_BLOCK, "Bone Block", "boneblock", "blockbone", "fossil", "fossilblock", "blockfossil"),
|
|
|
|
|
STRUCTURE_VOID(BlockID.STRUCTURE_VOID, "Structure Void", "structurevoid", "structureair"),
|
|
|
|
|
OBSERVER(BlockID.OBSERVER, "Observer", "observer", "blockupdatedetector"),
|
|
|
|
|
SHULKER_BOX_WHITE(BlockID.SHULKER_BOX_WHITE, "White Shulker Box", "shulkerboxwhite"),
|
|
|
|
|
SHULKER_BOX_ORANGE(BlockID.SHULKER_BOX_ORANGE, "Orange Shulker Box", "shulkerboxorange"),
|
|
|
|
|
SHULKER_BOX_MAGENTA(BlockID.SHULKER_BOX_MAGENTA, "Magenta Shulker Box", "shulkerboxmagenta"),
|
|
|
|
|
SHULKER_BOX_LIGHT_BLUE(BlockID.SHULKER_BOX_LIGHT_BLUE, "Light Blue Shulker Box", "shulkerboxlightblue"),
|
|
|
|
|
SHULKER_BOX_YELLOW(BlockID.SHULKER_BOX_YELLOW, "Yellow Shulker Box", "shulkerboxyellow"),
|
|
|
|
|
SHULKER_BOX_LIME(BlockID.SHULKER_BOX_LIME, "Lime Shulker Box", "shulkerboxlime"),
|
|
|
|
|
SHULKER_BOX_PINK(BlockID.SHULKER_BOX_PINK, "Pink Shulker Box", "shulkerboxpink"),
|
|
|
|
|
SHULKER_BOX_GRAY(BlockID.SHULKER_BOX_GRAY, "Gray Shulker Box", "shulkerboxgray"),
|
|
|
|
|
SHULKER_BOX_LIGHT_GRAY(BlockID.SHULKER_BOX_LIGHT_GRAY, "Light Gray Shulker Box", "shulkerboxlightgray"),
|
|
|
|
|
SHULKER_BOX_CYAN(BlockID.SHULKER_BOX_CYAN, "Cyan Shulker Box", "shulkerboxcyan"),
|
|
|
|
|
SHULKER_BOX_PURPLE(BlockID.SHULKER_BOX_PURPLE, "Purple Shulker Box", "shulkerboxpurple"),
|
|
|
|
|
SHULKER_BOX_BLUE(BlockID.SHULKER_BOX_BLUE, "Blue Shulker Box", "shulkerboxblue"),
|
|
|
|
|
SHULKER_BOX_BROWN(BlockID.SHULKER_BOX_BROWN, "Brown Shulker Box", "shulkerboxbrown"),
|
|
|
|
|
SHULKER_BOX_GREEN(BlockID.SHULKER_BOX_GREEN, "Green Shulker Box", "shulkerboxgreen"),
|
|
|
|
|
SHULKER_BOX_RED(BlockID.SHULKER_BOX_RED, "Red Shulker Box", "shulkerboxred"),
|
|
|
|
|
SHULKER_BOX_BLACK(BlockID.SHULKER_BOX_BLACK, "Black Shulker Box", "shulkerboxblack"),
|
|
|
|
|
TERRACOTTA_WHITE(BlockID.TERRACOTTA_WHITE, "White Terracotta", "terracottawhite"),
|
|
|
|
|
TERRACOTTA_ORANGE(BlockID.TERRACOTTA_ORANGE, "Orange Terracotta", "terracottaorange"),
|
|
|
|
|
TERRACOTTA_MAGENTA(BlockID.TERRACOTTA_MAGENTA, "Magenta Terracotta", "terracottamagenta"),
|
|
|
|
|
TERRACOTTA_LIGHT_BLUE(BlockID.TERRACOTTA_LIGHT_BLUE, "Light Blue Terracotta", "terracottalightblue"),
|
|
|
|
|
TERRACOTTA_YELLOW(BlockID.TERRACOTTA_YELLOW, "Yellow Terracotta", "terracottayellow"),
|
|
|
|
|
TERRACOTTA_LIME(BlockID.TERRACOTTA_LIME, "Lime Terracotta", "terracottalime"),
|
|
|
|
|
TERRACOTTA_PINK(BlockID.TERRACOTTA_PINK, "Pink Terracotta", "terracottapink"),
|
|
|
|
|
TERRACOTTA_GRAY(BlockID.TERRACOTTA_GRAY, "Gray Terracotta", "terracottagray"),
|
|
|
|
|
TERRACOTTA_LIGHT_GRAY(BlockID.TERRACOTTA_LIGHT_GRAY, "Light Gray Terracotta", "terracottalightgray"),
|
|
|
|
|
TERRACOTTA_CYAN(BlockID.TERRACOTTA_CYAN, "Cyan Terracotta", "terracottacyan"),
|
|
|
|
|
TERRACOTTA_PURPLE(BlockID.TERRACOTTA_PURPLE, "Purple Terracotta", "terracottapurple"),
|
|
|
|
|
TERRACOTTA_BLUE(BlockID.TERRACOTTA_BLUE, "Blue Terracotta", "terracottablue"),
|
|
|
|
|
TERRACOTTA_BROWN(BlockID.TERRACOTTA_BROWN, "Brown Terracotta", "terracottabrown"),
|
|
|
|
|
TERRACOTTA_GREEN(BlockID.TERRACOTTA_GREEN, "Green Terracotta", "terracottagreen"),
|
|
|
|
|
TERRACOTTA_RED(BlockID.TERRACOTTA_RED, "Red Terracotta", "terracottared"),
|
|
|
|
|
TERRACOTTA_BLACK(BlockID.TERRACOTTA_BLACK, "Black Terracotta", "terracottablack"),
|
|
|
|
|
CONCRETE(BlockID.CONCRETE, "Concrete", "concrete"),
|
|
|
|
|
CONCRETE_POWDER(BlockID.CONCRETE_POWDER, "Concrete Powder", "concretepowder"),
|
|
|
|
|
STRUCTURE_BLOCK(BlockID.STRUCTURE_BLOCK, "Structure Block", "structureblock"),
|
|
|
|
|
|
|
|
|
|
// Items
|
|
|
|
|
IRON_SHOVEL(ItemID.IRON_SHOVEL, "Iron shovel", "ironshovel"),
|
|
|
|
|
IRON_PICK(ItemID.IRON_PICK, "Iron pick", "ironpick", "ironpickaxe"),
|
|
|
|
|
IRON_AXE(ItemID.IRON_AXE, "Iron axe", "ironaxe"),
|
|
|
|
|
FLINT_AND_TINDER(ItemID.FLINT_AND_TINDER, "Flint and tinder", "flintandtinder", "lighter", "flintandsteel", "flintsteel", "flintandiron", "flintnsteel", "flintniron", "flintntinder"),
|
|
|
|
|
RED_APPLE(ItemID.RED_APPLE, "Red apple", "redapple", "apple"),
|
|
|
|
|
BOW(ItemID.BOW, "Bow", "bow"),
|
|
|
|
|
ARROW(ItemID.ARROW, "Arrow", "arrow"),
|
|
|
|
|
COAL(ItemID.COAL, "Coal", "coal"),
|
|
|
|
|
DIAMOND(ItemID.DIAMOND, "Diamond", "diamond"),
|
|
|
|
|
IRON_BAR(ItemID.IRON_BAR, "Iron bar", "ironbar", "iron"),
|
|
|
|
|
GOLD_BAR(ItemID.GOLD_BAR, "Gold bar", "goldbar", "gold"),
|
|
|
|
|
IRON_SWORD(ItemID.IRON_SWORD, "Iron sword", "ironsword"),
|
|
|
|
|
WOOD_SWORD(ItemID.WOOD_SWORD, "Wooden sword", "woodsword"),
|
|
|
|
|
WOOD_SHOVEL(ItemID.WOOD_SHOVEL, "Wooden shovel", "woodshovel"),
|
|
|
|
|
WOOD_PICKAXE(ItemID.WOOD_PICKAXE, "Wooden pickaxe", "woodpick", "woodpickaxe"),
|
|
|
|
|
WOOD_AXE(ItemID.WOOD_AXE, "Wooden axe", "woodaxe"),
|
|
|
|
|
STONE_SWORD(ItemID.STONE_SWORD, "Stone sword", "stonesword"),
|
|
|
|
|
STONE_SHOVEL(ItemID.STONE_SHOVEL, "Stone shovel", "stoneshovel"),
|
|
|
|
|
STONE_PICKAXE(ItemID.STONE_PICKAXE, "Stone pickaxe", "stonepick", "stonepickaxe"),
|
|
|
|
|
STONE_AXE(ItemID.STONE_AXE, "Stone pickaxe", "stoneaxe"),
|
|
|
|
|
DIAMOND_SWORD(ItemID.DIAMOND_SWORD, "Diamond sword", "diamondsword"),
|
|
|
|
|
DIAMOND_SHOVEL(ItemID.DIAMOND_SHOVEL, "Diamond shovel", "diamondshovel"),
|
|
|
|
|
DIAMOND_PICKAXE(ItemID.DIAMOND_PICKAXE, "Diamond pickaxe", "diamondpick", "diamondpickaxe"),
|
|
|
|
|
DIAMOND_AXE(ItemID.DIAMOND_AXE, "Diamond axe", "diamondaxe"),
|
|
|
|
|
STICK(ItemID.STICK, "Stick", "stick"),
|
|
|
|
|
BOWL(ItemID.BOWL, "Bowl", "bowl"),
|
|
|
|
|
MUSHROOM_SOUP(ItemID.MUSHROOM_SOUP, "Mushroom soup", "mushroomsoup", "soup", "brbsoup"),
|
|
|
|
|
GOLD_SWORD(ItemID.GOLD_SWORD, "Golden sword", "goldsword"),
|
|
|
|
|
GOLD_SHOVEL(ItemID.GOLD_SHOVEL, "Golden shovel", "goldshovel"),
|
|
|
|
|
GOLD_PICKAXE(ItemID.GOLD_PICKAXE, "Golden pickaxe", "goldpick", "goldpickaxe"),
|
|
|
|
|
GOLD_AXE(ItemID.GOLD_AXE, "Golden axe", "goldaxe"),
|
|
|
|
|
STRING(ItemID.STRING, "String", "string"),
|
|
|
|
|
FEATHER(ItemID.FEATHER, "Feather", "feather"),
|
|
|
|
|
SULPHUR(ItemID.SULPHUR, "Sulphur", "sulphur", "sulfur", "gunpowder"),
|
|
|
|
|
WOOD_HOE(ItemID.WOOD_HOE, "Wooden hoe", "woodhoe"),
|
|
|
|
|
STONE_HOE(ItemID.STONE_HOE, "Stone hoe", "stonehoe"),
|
|
|
|
|
IRON_HOE(ItemID.IRON_HOE, "Iron hoe", "ironhoe"),
|
|
|
|
|
DIAMOND_HOE(ItemID.DIAMOND_HOE, "Diamond hoe", "diamondhoe"),
|
|
|
|
|
GOLD_HOE(ItemID.GOLD_HOE, "Golden hoe", "goldhoe"),
|
|
|
|
|
SEEDS(ItemID.SEEDS, "Seeds", "seeds", "seed"),
|
|
|
|
|
WHEAT(ItemID.WHEAT, "Wheat", "wheat"),
|
|
|
|
|
BREAD(ItemID.BREAD, "Bread", "bread"),
|
|
|
|
|
LEATHER_HELMET(ItemID.LEATHER_HELMET, "Leather helmet", "leatherhelmet", "leatherhat"),
|
|
|
|
|
LEATHER_CHEST(ItemID.LEATHER_CHEST, "Leather chestplate", "leatherchest", "leatherchestplate", "leathervest", "leatherbreastplate", "leatherplate", "leathercplate", "leatherbody"),
|
|
|
|
|
LEATHER_PANTS(ItemID.LEATHER_PANTS, "Leather pants", "leatherpants", "leathergreaves", "leatherlegs", "leatherleggings", "leatherstockings", "leatherbreeches"),
|
|
|
|
|
LEATHER_BOOTS(ItemID.LEATHER_BOOTS, "Leather boots", "leatherboots", "leathershoes", "leatherfoot", "leatherfeet"),
|
|
|
|
|
CHAINMAIL_HELMET(ItemID.CHAINMAIL_HELMET, "Chainmail helmet", "chainmailhelmet", "chainmailhat"),
|
|
|
|
|
CHAINMAIL_CHEST(ItemID.CHAINMAIL_CHEST, "Chainmail chestplate", "chainmailchest", "chainmailchestplate", "chainmailvest", "chainmailbreastplate", "chainmailplate", "chainmailcplate", "chainmailbody"),
|
|
|
|
|
CHAINMAIL_PANTS(ItemID.CHAINMAIL_PANTS, "Chainmail pants", "chainmailpants", "chainmailgreaves", "chainmaillegs", "chainmailleggings", "chainmailstockings", "chainmailbreeches"),
|
|
|
|
|
CHAINMAIL_BOOTS(ItemID.CHAINMAIL_BOOTS, "Chainmail boots", "chainmailboots", "chainmailshoes", "chainmailfoot", "chainmailfeet"),
|
|
|
|
|
IRON_HELMET(ItemID.IRON_HELMET, "Iron helmet", "ironhelmet", "ironhat"),
|
|
|
|
|
IRON_CHEST(ItemID.IRON_CHEST, "Iron chestplate", "ironchest", "ironchestplate", "ironvest", "ironbreastplate", "ironplate", "ironcplate", "ironbody"),
|
|
|
|
|
IRON_PANTS(ItemID.IRON_PANTS, "Iron pants", "ironpants", "irongreaves", "ironlegs", "ironleggings", "ironstockings", "ironbreeches"),
|
|
|
|
|
IRON_BOOTS(ItemID.IRON_BOOTS, "Iron boots", "ironboots", "ironshoes", "ironfoot", "ironfeet"),
|
|
|
|
|
DIAMOND_HELMET(ItemID.DIAMOND_HELMET, "Diamond helmet", "diamondhelmet", "diamondhat"),
|
|
|
|
|
DIAMOND_CHEST(ItemID.DIAMOND_CHEST, "Diamond chestplate", "diamondchest", "diamondchestplate", "diamondvest", "diamondbreastplate", "diamondplate", "diamondcplate", "diamondbody"),
|
|
|
|
|
DIAMOND_PANTS(ItemID.DIAMOND_PANTS, "Diamond pants", "diamondpants", "diamondgreaves", "diamondlegs", "diamondleggings", "diamondstockings", "diamondbreeches"),
|
|
|
|
|
DIAMOND_BOOTS(ItemID.DIAMOND_BOOTS, "Diamond boots", "diamondboots", "diamondshoes", "diamondfoot", "diamondfeet"),
|
|
|
|
|
GOLD_HELMET(ItemID.GOLD_HELMET, "Gold helmet", "goldhelmet", "goldhat"),
|
|
|
|
|
GOLD_CHEST(ItemID.GOLD_CHEST, "Gold chestplate", "goldchest", "goldchestplate", "goldvest", "goldbreastplate", "goldplate", "goldcplate", "goldbody"),
|
|
|
|
|
GOLD_PANTS(ItemID.GOLD_PANTS, "Gold pants", "goldpants", "goldgreaves", "goldlegs", "goldleggings", "goldstockings", "goldbreeches"),
|
|
|
|
|
GOLD_BOOTS(ItemID.GOLD_BOOTS, "Gold boots", "goldboots", "goldshoes", "goldfoot", "goldfeet"),
|
|
|
|
|
FLINT(ItemID.FLINT, "Flint", "flint"),
|
|
|
|
|
RAW_PORKCHOP(ItemID.RAW_PORKCHOP, "Raw porkchop", "rawpork", "rawporkchop", "rawbacon", "baconstrips", "rawmeat"),
|
|
|
|
|
COOKED_PORKCHOP(ItemID.COOKED_PORKCHOP, "Cooked porkchop", "pork", "cookedpork", "cookedporkchop", "cookedbacon", "bacon", "meat"),
|
|
|
|
|
PAINTING(ItemID.PAINTING, "Painting", "painting"),
|
|
|
|
|
GOLD_APPLE(ItemID.GOLD_APPLE, "Golden apple", "goldapple", "goldenapple"),
|
|
|
|
|
SIGN(ItemID.SIGN, "Wooden sign", "sign"),
|
|
|
|
|
WOODEN_DOOR_ITEM(ItemID.WOODEN_DOOR_ITEM, "Wooden door", "wooddoor", "door"),
|
|
|
|
|
BUCKET(ItemID.BUCKET, "Bucket", "bucket", "bukkit"),
|
|
|
|
|
WATER_BUCKET(ItemID.WATER_BUCKET, "Water bucket", "waterbucket", "waterbukkit"),
|
|
|
|
|
LAVA_BUCKET(ItemID.LAVA_BUCKET, "Lava bucket", "lavabucket", "lavabukkit"),
|
|
|
|
|
MINECART(ItemID.MINECART, "Minecart", "minecart", "cart"),
|
|
|
|
|
SADDLE(ItemID.SADDLE, "Saddle", "saddle"),
|
|
|
|
|
IRON_DOOR_ITEM(ItemID.IRON_DOOR_ITEM, "Iron door", "irondoor"),
|
|
|
|
|
REDSTONE_DUST(ItemID.REDSTONE_DUST, "Redstone dust", "redstonedust", "reddust", "redstone", "dust", "wire"),
|
|
|
|
|
SNOWBALL(ItemID.SNOWBALL, "Snowball", "snowball"),
|
|
|
|
|
WOOD_BOAT(ItemID.WOOD_BOAT, "Wooden boat", "woodboat", "woodenboat", "boat"),
|
|
|
|
|
LEATHER(ItemID.LEATHER, "Leather", "leather", "cowhide"),
|
|
|
|
|
MILK_BUCKET(ItemID.MILK_BUCKET, "Milk bucket", "milkbucket", "milk", "milkbukkit"),
|
|
|
|
|
BRICK_BAR(ItemID.BRICK_BAR, "Brick", "brickbar"),
|
|
|
|
|
CLAY_BALL(ItemID.CLAY_BALL, "Clay", "clay"),
|
|
|
|
|
SUGAR_CANE_ITEM(ItemID.SUGAR_CANE_ITEM, "Sugar cane", "sugarcane", "reed", "reeds"),
|
|
|
|
|
PAPER(ItemID.PAPER, "Paper", "paper"),
|
|
|
|
|
BOOK(ItemID.BOOK, "Book", "book"),
|
|
|
|
|
SLIME_BALL(ItemID.SLIME_BALL, "Slime ball", "slimeball", "slime"),
|
|
|
|
|
STORAGE_MINECART(ItemID.STORAGE_MINECART, "Minecart with Chest", "storageminecart", "storagecart", "minecartwithchest", "minecartchest", "chestminecart"),
|
|
|
|
|
POWERED_MINECART(ItemID.POWERED_MINECART, "Minecart with Furnace", "poweredminecart", "poweredcart", "minecartwithfurnace", "minecartfurnace", "furnaceminecart"),
|
|
|
|
|
EGG(ItemID.EGG, "Egg", "egg"),
|
|
|
|
|
COMPASS(ItemID.COMPASS, "Compass", "compass"),
|
|
|
|
|
FISHING_ROD(ItemID.FISHING_ROD, "Fishing rod", "fishingrod", "fishingpole"),
|
|
|
|
|
WATCH(ItemID.WATCH, "Watch", "watch", "clock", "timer"),
|
|
|
|
|
LIGHTSTONE_DUST(ItemID.LIGHTSTONE_DUST, "Glowstone dust", "lightstonedust", "glowstonedone", "brightstonedust", "brittlegolddust", "brimstonedust"),
|
|
|
|
|
RAW_FISH(ItemID.RAW_FISH, "Raw fish", "rawfish", "fish"),
|
|
|
|
|
COOKED_FISH(ItemID.COOKED_FISH, "Cooked fish", "cookedfish"),
|
|
|
|
|
INK_SACK(ItemID.INK_SACK, "Ink sac", "inksac", "ink", "dye", "inksack"),
|
|
|
|
|
BONE(ItemID.BONE, "Bone", "bone"),
|
|
|
|
|
SUGAR(ItemID.SUGAR, "Sugar", "sugar"),
|
|
|
|
|
CAKE_ITEM(ItemID.CAKE_ITEM, "Cake", "cake"),
|
|
|
|
|
BED_ITEM(ItemID.BED_ITEM, "Bed", "bed"),
|
|
|
|
|
REDSTONE_REPEATER(ItemID.REDSTONE_REPEATER, "Redstone repeater", "redstonerepeater", "diode", "delayer", "repeater"),
|
|
|
|
|
COOKIE(ItemID.COOKIE, "Cookie", "cookie"),
|
|
|
|
|
MAP(ItemID.MAP, "Map", "map"),
|
|
|
|
|
SHEARS(ItemID.SHEARS, "Shears", "shears", "scissors"),
|
|
|
|
|
MELON(ItemID.MELON, "Melon Slice", "melon", "melonslice"),
|
|
|
|
|
PUMPKIN_SEEDS(ItemID.PUMPKIN_SEEDS, "Pumpkin seeds", "pumpkinseed", "pumpkinseeds"),
|
|
|
|
|
MELON_SEEDS(ItemID.MELON_SEEDS, "Melon seeds", "melonseed", "melonseeds"),
|
|
|
|
|
RAW_BEEF(ItemID.RAW_BEEF, "Raw beef", "rawbeef", "rawcow", "beef"),
|
|
|
|
|
COOKED_BEEF(ItemID.COOKED_BEEF, "Steak", "steak", "cookedbeef", "cookedcow"),
|
|
|
|
|
RAW_CHICKEN(ItemID.RAW_CHICKEN, "Raw chicken", "rawchicken"),
|
|
|
|
|
COOKED_CHICKEN(ItemID.COOKED_CHICKEN, "Cooked chicken", "cookedchicken", "chicken", "grilledchicken"),
|
|
|
|
|
ROTTEN_FLESH(ItemID.ROTTEN_FLESH, "Rotten flesh", "rottenflesh", "zombiemeat", "flesh"),
|
|
|
|
|
ENDER_PEARL(ItemID.ENDER_PEARL, "Ender pearl", "pearl", "enderpearl"),
|
|
|
|
|
BLAZE_ROD(ItemID.BLAZE_ROD, "Blaze rod", "blazerod"),
|
|
|
|
|
GHAST_TEAR(ItemID.GHAST_TEAR, "Ghast tear", "ghasttear"),
|
|
|
|
|
GOLD_NUGGET(ItemID.GOLD_NUGGET, "Gold nuggest", "goldnugget"),
|
|
|
|
|
NETHER_WART_ITEM(ItemID.NETHER_WART_SEED, "Nether wart", "netherwart", "netherwartseed"),
|
|
|
|
|
POTION(ItemID.POTION, "Potion", "potion"),
|
|
|
|
|
GLASS_BOTTLE(ItemID.GLASS_BOTTLE, "Glass bottle", "glassbottle"),
|
|
|
|
|
SPIDER_EYE(ItemID.SPIDER_EYE, "Spider eye", "spidereye"),
|
|
|
|
|
FERMENTED_SPIDER_EYE(ItemID.FERMENTED_SPIDER_EYE, "Fermented spider eye", "fermentedspidereye", "fermentedeye"),
|
|
|
|
|
BLAZE_POWDER(ItemID.BLAZE_POWDER, "Blaze powder", "blazepowder"),
|
|
|
|
|
MAGMA_CREAM(ItemID.MAGMA_CREAM, "Magma cream", "magmacream"),
|
|
|
|
|
BREWING_STAND_ITEM(ItemID.BREWING_STAND, "Brewing stand", "brewingstand"),
|
|
|
|
|
CAULDRON_ITEM(ItemID.CAULDRON, "Cauldron", "cauldron"),
|
|
|
|
|
EYE_OF_ENDER(ItemID.EYE_OF_ENDER, "Eye of Ender", "eyeofender", "endereye"),
|
|
|
|
|
GLISTERING_MELON(ItemID.GLISTERING_MELON, "Glistering Melon", "glisteringmelon", "goldmelon"),
|
|
|
|
|
SPAWN_EGG(ItemID.SPAWN_EGG, "Spawn Egg", "spawnegg", "spawn", "mobspawnegg"),
|
|
|
|
|
BOTTLE_O_ENCHANTING(ItemID.BOTTLE_O_ENCHANTING, "Bottle o' Enchanting", "expbottle", "bottleoenchanting", "experiencebottle", "exppotion", "experiencepotion"),
|
|
|
|
|
FIRE_CHARGE(ItemID.FIRE_CHARGE, "Fire Charge", "firecharge", "firestarter", "firerock"),
|
|
|
|
|
BOOK_AND_QUILL(ItemID.BOOK_AND_QUILL, "Book and Quill", "bookandquill", "quill", "writingbook"),
|
|
|
|
|
WRITTEN_BOOK(ItemID.WRITTEN_BOOK, "Written Book", "writtenbook"),
|
|
|
|
|
EMERALD(ItemID.EMERALD, "Emerald", "emeraldingot", "emerald"),
|
|
|
|
|
ITEM_FRAME(ItemID.ITEM_FRAME, "Item frame", "itemframe", "frame", "itempainting"),
|
|
|
|
|
FLOWER_POT(ItemID.FLOWER_POT, "Flower pot", "flowerpot", "plantpot", "pot"),
|
|
|
|
|
CARROT(ItemID.CARROT, "Carrot", "carrot"),
|
|
|
|
|
POTATO(ItemID.POTATO, "Potato", "potato"),
|
|
|
|
|
BAKED_POTATO(ItemID.BAKED_POTATO, "Baked potato", "bakedpotato", "potatobaked"),
|
|
|
|
|
POISONOUS_POTATO(ItemID.POISONOUS_POTATO, "Poisonous potato", "poisonpotato", "poisonouspotato"),
|
|
|
|
|
BLANK_MAP(ItemID.BLANK_MAP, "Blank map", "blankmap", "emptymap"),
|
|
|
|
|
GOLDEN_CARROT(ItemID.GOLDEN_CARROT, "Golden carrot", "goldencarrot", "goldcarrot"),
|
|
|
|
|
HEAD(ItemID.HEAD, "Head", "skull", "head", "headmount", "mount"),
|
|
|
|
|
CARROT_ON_A_STICK(ItemID.CARROT_ON_A_STICK, "Carrot on a stick", "carrotonastick", "carrotonstick", "stickcarrot", "carrotstick"),
|
|
|
|
|
NETHER_STAR(ItemID.NETHER_STAR, "Nether star", "netherstar", "starnether"),
|
|
|
|
|
PUMPKIN_PIE(ItemID.PUMPKIN_PIE, "Pumpkin pie", "pumpkinpie"),
|
|
|
|
|
FIREWORK_ROCKET(ItemID.FIREWORK_ROCKET, "Firework rocket", "firework", "rocket"),
|
|
|
|
|
FIREWORK_STAR(ItemID.FIREWORK_STAR, "Firework star", "fireworkstar", "fireworkcharge"),
|
|
|
|
|
ENCHANTED_BOOK(ItemID.ENCHANTED_BOOK, "Enchanted book", "enchantedbook", "spellbook", "enchantedtome", "tome"),
|
|
|
|
|
COMPARATOR(ItemID.COMPARATOR, "Comparator", "comparator", "capacitor"),
|
|
|
|
|
NETHER_BRICK_ITEM(ItemID.NETHER_BRICK, "Nether Brick (item)", "netherbrickitem"),
|
|
|
|
|
NETHER_QUARTZ(ItemID.NETHER_QUARTZ, "Nether Quartz", "netherquartz", "quartz"),
|
|
|
|
|
TNT_MINECART(ItemID.TNT_MINECART, "Minecart with TNT", "minecraftwithtnt", "tntminecart", "minecarttnt"),
|
|
|
|
|
HOPPER_MINECART(ItemID.HOPPER_MINECART, "Minecart with Hopper", "minecraftwithhopper", "hopperminecart", "minecarthopper"),
|
|
|
|
|
PRISMARINE_SHARD(ItemID.PRISMARINE_SHARD, "Prismarine Shard", "prismarineshard"),
|
|
|
|
|
PRISMARINE_CRYSTALS(ItemID.PRISMARINE_CRYSTALS, "Prismarine Crystals", "prismarinecrystals", "prismarinecrystal"),
|
|
|
|
|
RABBIT(ItemID.RABBIT, "Raw Rabbit", "rawrabbit", "rabbit"), // raw and wriggling
|
|
|
|
|
COOKED_RABBIT(ItemID.COOKED_RABBIT, "Cooked Rabbit", "cookedrabbit"), // stupid fat hobbit, you ruins it
|
|
|
|
|
RABBIT_STEW(ItemID.RABBIT_STEW, "Rabbit Stew", "rabbitstew"), // po-ta-toes
|
|
|
|
|
RABBIT_FOOT(ItemID.RABBIT_FOOT, "Rabbit's Foot", "rabbitsfoot", "rabbitfoot"),
|
|
|
|
|
RABBIT_HIDE(ItemID.RABBIT_HIDE, "Rabbit Hide", "rabbithide", "rabbitskin"),
|
|
|
|
|
ARMOR_STAND(ItemID.ARMOR_STAND, "Armor Stand", "armorstand"),
|
|
|
|
|
HORSE_ARMOR_IRON(ItemID.HORSE_ARMOR_IRON, "Iron Horse Armor", "ironhorsearmor", "ironbarding"),
|
|
|
|
|
HORSE_ARMOR_GOLD(ItemID.HORSE_ARMOR_GOLD, "Gold Horse Armor", "goldhorsearmor", "goldbarding"),
|
|
|
|
|
HORSE_ARMOR_DIAMOND(ItemID.HORSE_ARMOR_DIAMOND, "Diamond Horse Armor", "diamondhorsearmor", "diamondbarding"),
|
|
|
|
|
LEAD(ItemID.LEAD, "Lead", "lead", "leash"),
|
|
|
|
|
NAME_TAG(ItemID.NAME_TAG, "Name Tag", "nametag"),
|
|
|
|
|
COMMAND_BLOCK_MINECART(ItemID.COMMAND_BLOCK_MINECART, "Minecart with Command Block"),
|
|
|
|
|
MUTTON(ItemID.MUTTON, "Mutton", "mutton", "rawmutton"),
|
|
|
|
|
COOKED_MUTTON(ItemID.COOKED_MUTTON, "Cooked Mutton", "cookedmutton"),
|
|
|
|
|
BANNER(ItemID.BANNER, "Banner", "banner"),
|
|
|
|
|
END_CRYSTAL(ItemID.END_CRYSTAL, "End Crystal", "endcrystal"),
|
|
|
|
|
SPRUCE_DOOR_ITEM(ItemID.SPRUCE_DOOR, "Spruce Door", "sprucedoor"),
|
|
|
|
|
BIRCH_DOOR_ITEM(ItemID.BIRCH_DOOR, "Birch Door", "birchdoor"),
|
|
|
|
|
JUNGLE_DOOR_ITEM(ItemID.JUNGLE_DOOR, "Jungle Door", "jungledoor"),
|
|
|
|
|
ACACIA_DOOR_ITEM(ItemID.ACACIA_DOOR, "Acacia Door", "acaciadoor"),
|
|
|
|
|
DARK_OAK_DOOR_ITEM(ItemID.DARK_OAK_DOOR, "Dark Oak Door", "darkoakdoor"),
|
|
|
|
|
CHORUS_FRUIT(ItemID.CHORUS_FRUIT, "Chorus Fruit", "chorusfruit"),
|
|
|
|
|
CHORUS_FRUIT_POPPED(ItemID.CHORUS_FRUIT_POPPED, "Popped Chorus Fruit", "poppedchorusfruit", "chorusfruitpopped", "cookedchorusfruit"),
|
|
|
|
|
BEETROOT(ItemID.BEETROOT, "Beetroot", "beetroot"),
|
|
|
|
|
BEETROOT_SEEDS(ItemID.BEETROOT_SEEDS, "Beetroot Seeds", "beetrootseeds"),
|
|
|
|
|
BEETROOT_SOUP(ItemID.BEETROOT_SOUP, "Beetroot Soup", "beetrootsoup"),
|
|
|
|
|
DRAGON_BREATH(ItemID.DRAGON_BREATH, "Dragon Breath", "dragonbreath"),
|
|
|
|
|
SPLASH_POTION(ItemID.SPLASH_POTION, "Splash Potion", "splashpotion", "potionsplash"),
|
|
|
|
|
SPECTRAL_ARROW(ItemID.SPECTRAL_ARROW, "Spectral Arrow", "spectralarrow", "glowingarrow"),
|
|
|
|
|
TIPPED_ARROW(ItemID.TIPPED_ARROW, "Tipped Arrow", "tippedarrow", "potionarrow"),
|
|
|
|
|
LINGERING_POTION(ItemID.LINGERING_POTION, "Lingering Potion", "lingeringpotion", "potionlingering"),
|
|
|
|
|
SHIELD(ItemID.SHIELD, "Shield", "shield"),
|
|
|
|
|
ELYTRA(ItemID.ELYTRA, "Elytra", "elytra", "wings"),
|
|
|
|
|
SPRUCE_BOAT(ItemID.SPRUCE_BOAT, "Spruce Boat", "spruceboat", "boatspruce"),
|
|
|
|
|
BIRCH_BOAT(ItemID.BIRCH_BOAT, "Birch Boat", "birchboat", "boatbirch"),
|
|
|
|
|
JUNGLE_BOAT(ItemID.JUNGLE_BOAT, "Jungle Boat", "jungleboat", "boatjungle"),
|
|
|
|
|
ACACIA_BOAT(ItemID.ACACIA_BOAT, "Acacia Boat", "acaciaboat", "boatacacia"),
|
|
|
|
|
DARK_OAK_BOAT(ItemID.DARK_OAK_BOAT, "Dark Oak Boat", "darkoakboat", "boatdarkoak"),
|
|
|
|
|
TOTEM_OF_UNDYING(ItemID.TOTEM_OF_UNDYING, "Totem of Undying", "totemofundying", "undyingtotem"),
|
|
|
|
|
SHULKER_SHELL(ItemID.SHULKER_SHELL, "Shulker Shell", "shulkershell"),
|
|
|
|
|
IRON_NUGGET(ItemID.IRON_NUGGET, "Iron Nugget", "ironnugget"),
|
|
|
|
|
KNOWLEDGE_BOOK(ItemID.KNOWLEDGE_BOOK, "Knowledge Book", "knowledgebook", "recipebook"),
|
|
|
|
|
|
|
|
|
|
DISC_13(ItemID.DISC_13, "Music Disc - 13", "disc_13"),
|
|
|
|
|
DISC_CAT(ItemID.DISC_CAT, "Music Disc - Cat", "disc_cat"),
|
|
|
|
|
DISC_BLOCKS(ItemID.DISC_BLOCKS, "Music Disc - blocks", "disc_blocks"),
|
|
|
|
|
DISC_CHIRP(ItemID.DISC_CHIRP, "Music Disc - chirp", "disc_chirp"),
|
|
|
|
|
DISC_FAR(ItemID.DISC_FAR, "Music Disc - far", "disc_far"),
|
|
|
|
|
DISC_MALL(ItemID.DISC_MALL, "Music Disc - mall", "disc_mall"),
|
|
|
|
|
DISC_MELLOHI(ItemID.DISC_MELLOHI, "Music Disc - mellohi", "disc_mellohi"),
|
|
|
|
|
DISC_STAL(ItemID.DISC_STAL, "Music Disc - stal", "disc_stal"),
|
|
|
|
|
DISC_STRAD(ItemID.DISC_STRAD, "Music Disc - strad", "disc_strad"),
|
|
|
|
|
DISC_WARD(ItemID.DISC_WARD, "Music Disc - ward", "disc_ward"),
|
|
|
|
|
DISC_11(ItemID.DISC_11, "Music Disc - 11", "disc_11"),
|
|
|
|
|
DISC_WAIT(ItemID.DISC_WAIT, "Music Disc - wait", "disc_wait"),
|
|
|
|
|
|
|
|
|
|
// deprecated
|
|
|
|
|
@Deprecated GOLD_RECORD(ItemID.GOLD_RECORD, "Gold Record", "goldrecord", "golddisc"),
|
|
|
|
|
@Deprecated GREEN_RECORD(ItemID.GREEN_RECORD, "Green Record", "greenrecord", "greenddisc");
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Stores a map of the IDs for fast access.
|
|
|
|
|
*/
|
|
|
|
|
private static final Map<Integer, ItemType> ids = new HashMap<>();
|
|
|
|
|
/**
|
|
|
|
|
* Stores a map of the names for fast access.
|
|
|
|
|
*/
|
|
|
|
|
private static final Map<String, ItemType> lookup = new LinkedHashMap<>();
|
|
|
|
|
|
|
|
|
|
private final int id;
|
|
|
|
|
private final String name;
|
|
|
|
|
private final String[] lookupKeys;
|
|
|
|
|
|
|
|
|
|
static {
|
|
|
|
|
for (ItemType type : EnumSet.allOf(ItemType.class)) {
|
|
|
|
|
ids.put(type.id, type);
|
|
|
|
|
for (String key : type.lookupKeys) {
|
|
|
|
|
lookup.put(key, type);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Construct the type.
|
|
|
|
|
*
|
|
|
|
|
* @param id the type ID of the item
|
|
|
|
|
* @param name the name of the item
|
|
|
|
|
* @param lookupKey a name to refer to the item type by
|
|
|
|
|
*/
|
|
|
|
|
ItemType(int id, String name, String lookupKey) {
|
|
|
|
|
this.id = id;
|
|
|
|
|
this.name = name;
|
|
|
|
|
this.lookupKeys = new String[] { lookupKey };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Construct the type.
|
|
|
|
|
*
|
|
|
|
|
* @param id the type ID of the item
|
|
|
|
|
* @param name the name of the item
|
|
|
|
|
* @param lookupKeys a list of names to refer to the item type by
|
|
|
|
|
*/
|
|
|
|
|
ItemType(int id, String name, String... lookupKeys) {
|
|
|
|
|
this.id = id;
|
|
|
|
|
this.name = name;
|
|
|
|
|
this.lookupKeys = lookupKeys;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Return type from ID. May return null.
|
|
|
|
|
*
|
|
|
|
|
* @param id the type ID of the item
|
|
|
|
|
* @return an item type or null
|
|
|
|
|
*/
|
|
|
|
|
@Nullable
|
|
|
|
|
public static ItemType fromID(int id) {
|
|
|
|
|
return ids.get(id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get a name for the item.
|
|
|
|
|
*
|
|
|
|
|
* <p>If the item type is not null, the numeric ID will be returned.</p>
|
|
|
|
|
*
|
|
|
|
|
* @param id the type ID of the item
|
|
|
|
|
* @return a name for the item
|
|
|
|
|
*/
|
|
|
|
|
public static String toName(int id) {
|
|
|
|
|
ItemType type = ids.get(id);
|
|
|
|
|
if (type != null) {
|
|
|
|
|
return type.getName();
|
|
|
|
|
} else {
|
|
|
|
|
return "#" + id;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get a name for a held item.
|
|
|
|
|
*
|
|
|
|
|
* <p>If the item type is not null, the numeric ID will be returned.</p>
|
|
|
|
|
*
|
|
|
|
|
* @param id the type ID of the item
|
|
|
|
|
* @return the name of the item
|
|
|
|
|
*/
|
|
|
|
|
public static String toHeldName(int id) {
|
|
|
|
|
if (id == 0) {
|
|
|
|
|
return "Hand";
|
|
|
|
|
}
|
|
|
|
|
ItemType type = ids.get(id);
|
|
|
|
|
if (type != null) {
|
|
|
|
|
return type.getName();
|
|
|
|
|
} else {
|
|
|
|
|
return "#" + id;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Return type from name. May return null.
|
|
|
|
|
*
|
|
|
|
|
* @param name the name
|
|
|
|
|
* @return the type or null
|
|
|
|
|
*/
|
|
|
|
|
@Nullable
|
|
|
|
|
public static ItemType lookup(String name) {
|
|
|
|
|
return lookup(name, true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Return type from name. May return null.
|
|
|
|
|
*
|
|
|
|
|
* @param name the name
|
|
|
|
|
* @param fuzzy true to do a fuzzy string search
|
|
|
|
|
* @return the type or null
|
|
|
|
|
*/
|
|
|
|
|
@Nullable
|
|
|
|
|
public static ItemType lookup(String name, boolean fuzzy) {
|
|
|
|
|
try {
|
|
|
|
|
return fromID(Integer.parseInt(name));
|
|
|
|
|
} catch (NumberFormatException e) {
|
|
|
|
|
return StringUtil.lookup(lookup, name, fuzzy);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get item numeric ID.
|
|
|
|
|
*
|
|
|
|
|
* @return the type ID of this item
|
|
|
|
|
*/
|
|
|
|
|
public int getID() {
|
|
|
|
|
return id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get user-friendly item name.
|
|
|
|
|
*
|
|
|
|
|
* @return a name of this item
|
|
|
|
|
*/
|
|
|
|
|
public String getName() {
|
|
|
|
|
return name;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get a list of aliases.
|
|
|
|
|
*
|
|
|
|
|
* @return a list of aliases
|
|
|
|
|
*/
|
|
|
|
|
public String[] getAliases() {
|
|
|
|
|
return lookupKeys;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static final Set<Integer> shouldNotStack = new HashSet<>();
|
|
|
|
|
static {
|
|
|
|
|
shouldNotStack.add(ItemID.IRON_SHOVEL);
|
|
|
|
|
shouldNotStack.add(ItemID.IRON_PICK);
|
|
|
|
|
shouldNotStack.add(ItemID.IRON_AXE);
|
|
|
|
|
shouldNotStack.add(ItemID.FLINT_AND_TINDER);
|
|
|
|
|
shouldNotStack.add(ItemID.BOW);
|
|
|
|
|
shouldNotStack.add(ItemID.IRON_SWORD);
|
|
|
|
|
shouldNotStack.add(ItemID.WOOD_SWORD);
|
|
|
|
|
shouldNotStack.add(ItemID.WOOD_SHOVEL);
|
|
|
|
|
shouldNotStack.add(ItemID.WOOD_PICKAXE);
|
|
|
|
|
shouldNotStack.add(ItemID.WOOD_AXE);
|
|
|
|
|
shouldNotStack.add(ItemID.STONE_SWORD);
|
|
|
|
|
shouldNotStack.add(ItemID.STONE_SHOVEL);
|
|
|
|
|
shouldNotStack.add(ItemID.STONE_PICKAXE);
|
|
|
|
|
shouldNotStack.add(ItemID.STONE_AXE);
|
|
|
|
|
shouldNotStack.add(ItemID.DIAMOND_SWORD);
|
|
|
|
|
shouldNotStack.add(ItemID.DIAMOND_SHOVEL);
|
|
|
|
|
shouldNotStack.add(ItemID.DIAMOND_PICKAXE);
|
|
|
|
|
shouldNotStack.add(ItemID.DIAMOND_AXE);
|
|
|
|
|
shouldNotStack.add(ItemID.BOWL);
|
|
|
|
|
shouldNotStack.add(ItemID.GOLD_SWORD);
|
|
|
|
|
shouldNotStack.add(ItemID.GOLD_SHOVEL);
|
|
|
|
|
shouldNotStack.add(ItemID.GOLD_PICKAXE);
|
|
|
|
|
shouldNotStack.add(ItemID.GOLD_AXE);
|
|
|
|
|
shouldNotStack.add(ItemID.WOOD_HOE);
|
|
|
|
|
shouldNotStack.add(ItemID.STONE_HOE);
|
|
|
|
|
shouldNotStack.add(ItemID.IRON_HOE);
|
|
|
|
|
shouldNotStack.add(ItemID.DIAMOND_HOE);
|
|
|
|
|
shouldNotStack.add(ItemID.GOLD_HOE);
|
|
|
|
|
shouldNotStack.add(ItemID.LEATHER_HELMET);
|
|
|
|
|
shouldNotStack.add(ItemID.LEATHER_CHEST);
|
|
|
|
|
shouldNotStack.add(ItemID.LEATHER_PANTS);
|
|
|
|
|
shouldNotStack.add(ItemID.LEATHER_BOOTS);
|
|
|
|
|
shouldNotStack.add(ItemID.CHAINMAIL_CHEST);
|
|
|
|
|
shouldNotStack.add(ItemID.CHAINMAIL_HELMET);
|
|
|
|
|
shouldNotStack.add(ItemID.CHAINMAIL_BOOTS);
|
|
|
|
|
shouldNotStack.add(ItemID.CHAINMAIL_PANTS);
|
|
|
|
|
shouldNotStack.add(ItemID.IRON_HELMET);
|
|
|
|
|
shouldNotStack.add(ItemID.IRON_CHEST);
|
|
|
|
|
shouldNotStack.add(ItemID.IRON_PANTS);
|
|
|
|
|
shouldNotStack.add(ItemID.IRON_BOOTS);
|
|
|
|
|
shouldNotStack.add(ItemID.DIAMOND_HELMET);
|
|
|
|
|
shouldNotStack.add(ItemID.DIAMOND_PANTS);
|
|
|
|
|
shouldNotStack.add(ItemID.DIAMOND_CHEST);
|
|
|
|
|
shouldNotStack.add(ItemID.DIAMOND_BOOTS);
|
|
|
|
|
shouldNotStack.add(ItemID.GOLD_HELMET);
|
|
|
|
|
shouldNotStack.add(ItemID.GOLD_CHEST);
|
|
|
|
|
shouldNotStack.add(ItemID.GOLD_PANTS);
|
|
|
|
|
shouldNotStack.add(ItemID.GOLD_BOOTS);
|
|
|
|
|
shouldNotStack.add(ItemID.WOODEN_DOOR_ITEM);
|
|
|
|
|
shouldNotStack.add(ItemID.WATER_BUCKET);
|
|
|
|
|
shouldNotStack.add(ItemID.LAVA_BUCKET);
|
|
|
|
|
shouldNotStack.add(ItemID.MINECART);
|
|
|
|
|
shouldNotStack.add(ItemID.SADDLE);
|
|
|
|
|
shouldNotStack.add(ItemID.IRON_DOOR_ITEM);
|
|
|
|
|
shouldNotStack.add(ItemID.WOOD_BOAT);
|
|
|
|
|
shouldNotStack.add(ItemID.MILK_BUCKET);
|
|
|
|
|
shouldNotStack.add(ItemID.STORAGE_MINECART);
|
|
|
|
|
shouldNotStack.add(ItemID.POWERED_MINECART);
|
|
|
|
|
shouldNotStack.add(ItemID.WATCH);
|
|
|
|
|
shouldNotStack.add(ItemID.CAKE_ITEM);
|
|
|
|
|
shouldNotStack.add(ItemID.BED_ITEM);
|
|
|
|
|
shouldNotStack.add(ItemID.MAP);
|
|
|
|
|
shouldNotStack.add(ItemID.SHEARS);
|
|
|
|
|
shouldNotStack.add(ItemID.HEAD);
|
|
|
|
|
shouldNotStack.add(ItemID.FIREWORK_ROCKET);
|
|
|
|
|
shouldNotStack.add(ItemID.FIREWORK_STAR);
|
|
|
|
|
shouldNotStack.add(ItemID.ENCHANTED_BOOK);
|
|
|
|
|
shouldNotStack.add(ItemID.TNT_MINECART);
|
|
|
|
|
shouldNotStack.add(ItemID.HOPPER_MINECART);
|
|
|
|
|
shouldNotStack.add(ItemID.HORSE_ARMOR_IRON);
|
|
|
|
|
shouldNotStack.add(ItemID.HORSE_ARMOR_GOLD);
|
|
|
|
|
shouldNotStack.add(ItemID.HORSE_ARMOR_DIAMOND);
|
|
|
|
|
shouldNotStack.add(ItemID.COMMAND_BLOCK_MINECART);
|
|
|
|
|
shouldNotStack.add(ItemID.DISC_13);
|
|
|
|
|
shouldNotStack.add(ItemID.DISC_CAT);
|
|
|
|
|
shouldNotStack.add(ItemID.DISC_BLOCKS);
|
|
|
|
|
shouldNotStack.add(ItemID.DISC_CHIRP);
|
|
|
|
|
shouldNotStack.add(ItemID.DISC_FAR);
|
|
|
|
|
shouldNotStack.add(ItemID.DISC_MALL);
|
|
|
|
|
shouldNotStack.add(ItemID.DISC_MELLOHI);
|
|
|
|
|
shouldNotStack.add(ItemID.DISC_STAL);
|
|
|
|
|
shouldNotStack.add(ItemID.DISC_STRAD);
|
|
|
|
|
shouldNotStack.add(ItemID.DISC_WARD);
|
|
|
|
|
shouldNotStack.add(ItemID.DISC_11);
|
|
|
|
|
shouldNotStack.add(ItemID.DISC_WAIT);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns true if an item should not be stacked.
|
|
|
|
|
*
|
|
|
|
|
* @param id the type ID of the item
|
|
|
|
|
* @return true if the item should not stack
|
|
|
|
|
*/
|
|
|
|
|
public static boolean shouldNotStack(int id) {
|
|
|
|
|
return shouldNotStack.contains(id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static final Set<Integer> usesDamageValue = new HashSet<>();
|
|
|
|
|
static {
|
|
|
|
|
usesDamageValue.add(BlockID.DIRT);
|
|
|
|
|
usesDamageValue.add(BlockID.WOOD);
|
|
|
|
|
usesDamageValue.add(BlockID.SAPLING);
|
|
|
|
|
usesDamageValue.add(BlockID.SAND);
|
|
|
|
|
usesDamageValue.add(BlockID.LOG);
|
|
|
|
|
usesDamageValue.add(BlockID.LEAVES);
|
|
|
|
|
usesDamageValue.add(BlockID.SANDSTONE);
|
|
|
|
|
usesDamageValue.add(BlockID.LONG_GRASS);
|
|
|
|
|
usesDamageValue.add(BlockID.CLOTH);
|
|
|
|
|
usesDamageValue.add(BlockID.RED_FLOWER);
|
|
|
|
|
usesDamageValue.add(BlockID.DOUBLE_STEP);
|
|
|
|
|
usesDamageValue.add(BlockID.STEP);
|
|
|
|
|
usesDamageValue.add(BlockID.SILVERFISH_BLOCK);
|
|
|
|
|
usesDamageValue.add(BlockID.STONE_BRICK);
|
|
|
|
|
usesDamageValue.add(BlockID.BROWN_MUSHROOM_CAP);
|
|
|
|
|
usesDamageValue.add(BlockID.RED_MUSHROOM_CAP);
|
|
|
|
|
usesDamageValue.add(BlockID.DOUBLE_WOODEN_STEP);
|
|
|
|
|
usesDamageValue.add(BlockID.WOODEN_STEP);
|
|
|
|
|
usesDamageValue.add(BlockID.COBBLESTONE_WALL);
|
|
|
|
|
usesDamageValue.add(BlockID.ANVIL);
|
|
|
|
|
usesDamageValue.add(BlockID.QUARTZ_BLOCK);
|
|
|
|
|
usesDamageValue.add(BlockID.STAINED_CLAY);
|
|
|
|
|
usesDamageValue.add(BlockID.CARPET);
|
|
|
|
|
usesDamageValue.add(BlockID.CONCRETE);
|
|
|
|
|
usesDamageValue.add(BlockID.CONCRETE_POWDER);
|
|
|
|
|
|
|
|
|
|
usesDamageValue.add(ItemID.COAL);
|
|
|
|
|
usesDamageValue.add(ItemID.INK_SACK);
|
|
|
|
|
usesDamageValue.add(ItemID.POTION);
|
|
|
|
|
usesDamageValue.add(ItemID.SPAWN_EGG);
|
|
|
|
|
usesDamageValue.add(ItemID.MAP);
|
|
|
|
|
usesDamageValue.add(ItemID.HEAD);
|
|
|
|
|
usesDamageValue.add(ItemID.GOLD_APPLE);
|
|
|
|
|
usesDamageValue.add(ItemID.RAW_FISH);
|
|
|
|
|
usesDamageValue.add(ItemID.COOKED_FISH);
|
|
|
|
|
usesDamageValue.add(ItemID.BED_ITEM);
|
|
|
|
|
usesDamageValue.add(ItemID.BANNER);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns true if an item uses its damage value for something
|
|
|
|
|
* other than damage.
|
|
|
|
|
*
|
|
|
|
|
* @param id the type ID of the item
|
|
|
|
|
* @return true if the item uses its damage value
|
|
|
|
|
*/
|
|
|
|
|
public static boolean usesDamageValue(int id) {
|
|
|
|
|
return usesDamageValue.contains(id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|