public static enum BoatEntity.Type extends java.lang.Enum<BoatEntity.Type>
Enum Constant and Description |
---|
ACACIA |
BIRCH |
DARK_OAK |
JUNGLE |
OAK |
SPRUCE |
Modifier and Type | Field and Description |
---|---|
private Block |
block |
private java.lang.String |
name |
Modifier and Type | Method and Description |
---|---|
Block |
asPlank() |
static BoatEntity.Type |
byId(int id) |
java.lang.String |
getName() |
static BoatEntity.Type |
getTypeFromString(java.lang.String nameIn) |
java.lang.String |
toString() |
static BoatEntity.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BoatEntity.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BoatEntity.Type OAK
public static final BoatEntity.Type SPRUCE
public static final BoatEntity.Type BIRCH
public static final BoatEntity.Type JUNGLE
public static final BoatEntity.Type ACACIA
public static final BoatEntity.Type DARK_OAK
private final java.lang.String name
private final Block block
public static BoatEntity.Type[] values()
for (BoatEntity.Type c : BoatEntity.Type.values()) System.out.println(c);
public static BoatEntity.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 java.lang.String getName()
public Block asPlank()
public java.lang.String toString()
toString
in class java.lang.Enum<BoatEntity.Type>
public static BoatEntity.Type byId(int id)
public static BoatEntity.Type getTypeFromString(java.lang.String nameIn)