public enum WalkingType extends java.lang.Enum<WalkingType>
Enum Constant and Description |
---|
ABSOLUTE |
CHASM |
GRASS |
NORMAL |
WALL |
WATER |
Modifier and Type | Method and Description |
---|---|
boolean |
canSpawnAt(Level level,
int cell) |
boolean[] |
passableCells(Level level) |
int |
respawnCell(Level level) |
static WalkingType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WalkingType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WalkingType NORMAL
public static final WalkingType WATER
public static final WalkingType WALL
public static final WalkingType GRASS
public static final WalkingType CHASM
public static final WalkingType ABSOLUTE
public static WalkingType[] values()
for (WalkingType c : WalkingType.values()) System.out.println(c);
public static WalkingType 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 boolean[] passableCells(Level level)
public boolean canSpawnAt(Level level, int cell)
public int respawnCell(Level level)