Enum Constant and Description |
---|
LEFT
The id of the left side of a block.
|
RIGHT |
TOP |
Modifier and Type | Method and Description |
---|---|
int |
getCode()
The side as integer.
|
static Sides |
normalToSide(com.badlogic.gdx.math.Vector3 normal) |
static Sides |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Sides[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Sides LEFT
public static final Sides TOP
public static final Sides RIGHT
public static Sides[] values()
for (Sides c : Sides.values()) System.out.println(c);
public static Sides 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 getCode()
public static Sides normalToSide(com.badlogic.gdx.math.Vector3 normal)
normal
-