public enum Face extends java.lang.Enum<Face>
Casing.
Mainly to avoid Minecraft specific types in the API where possible. Just in case things get changed around again like has happened the last few major version bumps.
| Enum Constant and Description |
|---|
X_NEG |
X_POS |
Y_NEG |
Y_POS |
Z_NEG |
Z_POS |
| Modifier and Type | Field and Description |
|---|---|
static Face[] |
OPPOSITES
Mapping faces to their opposites (by ordinal()).
|
static Face[] |
VALUES
All possible enum values for quick indexing.
|
| Modifier and Type | Method and Description |
|---|---|
static Face |
fromDirection(net.minecraft.util.math.Direction facing)
Convert a facing from Forge's format to our internal format.
|
Face |
getOpposite()
The the opposite face to this one.
|
static net.minecraft.util.math.Direction |
toDirection(Face face)
Convert a facing from our internal format to Forge's format.
|
static Face |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Face[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Face Y_NEG
public static final Face Y_POS
public static final Face Z_NEG
public static final Face Z_POS
public static final Face X_NEG
public static final Face X_POS
public static final Face[] VALUES
public static final Face[] OPPOSITES
public static Face[] values()
for (Face c : Face.values()) System.out.println(c);
public static Face 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 Face getOpposite()
OPPOSITESpublic static Face fromDirection(net.minecraft.util.math.Direction facing)
facing - the facing to convert.Face representing that facing.public static net.minecraft.util.math.Direction toDirection(Face face)
face - the face to convert.Direction representing that facing.