public enum EnumFacing extends java.lang.Enum<EnumFacing> implements IStringSerializable
Modifier and Type | Class and Description |
---|---|
static class |
EnumFacing.Axis |
static class |
EnumFacing.AxisDirection |
static class |
EnumFacing.Plane |
Modifier and Type | Field and Description |
---|---|
static EnumFacing[] |
HORIZONTALS |
static EnumFacing[] |
VALUES |
Modifier and Type | Method and Description |
---|---|
static EnumFacing |
byName(java.lang.String name) |
static EnumFacing |
fromAngle(double angle) |
EnumFacing.Axis |
getAxis() |
EnumFacing.AxisDirection |
getAxisDirection() |
Vec3i |
getDirectionVec() |
static EnumFacing |
getFacingFromAxis(EnumFacing.AxisDirection axisDirectionIn,
EnumFacing.Axis axisIn) |
static EnumFacing |
getFacingFromVector(float x,
float y,
float z) |
static EnumFacing |
getFront(int index) |
int |
getFrontOffsetX() |
int |
getFrontOffsetY() |
int |
getFrontOffsetZ() |
static EnumFacing |
getHorizontal(int p_176731_0_) |
float |
getHorizontalAngle() |
int |
getHorizontalIndex() |
int |
getIndex() |
java.lang.String |
getName() |
java.lang.String |
getName2() |
EnumFacing |
getOpposite() |
static EnumFacing |
random(java.util.Random rand) |
EnumFacing |
rotateAround(EnumFacing.Axis axis) |
EnumFacing |
rotateY() |
EnumFacing |
rotateYCCW() |
java.lang.String |
toString() |
static EnumFacing |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnumFacing[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumFacing DOWN
public static final EnumFacing UP
public static final EnumFacing NORTH
public static final EnumFacing SOUTH
public static final EnumFacing WEST
public static final EnumFacing EAST
public static final EnumFacing[] VALUES
public static final EnumFacing[] HORIZONTALS
public static EnumFacing[] values()
for (EnumFacing c : EnumFacing.values()) System.out.println(c);
public static EnumFacing 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 getIndex()
public int getHorizontalIndex()
public EnumFacing.AxisDirection getAxisDirection()
public EnumFacing getOpposite()
public EnumFacing rotateAround(EnumFacing.Axis axis)
public EnumFacing rotateY()
public EnumFacing rotateYCCW()
public int getFrontOffsetX()
public int getFrontOffsetY()
public int getFrontOffsetZ()
public java.lang.String getName2()
public EnumFacing.Axis getAxis()
@Nullable public static EnumFacing byName(java.lang.String name)
public static EnumFacing getFront(int index)
public static EnumFacing getHorizontal(int p_176731_0_)
public static EnumFacing fromAngle(double angle)
public float getHorizontalAngle()
public static EnumFacing random(java.util.Random rand)
public static EnumFacing getFacingFromVector(float x, float y, float z)
public java.lang.String toString()
toString
in class java.lang.Enum<EnumFacing>
public java.lang.String getName()
getName
in interface IStringSerializable
public static EnumFacing getFacingFromAxis(EnumFacing.AxisDirection axisDirectionIn, EnumFacing.Axis axisIn)
public Vec3i getDirectionVec()