public enum BlockDirection extends Enum<BlockDirection>
Vector
Enum Constant and Description |
---|
BOTTOM
Facing down
|
EAST
Facing east
|
NORTH
Facing north
|
NORTH_EAST
Facing north east
|
NORTH_WEST
Facing north west
|
SELF
The given component direction not leading anywhere
|
SOUTH
Facing south
|
SOUTH_EAST
Facing south east
|
SOUTH_WEST
Facing south west
|
TOP
Facing up
|
WEST
Facing west
|
Modifier and Type | Method and Description |
---|---|
Position |
apply(Position loc)
Gets the position relative to the given direction
|
Vector |
difference()
The copy of the directional vector
|
static BlockDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BlockDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlockDirection NORTH
public static final BlockDirection SOUTH
public static final BlockDirection EAST
public static final BlockDirection WEST
public static final BlockDirection NORTH_EAST
public static final BlockDirection NORTH_WEST
public static final BlockDirection SOUTH_EAST
public static final BlockDirection SOUTH_WEST
public static final BlockDirection TOP
public static final BlockDirection BOTTOM
public static final BlockDirection SELF
public static BlockDirection[] values()
for (BlockDirection c : BlockDirection.values()) System.out.println(c);
public static BlockDirection 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 nullpublic Vector difference()
Copyright © 2016. All rights reserved.