Package petrolpark.mc.library.util
Enum Class Orientation
- All Implemented Interfaces:
Serializable,Comparable<Orientation>,Constable,net.minecraft.util.StringRepresentable
@ParametersAreNonnullByDefault
public enum Orientation
extends Enum<Orientation>
implements net.minecraft.util.StringRepresentable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentable
net.minecraft.util.StringRepresentable.EnumCodec<E extends Enum<E> & net.minecraft.util.StringRepresentable>, net.minecraft.util.StringRepresentable.StringRepresentableCodec<S extends net.minecraft.util.StringRepresentable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.world.level.block.state.properties.EnumProperty<Orientation> static final Orientation[]final net.minecraft.core.Directionfinal net.minecraft.world.phys.Vec3final Stringstatic final net.minecraft.world.level.block.state.properties.EnumProperty<Orientation> final net.minecraft.core.Directionfinal net.minecraft.world.phys.Vec3final org.joml.QuaternionfRotation from the defaultUP_SOUTHorientation to this orientation.final net.minecraft.core.Directionfinal net.minecraft.world.phys.Vec3Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD -
Method Summary
Modifier and TypeMethodDescriptionasEdge()static final OrientationfromTopAndFront(net.minecraft.core.Direction top, net.minecraft.core.Direction front) mirror(net.minecraft.world.level.block.Mirror mirror) rotate(net.minecraft.core.Direction.Axis axis, net.minecraft.world.level.block.Rotation rotation) net.minecraft.core.Direction[]net.minecraft.world.phys.Vec3transform(net.minecraft.world.phys.Vec3 point) static OrientationReturns the enum constant of this class with the specified name.static Orientation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DOWN_NORTH
-
DOWN_SOUTH
-
DOWN_WEST
-
DOWN_EAST
-
UP_NORTH
-
UP_SOUTH
-
UP_WEST
-
UP_EAST
-
NORTH_DOWN
-
NORTH_UP
-
NORTH_WEST
-
NORTH_EAST
-
SOUTH_DOWN
-
SOUTH_UP
-
SOUTH_WEST
-
SOUTH_EAST
-
WEST_DOWN
-
WEST_UP
-
WEST_NORTH
-
WEST_SOUTH
-
EAST_DOWN
-
EAST_UP
-
EAST_NORTH
-
EAST_SOUTH
-
-
Field Details
-
name
-
top
public final net.minecraft.core.Direction top -
front
public final net.minecraft.core.Direction front -
right
public final net.minecraft.core.Direction right -
topVec
public final net.minecraft.world.phys.Vec3 topVec -
frontVec
public final net.minecraft.world.phys.Vec3 frontVec -
rightVec
public final net.minecraft.world.phys.Vec3 rightVec -
rotationFromUpSouth
public final org.joml.Quaternionf rotationFromUpSouthRotation from the defaultUP_SOUTHorientation to this orientation. -
EDGE_ORIENTATIONS
-
ORIENTATION_PROPERTY
public static final net.minecraft.world.level.block.state.properties.EnumProperty<Orientation> ORIENTATION_PROPERTY -
EDGE_ORIENTATION_PROPERTY
public static final net.minecraft.world.level.block.state.properties.EnumProperty<Orientation> EDGE_ORIENTATION_PROPERTY
-
-
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
-
fromTopAndFront
public static final Orientation fromTopAndFront(net.minecraft.core.Direction top, net.minecraft.core.Direction front) -
getSerializedName
- Specified by:
getSerializedNamein interfacenet.minecraft.util.StringRepresentable
-
topAndFront
public net.minecraft.core.Direction[] topAndFront() -
rotate
public Orientation rotate(net.minecraft.core.Direction.Axis axis, net.minecraft.world.level.block.Rotation rotation) -
mirror
-
asEdge
-
transform
public net.minecraft.world.phys.Vec3 transform(net.minecraft.world.phys.Vec3 point)
-