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