Package net.minecraft.util
Enum Class BlockRotation
- All Implemented Interfaces:
Serializable,Comparable<BlockRotation>,Constable
- Mappings:
Namespace Name official bhbintermediary net/minecraft/class_2734named net/minecraft/util/BlockRotation
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintrotate(int rotation, int fullTurn) rotate(BlockRotation rotation) static BlockRotationReturns the enum constant of this class with the specified name.static BlockRotation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
- Mappings:
Namespace Name Mixin selector official aLbhb;a:Lbhb;intermediary field_12742Lnet/minecraft/class_2734;field_12742:Lnet/minecraft/class_2734;named NONELnet/minecraft/util/BlockRotation;NONE:Lnet/minecraft/util/BlockRotation;
-
CLOCKWISE_90
- Mappings:
Namespace Name Mixin selector official bLbhb;b:Lbhb;intermediary field_12743Lnet/minecraft/class_2734;field_12743:Lnet/minecraft/class_2734;named CLOCKWISE_90Lnet/minecraft/util/BlockRotation;CLOCKWISE_90:Lnet/minecraft/util/BlockRotation;
-
CLOCKWISE_180
- Mappings:
Namespace Name Mixin selector official cLbhb;c:Lbhb;intermediary field_12744Lnet/minecraft/class_2734;field_12744:Lnet/minecraft/class_2734;named CLOCKWISE_180Lnet/minecraft/util/BlockRotation;CLOCKWISE_180:Lnet/minecraft/util/BlockRotation;
-
COUNTERCLOCKWISE_90
- Mappings:
Namespace Name Mixin selector official dLbhb;d:Lbhb;intermediary field_12745Lnet/minecraft/class_2734;field_12745:Lnet/minecraft/class_2734;named COUNTERCLOCKWISE_90Lnet/minecraft/util/BlockRotation;COUNTERCLOCKWISE_90:Lnet/minecraft/util/BlockRotation;
-
-
Constructor Details
-
BlockRotation
private BlockRotation()
-
-
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
-
rotate
- Mappings:
Namespace Name Mixin selector official aLbhb;a(Lbhb;)Lbhb;intermediary method_11627Lnet/minecraft/class_2734;method_11627(Lnet/minecraft/class_2734;)Lnet/minecraft/class_2734;named rotateLnet/minecraft/util/BlockRotation;rotate(Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/util/BlockRotation;
-
rotate
- Mappings:
Namespace Name Mixin selector official aLbhb;a(Leq;)Leq;intermediary method_11628Lnet/minecraft/class_2734;method_11628(Lnet/minecraft/class_1354;)Lnet/minecraft/class_1354;named rotateLnet/minecraft/util/BlockRotation;rotate(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/math/Direction;
-
rotate
public int rotate(int rotation, int fullTurn) - Mappings:
Namespace Name Mixin selector official aLbhb;a(II)Iintermediary method_11626Lnet/minecraft/class_2734;method_11626(II)Inamed rotateLnet/minecraft/util/BlockRotation;rotate(II)I
-