public static enum EntityMinecart.Type extends java.lang.Enum<EntityMinecart.Type>
Enum Constant and Description |
---|
CHEST |
COMMAND_BLOCK |
FURNACE |
HOPPER |
RIDEABLE |
SPAWNER |
TNT |
Modifier and Type | Method and Description |
---|---|
static EntityMinecart.Type |
getById(int idIn) |
int |
getId() |
java.lang.String |
getName() |
static EntityMinecart.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EntityMinecart.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EntityMinecart.Type RIDEABLE
public static final EntityMinecart.Type CHEST
public static final EntityMinecart.Type FURNACE
public static final EntityMinecart.Type TNT
public static final EntityMinecart.Type SPAWNER
public static final EntityMinecart.Type HOPPER
public static final EntityMinecart.Type COMMAND_BLOCK
public static EntityMinecart.Type[] values()
for (EntityMinecart.Type c : EntityMinecart.Type.values()) System.out.println(c);
public static EntityMinecart.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getId()
public java.lang.String getName()
public static EntityMinecart.Type getById(int idIn)