Enum Item.Type
java.lang.Object
java.lang.Enum<Item.Type>
Item.Type
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Item.Type>
- Enclosing class:
- Item
public static enum Item.Type
extends java.lang.Enum<Item.Type>
Type - Used to identify items
Method Summary
static Item.Type |
fromId(int id)
|
int |
getId()
|
static Item.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Item.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Air
public static final Item.Type Air
Stone
public static final Item.Type Stone
Grass
public static final Item.Type Grass
Dirt
public static final Item.Type Dirt
Cobblestone
public static final Item.Type Cobblestone
Wood
public static final Item.Type Wood
Sapling
public static final Item.Type Sapling
Bedrock
public static final Item.Type Bedrock
Water
public static final Item.Type Water
StationaryWater
public static final Item.Type StationaryWater
Lava
public static final Item.Type Lava
StationaryLava
public static final Item.Type StationaryLava
Sand
public static final Item.Type Sand
Gravel
public static final Item.Type Gravel
GoldOre
public static final Item.Type GoldOre
IronOre
public static final Item.Type IronOre
CoalOre
public static final Item.Type CoalOre
Log
public static final Item.Type Log
Leaves
public static final Item.Type Leaves
Sponge
public static final Item.Type Sponge
Glass
public static final Item.Type Glass
Cloth
public static final Item.Type Cloth
YellowFlower
public static final Item.Type YellowFlower
RedRose
public static final Item.Type RedRose
BrownMushroom
public static final Item.Type BrownMushroom
RedMushroom
public static final Item.Type RedMushroom
GoldBlock
public static final Item.Type GoldBlock
IronBlock
public static final Item.Type IronBlock
DoubleStep
public static final Item.Type DoubleStep
Step
public static final Item.Type Step
Brick
public static final Item.Type Brick
TNT
public static final Item.Type TNT
BookShelf
public static final Item.Type BookShelf
MossyCobblestone
public static final Item.Type MossyCobblestone
Obsidian
public static final Item.Type Obsidian
Torch
public static final Item.Type Torch
Fire
public static final Item.Type Fire
MobSpawner
public static final Item.Type MobSpawner
WoodStairs
public static final Item.Type WoodStairs
Chest
public static final Item.Type Chest
RedstoneWire
public static final Item.Type RedstoneWire
DiamondOre
public static final Item.Type DiamondOre
DiamondBlock
public static final Item.Type DiamondBlock
Workbench
public static final Item.Type Workbench
Crops
public static final Item.Type Crops
Soil
public static final Item.Type Soil
Furnace
public static final Item.Type Furnace
BurningFurnace
public static final Item.Type BurningFurnace
SignPost
public static final Item.Type SignPost
WoodenDoor
public static final Item.Type WoodenDoor
Ladder
public static final Item.Type Ladder
Rails
public static final Item.Type Rails
CobblestoneStairs
public static final Item.Type CobblestoneStairs
WallSign
public static final Item.Type WallSign
Lever
public static final Item.Type Lever
StonePlate
public static final Item.Type StonePlate
IronDoorBlock
public static final Item.Type IronDoorBlock
WoodPlate
public static final Item.Type WoodPlate
RedstoneOre
public static final Item.Type RedstoneOre
GlowingRedstoneOre
public static final Item.Type GlowingRedstoneOre
RedstoneTorchOff
public static final Item.Type RedstoneTorchOff
RedstoneTorchOn
public static final Item.Type RedstoneTorchOn
StoneButton
public static final Item.Type StoneButton
Snow
public static final Item.Type Snow
Ice
public static final Item.Type Ice
SnowBlock
public static final Item.Type SnowBlock
Cactus
public static final Item.Type Cactus
Clay
public static final Item.Type Clay
ReedBlock
public static final Item.Type ReedBlock
Jukebox
public static final Item.Type Jukebox
Fence
public static final Item.Type Fence
Pumpkin
public static final Item.Type Pumpkin
Netherstone
public static final Item.Type Netherstone
SlowSand
public static final Item.Type SlowSand
LightStone
public static final Item.Type LightStone
Portal
public static final Item.Type Portal
JackOLantern
public static final Item.Type JackOLantern
IronSpade
public static final Item.Type IronSpade
IronPickaxe
public static final Item.Type IronPickaxe
IronAxe
public static final Item.Type IronAxe
FlintAndSteel
public static final Item.Type FlintAndSteel
Apple
public static final Item.Type Apple
Bow
public static final Item.Type Bow
Arrow
public static final Item.Type Arrow
Coal
public static final Item.Type Coal
Diamond
public static final Item.Type Diamond
IronIngot
public static final Item.Type IronIngot
GoldIngot
public static final Item.Type GoldIngot
IronSword
public static final Item.Type IronSword
WoodSword
public static final Item.Type WoodSword
WoodSpade
public static final Item.Type WoodSpade
WoodPickaxe
public static final Item.Type WoodPickaxe
WoodAxe
public static final Item.Type WoodAxe
StoneSword
public static final Item.Type StoneSword
StoneSpade
public static final Item.Type StoneSpade
StonePickaxe
public static final Item.Type StonePickaxe
StoneAxe
public static final Item.Type StoneAxe
DiamondSword
public static final Item.Type DiamondSword
DiamondSpade
public static final Item.Type DiamondSpade
DiamondPickaxe
public static final Item.Type DiamondPickaxe
DiamondAxe
public static final Item.Type DiamondAxe
Stick
public static final Item.Type Stick
Bowl
public static final Item.Type Bowl
MushroomSoup
public static final Item.Type MushroomSoup
GoldSword
public static final Item.Type GoldSword
GoldSpade
public static final Item.Type GoldSpade
GoldPickaxe
public static final Item.Type GoldPickaxe
GoldAxe
public static final Item.Type GoldAxe
String
public static final Item.Type String
Feather
public static final Item.Type Feather
Gunpowder
public static final Item.Type Gunpowder
WoodHoe
public static final Item.Type WoodHoe
StoneHoe
public static final Item.Type StoneHoe
IronHoe
public static final Item.Type IronHoe
DiamondHoe
public static final Item.Type DiamondHoe
GoldHoe
public static final Item.Type GoldHoe
Seeds
public static final Item.Type Seeds
Wheat
public static final Item.Type Wheat
Bread
public static final Item.Type Bread
LeatherHelmet
public static final Item.Type LeatherHelmet
LeatherChestplate
public static final Item.Type LeatherChestplate
LeatherLeggings
public static final Item.Type LeatherLeggings
LeatherBoots
public static final Item.Type LeatherBoots
ChainmailHelmet
public static final Item.Type ChainmailHelmet
ChainmailChestplate
public static final Item.Type ChainmailChestplate
ChainmailLeggings
public static final Item.Type ChainmailLeggings
ChainmailBoots
public static final Item.Type ChainmailBoots
IronHelmet
public static final Item.Type IronHelmet
IronChestplate
public static final Item.Type IronChestplate
IronLeggings
public static final Item.Type IronLeggings
IronBoots
public static final Item.Type IronBoots
DiamondHelmet
public static final Item.Type DiamondHelmet
DiamondChestplate
public static final Item.Type DiamondChestplate
DiamondLeggings
public static final Item.Type DiamondLeggings
DiamondBoots
public static final Item.Type DiamondBoots
GoldHelmet
public static final Item.Type GoldHelmet
GoldChestplate
public static final Item.Type GoldChestplate
GoldLeggings
public static final Item.Type GoldLeggings
GoldBoots
public static final Item.Type GoldBoots
Flint
public static final Item.Type Flint
Pork
public static final Item.Type Pork
GrilledPork
public static final Item.Type GrilledPork
Painting
public static final Item.Type Painting
GoldenApple
public static final Item.Type GoldenApple
Sign
public static final Item.Type Sign
WoodDoor
public static final Item.Type WoodDoor
Bucket
public static final Item.Type Bucket
WaterBucket
public static final Item.Type WaterBucket
LavaBucket
public static final Item.Type LavaBucket
Minecart
public static final Item.Type Minecart
Saddle
public static final Item.Type Saddle
IronDoor
public static final Item.Type IronDoor
RedStone
public static final Item.Type RedStone
SnowBall
public static final Item.Type SnowBall
Boat
public static final Item.Type Boat
Leather
public static final Item.Type Leather
MilkBucket
public static final Item.Type MilkBucket
ClayBrick
public static final Item.Type ClayBrick
ClayBall
public static final Item.Type ClayBall
Reed
public static final Item.Type Reed
Paper
public static final Item.Type Paper
Book
public static final Item.Type Book
SlimeBall
public static final Item.Type SlimeBall
StorageMinecart
public static final Item.Type StorageMinecart
PoweredMinecart
public static final Item.Type PoweredMinecart
Egg
public static final Item.Type Egg
Compass
public static final Item.Type Compass
FishingRod
public static final Item.Type FishingRod
Watch
public static final Item.Type Watch
LightstoneDust
public static final Item.Type LightstoneDust
RawFish
public static final Item.Type RawFish
CookedFish
public static final Item.Type CookedFish
GoldRecord
public static final Item.Type GoldRecord
GreenRecord
public static final Item.Type GreenRecord
values
public static Item.Type[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Item.Type c : Item.Type.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Item.Type valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
getId
public int getId()
fromId
public static Item.Type fromId(int id)