Enum Class ExtendedFacing
- All Implemented Interfaces:
Serializable,Comparable<ExtendedFacing>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ExtendedFacingstatic final Map<net.minecraftforge.common.util.ForgeDirection, List<ExtendedFacing>> static final intstatic final ExtendedFacing[] -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtendedFacingbyIndex(int index) static ExtendedFacingstatic com.google.common.collect.ImmutableSet<ExtendedFacing> getAllWith(Flip flip) static com.google.common.collect.ImmutableSet<ExtendedFacing> getAllWith(Rotation rotation) static com.google.common.collect.ImmutableSet<ExtendedFacing> getAllWith(net.minecraftforge.common.util.ForgeDirection direction) net.minecraftforge.common.util.ForgeDirectionGets the same effective facing achieved by different rot/flip combogetFlip()intgetIndex()getName2()voidgetOffsetABC(double[] point, double[] out) voidgetOffsetABC(int[] point, int[] out) getOffsetABC(Vec3Impl xyzOffset) getOffsetABC(Vec3 xyzOffset) Translates world offset to relative front facing offsetnet.minecraftforge.common.util.ForgeDirectionnet.minecraftforge.common.util.ForgeDirectionnet.minecraftforge.common.util.ForgeDirectionnet.minecraftforge.common.util.ForgeDirectionnet.minecraftforge.common.util.ForgeDirectionnet.minecraftforge.common.util.ForgeDirectionnet.minecraftforge.common.util.ForgeDirectiongetWorldDirection(net.minecraftforge.common.util.ForgeDirection abcDirection) do note the ABC coordinate system is (X, -Y, Z).voidgetWorldOffset(double[] point, double[] out) voidgetWorldOffset(int[] point, int[] out) getWorldOffset(Vec3Impl abcOffset) getWorldOffset(Vec3 abcOffset) Translates relative to front facing offset to world offsetstatic ExtendedFacingof(net.minecraftforge.common.util.ForgeDirection direction) static ExtendedFacingstatic ExtendedFacingstatic ExtendedFacingReturns the enum constant of this class with the specified name.static ExtendedFacing[]values()Returns an array containing the constants of this enum class, in the order they are declared.with(net.minecraftforge.common.util.ForgeDirection direction)
-
Enum Constant Details
-
DOWN_NORMAL_NONE
-
DOWN_NORMAL_HORIZONTAL
-
DOWN_NORMAL_VERTICAL
-
DOWN_NORMAL_BOTH
-
DOWN_CLOCKWISE_NONE
-
DOWN_CLOCKWISE_HORIZONTAL
-
DOWN_CLOCKWISE_VERTICAL
-
DOWN_CLOCKWISE_BOTH
-
DOWN_UPSIDE_DOWN_NONE
-
DOWN_UPSIDE_DOWN_HORIZONTAL
-
DOWN_UPSIDE_DOWN_VERTICAL
-
DOWN_UPSIDE_DOWN_BOTH
-
DOWN_COUNTER_CLOCKWISE_NONE
-
DOWN_COUNTER_CLOCKWISE_HORIZONTAL
-
DOWN_COUNTER_CLOCKWISE_VERTICAL
-
DOWN_COUNTER_CLOCKWISE_BOTH
-
UP_NORMAL_NONE
-
UP_NORMAL_HORIZONTAL
-
UP_NORMAL_VERTICAL
-
UP_NORMAL_BOTH
-
UP_CLOCKWISE_NONE
-
UP_CLOCKWISE_HORIZONTAL
-
UP_CLOCKWISE_VERTICAL
-
UP_CLOCKWISE_BOTH
-
UP_UPSIDE_DOWN_NONE
-
UP_UPSIDE_DOWN_HORIZONTAL
-
UP_UPSIDE_DOWN_VERTICAL
-
UP_UPSIDE_DOWN_BOTH
-
UP_COUNTER_CLOCKWISE_NONE
-
UP_COUNTER_CLOCKWISE_HORIZONTAL
-
UP_COUNTER_CLOCKWISE_VERTICAL
-
UP_COUNTER_CLOCKWISE_BOTH
-
NORTH_NORMAL_NONE
-
NORTH_NORMAL_HORIZONTAL
-
NORTH_NORMAL_VERTICAL
-
NORTH_NORMAL_BOTH
-
NORTH_CLOCKWISE_NONE
-
NORTH_CLOCKWISE_HORIZONTAL
-
NORTH_CLOCKWISE_VERTICAL
-
NORTH_CLOCKWISE_BOTH
-
NORTH_UPSIDE_DOWN_NONE
-
NORTH_UPSIDE_DOWN_HORIZONTAL
-
NORTH_UPSIDE_DOWN_VERTICAL
-
NORTH_UPSIDE_DOWN_BOTH
-
NORTH_COUNTER_CLOCKWISE_NONE
-
NORTH_COUNTER_CLOCKWISE_HORIZONTAL
-
NORTH_COUNTER_CLOCKWISE_VERTICAL
-
NORTH_COUNTER_CLOCKWISE_BOTH
-
SOUTH_NORMAL_NONE
-
SOUTH_NORMAL_HORIZONTAL
-
SOUTH_NORMAL_VERTICAL
-
SOUTH_NORMAL_BOTH
-
SOUTH_CLOCKWISE_NONE
-
SOUTH_CLOCKWISE_HORIZONTAL
-
SOUTH_CLOCKWISE_VERTICAL
-
SOUTH_CLOCKWISE_BOTH
-
SOUTH_UPSIDE_DOWN_NONE
-
SOUTH_UPSIDE_DOWN_HORIZONTAL
-
SOUTH_UPSIDE_DOWN_VERTICAL
-
SOUTH_UPSIDE_DOWN_BOTH
-
SOUTH_COUNTER_CLOCKWISE_NONE
-
SOUTH_COUNTER_CLOCKWISE_HORIZONTAL
-
SOUTH_COUNTER_CLOCKWISE_VERTICAL
-
SOUTH_COUNTER_CLOCKWISE_BOTH
-
WEST_NORMAL_NONE
-
WEST_NORMAL_HORIZONTAL
-
WEST_NORMAL_VERTICAL
-
WEST_NORMAL_BOTH
-
WEST_CLOCKWISE_NONE
-
WEST_CLOCKWISE_HORIZONTAL
-
WEST_CLOCKWISE_VERTICAL
-
WEST_CLOCKWISE_BOTH
-
WEST_UPSIDE_DOWN_NONE
-
WEST_UPSIDE_DOWN_HORIZONTAL
-
WEST_UPSIDE_DOWN_VERTICAL
-
WEST_UPSIDE_DOWN_BOTH
-
WEST_COUNTER_CLOCKWISE_NONE
-
WEST_COUNTER_CLOCKWISE_HORIZONTAL
-
WEST_COUNTER_CLOCKWISE_VERTICAL
-
WEST_COUNTER_CLOCKWISE_BOTH
-
EAST_NORMAL_NONE
-
EAST_NORMAL_HORIZONTAL
-
EAST_NORMAL_VERTICAL
-
EAST_NORMAL_BOTH
-
EAST_CLOCKWISE_NONE
-
EAST_CLOCKWISE_HORIZONTAL
-
EAST_CLOCKWISE_VERTICAL
-
EAST_CLOCKWISE_BOTH
-
EAST_UPSIDE_DOWN_NONE
-
EAST_UPSIDE_DOWN_HORIZONTAL
-
EAST_UPSIDE_DOWN_VERTICAL
-
EAST_UPSIDE_DOWN_BOTH
-
EAST_COUNTER_CLOCKWISE_NONE
-
EAST_COUNTER_CLOCKWISE_HORIZONTAL
-
EAST_COUNTER_CLOCKWISE_VERTICAL
-
EAST_COUNTER_CLOCKWISE_BOTH
-
-
Field Details
-
DEFAULT
-
VALUES
-
FOR_FACING
public static final Map<net.minecraftforge.common.util.ForgeDirection,List<ExtendedFacing>> FOR_FACING -
STATES_COUNT
public static final int STATES_COUNT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
of
public static ExtendedFacing of(net.minecraftforge.common.util.ForgeDirection direction, Rotation rotation, Flip flip) -
of
-
getAllWith
public static com.google.common.collect.ImmutableSet<ExtendedFacing> getAllWith(net.minecraftforge.common.util.ForgeDirection direction) -
getAllWith
-
getAllWith
-
with
-
with
-
with
-
getOppositeDirection
-
getOppositeRotation
-
getOppositeFlip
-
getDuplicate
Gets the same effective facing achieved by different rot/flip combo- Returns:
- same effective facing, but different enum value
-
getIndex
public int getIndex() -
getName2
-
getLocalizedName
-
byName
-
byIndex
-
random
-
getDirection
public net.minecraftforge.common.util.ForgeDirection getDirection() -
getRotation
-
getFlip
-
getWorldOffset
Translates relative to front facing offset to world offset- Parameters:
abcOffset- A,B,C offset (facing relativeL-->R,U-->D,F-->B)- Returns:
- X, Y, Z offset in world
-
getWorldOffset
-
getWorldOffset
public void getWorldOffset(int[] point, int[] out) -
getWorldOffset
public void getWorldOffset(double[] point, double[] out) -
getWorldDirection
public net.minecraftforge.common.util.ForgeDirection getWorldDirection(net.minecraftforge.common.util.ForgeDirection abcDirection) do note the ABC coordinate system is (X, -Y, Z). -
getOffsetABC
Translates world offset to relative front facing offset- Parameters:
xyzOffset- X,Y,Z offset in world- Returns:
- A, B, C offset (facing relative
L-->R,U-->D,F-->B)
-
getOffsetABC
-
getOffsetABC
public void getOffsetABC(int[] point, int[] out) -
getOffsetABC
public void getOffsetABC(double[] point, double[] out) -
getIntegerAxisSwap
-
getRelativeLeftInWorld
public net.minecraftforge.common.util.ForgeDirection getRelativeLeftInWorld() -
getRelativeRightInWorld
public net.minecraftforge.common.util.ForgeDirection getRelativeRightInWorld() -
getRelativeDownInWorld
public net.minecraftforge.common.util.ForgeDirection getRelativeDownInWorld() -
getRelativeUpInWorld
public net.minecraftforge.common.util.ForgeDirection getRelativeUpInWorld() -
getRelativeBackInWorld
public net.minecraftforge.common.util.ForgeDirection getRelativeBackInWorld() -
getRelativeForwardInWorld
public net.minecraftforge.common.util.ForgeDirection getRelativeForwardInWorld()
-