public enum ItemType extends Enum<ItemType>
Modifier and Type | Method and Description |
---|---|
static ItemType |
fromID(int id)
Return type from ID.
|
String[] |
getAliases()
Get a list of aliases.
|
int |
getID()
Get item numeric ID.
|
String |
getName()
Get user-friendly item name.
|
static ItemType |
lookup(String name)
Return type from name.
|
static ItemType |
lookup(String name,
boolean fuzzy)
Return type from name.
|
static boolean |
shouldNotStack(int id)
Returns true if an item should not be stacked.
|
static String |
toHeldName(int id)
Get a name for a held item.
|
static String |
toName(int id)
Get a name for the item.
|
static boolean |
usesDamageValue(int id)
Returns true if an item uses its damage value for something
other than damage.
|
static ItemType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ItemType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ItemType AIR
public static final ItemType STONE
public static final ItemType GRASS
public static final ItemType DIRT
public static final ItemType COBBLESTONE
public static final ItemType WOOD
public static final ItemType SAPLING
public static final ItemType BEDROCK
public static final ItemType WATER
public static final ItemType STATIONARY_WATER
public static final ItemType LAVA
public static final ItemType STATIONARY_LAVA
public static final ItemType SAND
public static final ItemType GRAVEL
public static final ItemType GOLD_ORE
public static final ItemType IRON_ORE
public static final ItemType COAL_ORE
public static final ItemType LOG
public static final ItemType LEAVES
public static final ItemType SPONGE
public static final ItemType GLASS
public static final ItemType LAPIS_LAZULI_ORE
public static final ItemType LAPIS_LAZULI
public static final ItemType DISPENSER
public static final ItemType SANDSTONE
public static final ItemType NOTE_BLOCK
public static final ItemType BED
public static final ItemType POWERED_RAIL
public static final ItemType DETECTOR_RAIL
public static final ItemType PISTON_STICKY_BASE
public static final ItemType WEB
public static final ItemType LONG_GRASS
public static final ItemType DEAD_BUSH
public static final ItemType PISTON_BASE
public static final ItemType PISTON_EXTENSION
public static final ItemType CLOTH
public static final ItemType PISTON_MOVING_PIECE
public static final ItemType YELLOW_FLOWER
public static final ItemType RED_FLOWER
public static final ItemType BROWN_MUSHROOM
public static final ItemType RED_MUSHROOM
public static final ItemType GOLD_BLOCK
public static final ItemType IRON_BLOCK
public static final ItemType DOUBLE_STEP
public static final ItemType STEP
public static final ItemType BRICK
public static final ItemType TNT
public static final ItemType BOOKCASE
public static final ItemType MOSSY_COBBLESTONE
public static final ItemType OBSIDIAN
public static final ItemType TORCH
public static final ItemType FIRE
public static final ItemType MOB_SPAWNER
public static final ItemType WOODEN_STAIRS
public static final ItemType CHEST
public static final ItemType REDSTONE_WIRE
public static final ItemType DIAMOND_ORE
public static final ItemType DIAMOND_BLOCK
public static final ItemType WORKBENCH
public static final ItemType CROPS
public static final ItemType SOIL
public static final ItemType FURNACE
public static final ItemType BURNING_FURNACE
public static final ItemType SIGN_POST
public static final ItemType WOODEN_DOOR
public static final ItemType LADDER
public static final ItemType MINECART_TRACKS
public static final ItemType COBBLESTONE_STAIRS
public static final ItemType WALL_SIGN
public static final ItemType LEVER
public static final ItemType STONE_PRESSURE_PLATE
public static final ItemType IRON_DOOR
public static final ItemType WOODEN_PRESSURE_PLATE
public static final ItemType REDSTONE_ORE
public static final ItemType GLOWING_REDSTONE_ORE
public static final ItemType REDSTONE_TORCH_OFF
public static final ItemType REDSTONE_TORCH_ON
public static final ItemType STONE_BUTTON
public static final ItemType SNOW
public static final ItemType ICE
public static final ItemType SNOW_BLOCK
public static final ItemType CACTUS
public static final ItemType CLAY
public static final ItemType SUGAR_CANE
public static final ItemType JUKEBOX
public static final ItemType FENCE
public static final ItemType PUMPKIN
public static final ItemType NETHERRACK
public static final ItemType SOUL_SAND
public static final ItemType GLOWSTONE
public static final ItemType PORTAL
public static final ItemType JACK_O_LANTERN
public static final ItemType CAKE
public static final ItemType REDSTONE_REPEATER_OFF
public static final ItemType REDSTONE_REPEATER_ON
public static final ItemType LOCKED_CHEST
public static final ItemType TRAP_DOOR
public static final ItemType SILVERFISH_BLOCK
public static final ItemType STONE_BRICK
public static final ItemType RED_MUSHROOM_CAP
public static final ItemType BROWN_MUSHROOM_CAP
public static final ItemType IRON_BARS
public static final ItemType GLASS_PANE
public static final ItemType MELON_BLOCK
public static final ItemType PUMPKIN_STEM
public static final ItemType MELON_STEM
public static final ItemType VINE
public static final ItemType FENCE_GATE
public static final ItemType BRICK_STAIRS
public static final ItemType STONE_BRICK_STAIRS
public static final ItemType MYCELIUM
public static final ItemType LILY_PAD
public static final ItemType NETHER_BRICK
public static final ItemType NETHER_BRICK_FENCE
public static final ItemType NETHER_BRICK_STAIRS
public static final ItemType NETHER_WART
public static final ItemType ENCHANTMENT_TABLE
public static final ItemType BREWING_STAND
public static final ItemType CAULDRON
public static final ItemType END_PORTAL
public static final ItemType END_PORTAL_FRAME
public static final ItemType END_STONE
public static final ItemType DRAGON_EGG
public static final ItemType REDSTONE_LAMP_OFF
public static final ItemType REDSTONE_LAMP_ON
public static final ItemType DOUBLE_WOODEN_STEP
public static final ItemType WOODEN_STEP
public static final ItemType COCOA_PLANT
public static final ItemType SANDSTONE_STAIRS
public static final ItemType EMERALD_ORE
public static final ItemType ENDER_CHEST
public static final ItemType TRIPWIRE_HOOK
public static final ItemType TRIPWIRE
public static final ItemType EMERALD_BLOCK
public static final ItemType SPRUCE_WOOD_STAIRS
public static final ItemType BIRCH_WOOD_STAIRS
public static final ItemType JUNGLE_WOOD_STAIRS
public static final ItemType COMMAND_BLOCK
public static final ItemType BEACON
public static final ItemType COBBLESTONE_WALL
public static final ItemType FLOWER_POT_BLOCK
public static final ItemType CARROTS_BLOCK
public static final ItemType POTATOES_BLOCK
public static final ItemType WOODEN_BUTTON
public static final ItemType HEAD_BLOCK
public static final ItemType ANVIL
public static final ItemType TRAPPED_CHEST
public static final ItemType PRESSURE_PLATE_LIGHT
public static final ItemType PRESSURE_PLATE_HEAVY
public static final ItemType COMPARATOR_OFF
public static final ItemType COMPARATOR_ON
public static final ItemType DAYLIGHT_SENSOR
public static final ItemType REDSTONE_BLOCK
public static final ItemType QUARTZ_ORE
public static final ItemType HOPPER
public static final ItemType QUARTZ_BLOCK
public static final ItemType QUARTZ_STAIRS
public static final ItemType ACTIVATOR_RAIL
public static final ItemType DROPPER
public static final ItemType IRON_SHOVEL
public static final ItemType IRON_PICK
public static final ItemType IRON_AXE
public static final ItemType FLINT_AND_TINDER
public static final ItemType RED_APPLE
public static final ItemType BOW
public static final ItemType ARROW
public static final ItemType COAL
public static final ItemType DIAMOND
public static final ItemType IRON_BAR
public static final ItemType GOLD_BAR
public static final ItemType IRON_SWORD
public static final ItemType WOOD_SWORD
public static final ItemType WOOD_SHOVEL
public static final ItemType WOOD_PICKAXE
public static final ItemType WOOD_AXE
public static final ItemType STONE_SWORD
public static final ItemType STONE_SHOVEL
public static final ItemType STONE_PICKAXE
public static final ItemType STONE_AXE
public static final ItemType DIAMOND_SWORD
public static final ItemType DIAMOND_SHOVEL
public static final ItemType DIAMOND_PICKAXE
public static final ItemType DIAMOND_AXE
public static final ItemType STICK
public static final ItemType BOWL
public static final ItemType MUSHROOM_SOUP
public static final ItemType GOLD_SWORD
public static final ItemType GOLD_SHOVEL
public static final ItemType GOLD_PICKAXE
public static final ItemType GOLD_AXE
public static final ItemType STRING
public static final ItemType FEATHER
public static final ItemType SULPHUR
public static final ItemType WOOD_HOE
public static final ItemType STONE_HOE
public static final ItemType IRON_HOE
public static final ItemType DIAMOND_HOE
public static final ItemType GOLD_HOE
public static final ItemType SEEDS
public static final ItemType WHEAT
public static final ItemType BREAD
public static final ItemType LEATHER_HELMET
public static final ItemType LEATHER_CHEST
public static final ItemType LEATHER_PANTS
public static final ItemType LEATHER_BOOTS
public static final ItemType CHAINMAIL_HELMET
public static final ItemType CHAINMAIL_CHEST
public static final ItemType CHAINMAIL_PANTS
public static final ItemType CHAINMAIL_BOOTS
public static final ItemType IRON_HELMET
public static final ItemType IRON_CHEST
public static final ItemType IRON_PANTS
public static final ItemType IRON_BOOTS
public static final ItemType DIAMOND_HELMET
public static final ItemType DIAMOND_CHEST
public static final ItemType DIAMOND_PANTS
public static final ItemType DIAMOND_BOOTS
public static final ItemType GOLD_HELMET
public static final ItemType GOLD_CHEST
public static final ItemType GOLD_PANTS
public static final ItemType GOLD_BOOTS
public static final ItemType FLINT
public static final ItemType RAW_PORKCHOP
public static final ItemType COOKED_PORKCHOP
public static final ItemType PAINTING
public static final ItemType GOLD_APPLE
public static final ItemType SIGN
public static final ItemType WOODEN_DOOR_ITEM
public static final ItemType BUCKET
public static final ItemType WATER_BUCKET
public static final ItemType LAVA_BUCKET
public static final ItemType MINECART
public static final ItemType SADDLE
public static final ItemType IRON_DOOR_ITEM
public static final ItemType REDSTONE_DUST
public static final ItemType SNOWBALL
public static final ItemType WOOD_BOAT
public static final ItemType LEATHER
public static final ItemType MILK_BUCKET
public static final ItemType BRICK_BAR
public static final ItemType CLAY_BALL
public static final ItemType SUGAR_CANE_ITEM
public static final ItemType PAPER
public static final ItemType BOOK
public static final ItemType SLIME_BALL
public static final ItemType STORAGE_MINECART
public static final ItemType POWERED_MINECART
public static final ItemType EGG
public static final ItemType COMPASS
public static final ItemType FISHING_ROD
public static final ItemType WATCH
public static final ItemType LIGHTSTONE_DUST
public static final ItemType RAW_FISH
public static final ItemType COOKED_FISH
public static final ItemType INK_SACK
public static final ItemType BONE
public static final ItemType SUGAR
public static final ItemType CAKE_ITEM
public static final ItemType BED_ITEM
public static final ItemType REDSTONE_REPEATER
public static final ItemType COOKIE
public static final ItemType MAP
public static final ItemType SHEARS
public static final ItemType MELON
public static final ItemType PUMPKIN_SEEDS
public static final ItemType MELON_SEEDS
public static final ItemType RAW_BEEF
public static final ItemType COOKED_BEEF
public static final ItemType RAW_CHICKEN
public static final ItemType COOKED_CHICKEN
public static final ItemType ROTTEN_FLESH
public static final ItemType ENDER_PEARL
public static final ItemType BLAZE_ROD
public static final ItemType GHAST_TEAR
public static final ItemType GOLD_NUGGET
public static final ItemType NETHER_WART_ITEM
public static final ItemType POTION
public static final ItemType GLASS_BOTTLE
public static final ItemType SPIDER_EYE
public static final ItemType FERMENTED_SPIDER_EYE
public static final ItemType BLAZE_POWDER
public static final ItemType MAGMA_CREAM
public static final ItemType BREWING_STAND_ITEM
public static final ItemType CAULDRON_ITEM
public static final ItemType EYE_OF_ENDER
public static final ItemType GLISTERING_MELON
public static final ItemType SPAWN_EGG
public static final ItemType BOTTLE_O_ENCHANTING
public static final ItemType FIRE_CHARGE
public static final ItemType BOOK_AND_QUILL
public static final ItemType WRITTEN_BOOK
public static final ItemType EMERALD
public static final ItemType ITEM_FRAME
public static final ItemType FLOWER_POT
public static final ItemType CARROT
public static final ItemType POTATO
public static final ItemType BAKED_POTATO
public static final ItemType POISONOUS_POTATO
public static final ItemType BLANK_MAP
public static final ItemType GOLDEN_CARROT
public static final ItemType HEAD
public static final ItemType CARROT_ON_A_STICK
public static final ItemType NETHER_STAR
public static final ItemType PUMPKIN_PIE
public static final ItemType FIREWORK_ROCKET
public static final ItemType FIREWORK_STAR
public static final ItemType ENCHANTED_BOOK
public static final ItemType COMPARATOR
public static final ItemType NETHER_BRICK_ITEM
public static final ItemType NETHER_QUARTZ
public static final ItemType TNT_MINECART
public static final ItemType HOPPER_MINECART
public static final ItemType DISC_13
public static final ItemType DISC_CAT
public static final ItemType DISC_BLOCKS
public static final ItemType DISC_CHIRP
public static final ItemType DISC_FAR
public static final ItemType DISC_MALL
public static final ItemType DISC_MELLOHI
public static final ItemType DISC_STAL
public static final ItemType DISC_STRAD
public static final ItemType DISC_WARD
public static final ItemType DISC_11
public static final ItemType DISC_WAIT
@Deprecated public static final ItemType GOLD_RECORD
@Deprecated public static final ItemType GREEN_RECORD
public static ItemType[] values()
for (ItemType c : ItemType.values()) System.out.println(c);
public static ItemType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static ItemType fromID(int id)
id
- public static String toName(int id)
id
- public static String toHeldName(int id)
id
- public static ItemType lookup(String name)
name
- public static ItemType lookup(String name, boolean fuzzy)
name
- fuzzy
- public int getID()
public String getName()
public String[] getAliases()
public static boolean shouldNotStack(int id)
id
- public static boolean usesDamageValue(int id)
id
- Copyright © 2010-2013. All Rights Reserved.