public static enum BoatEntity.Location extends Enum<BoatEntity.Location>
Enum Constant and Description |
---|
IN_AIR |
IN_WATER |
ON_LAND |
UNDER_FLOWING_WATER |
UNDER_WATER |
Modifier and Type | Method and Description |
---|---|
static BoatEntity.Location |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BoatEntity.Location[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BoatEntity.Location IN_WATER
public static final BoatEntity.Location UNDER_WATER
public static final BoatEntity.Location UNDER_FLOWING_WATER
public static final BoatEntity.Location ON_LAND
public static final BoatEntity.Location IN_AIR
public static BoatEntity.Location[] values()
for (BoatEntity.Location c : BoatEntity.Location.values()) System.out.println(c);
public static BoatEntity.Location 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 null