Enum Constant and Description |
---|
DOWN
Down.
|
EAST
East.
|
NORTH
North.
|
NORTH_EAST
North east.
|
NORTH_WEST
North west.
|
SOUTH
South.
|
SOUTH_EAST
South east.
|
SOUTH_WEST
South west.
|
UP
Up.
|
WEST
West.
|
Modifier and Type | Method and Description |
---|---|
int |
getDx()
Returns the relative x direction.
|
int |
getDy()
Returns the relative y direction.
|
int |
getDz()
Returns the relative z direction.
|
java.lang.String |
getId()
Returns the identification string.
|
static Direction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Direction NORTH
public static final Direction EAST
public static final Direction SOUTH
public static final Direction WEST
public static final Direction NORTH_EAST
public static final Direction SOUTH_EAST
public static final Direction SOUTH_WEST
public static final Direction NORTH_WEST
public static final Direction UP
public static final Direction DOWN
public static Direction[] values()
for (Direction c : Direction.values()) System.out.println(c);
public static Direction 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 getDx()
public int getDy()
public int getDz()
@NotNull public java.lang.String getId()