Package net.minecraft.util
Enum Class BlockRotation
- All Implemented Interfaces:
Serializable,Comparable<BlockRotation>,Constable,StringIdentifiable
- Mappings:
Namespace Name intermediary net/minecraft/class_2470official cvwnamed net/minecraft/util/BlockRotation
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
StringIdentifiable.Codec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIdentifiable.Codec<BlockRotation>private final DirectionTransformationprivate final StringFields inherited from interface net.minecraft.util.StringIdentifiable
field_38377 -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateBlockRotation(String id, DirectionTransformation directionTransformation) -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.static BlockRotationstatic List<BlockRotation>randomRotationOrder(Random random) introtate(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 intermediary field_11467Lnet/minecraft/class_2470;field_11467:Lnet/minecraft/class_2470;official aLcvw;a:Lcvw;named NONELnet/minecraft/util/BlockRotation;NONE:Lnet/minecraft/util/BlockRotation;
-
CLOCKWISE_90
- Mappings:
Namespace Name Mixin selector intermediary field_11463Lnet/minecraft/class_2470;field_11463:Lnet/minecraft/class_2470;official bLcvw;b:Lcvw;named CLOCKWISE_90Lnet/minecraft/util/BlockRotation;CLOCKWISE_90:Lnet/minecraft/util/BlockRotation;
-
CLOCKWISE_180
- Mappings:
Namespace Name Mixin selector intermediary field_11464Lnet/minecraft/class_2470;field_11464:Lnet/minecraft/class_2470;official cLcvw;c:Lcvw;named CLOCKWISE_180Lnet/minecraft/util/BlockRotation;CLOCKWISE_180:Lnet/minecraft/util/BlockRotation;
-
COUNTERCLOCKWISE_90
- Mappings:
Namespace Name Mixin selector intermediary field_11465Lnet/minecraft/class_2470;field_11465:Lnet/minecraft/class_2470;official dLcvw;d:Lcvw;named COUNTERCLOCKWISE_90Lnet/minecraft/util/BlockRotation;COUNTERCLOCKWISE_90:Lnet/minecraft/util/BlockRotation;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector intermediary field_39313Lnet/minecraft/class_2470;field_39313:Lcom/mojang/serialization/Codec;official eLcvw;e:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/util/BlockRotation;CODEC:Lcom/mojang/serialization/Codec;
-
id
- Mappings:
Namespace Name Mixin selector intermediary field_39314Lnet/minecraft/class_2470;field_39314:Ljava/lang/String;official fLcvw;f:Ljava/lang/String;named idLnet/minecraft/util/BlockRotation;id:Ljava/lang/String;
-
directionTransformation
- Mappings:
Namespace Name Mixin selector intermediary field_23264Lnet/minecraft/class_2470;field_23264:Lnet/minecraft/class_4990;official gLcvw;g:Lh;named directionTransformationLnet/minecraft/util/BlockRotation;directionTransformation:Lnet/minecraft/util/math/DirectionTransformation;
-
-
Constructor Details
-
BlockRotation
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_2470;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_4990;)Vofficial <init>Lcvw;<init>(Ljava/lang/String;ILjava/lang/String;Lh;)Vnamed <init>Lnet/minecraft/util/BlockRotation;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/util/math/DirectionTransformation;)V
-
-
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 intermediary method_10501Lnet/minecraft/class_2470;method_10501(Lnet/minecraft/class_2470;)Lnet/minecraft/class_2470;official aLcvw;a(Lcvw;)Lcvw;named rotateLnet/minecraft/util/BlockRotation;rotate(Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/util/BlockRotation;
-
getDirectionTransformation
- Mappings:
Namespace Name Mixin selector intermediary method_26383Lnet/minecraft/class_2470;method_26383()Lnet/minecraft/class_4990;official aLcvw;a()Lh;named getDirectionTransformationLnet/minecraft/util/BlockRotation;getDirectionTransformation()Lnet/minecraft/util/math/DirectionTransformation;
-
rotate
- Mappings:
Namespace Name Mixin selector intermediary method_10503Lnet/minecraft/class_2470;method_10503(Lnet/minecraft/class_2350;)Lnet/minecraft/class_2350;official aLcvw;a(Lha;)Lha;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 intermediary method_10502Lnet/minecraft/class_2470;method_10502(II)Iofficial aLcvw;a(II)Inamed rotateLnet/minecraft/util/BlockRotation;rotate(II)I
-
random
- Mappings:
Namespace Name Mixin selector intermediary method_16548Lnet/minecraft/class_2470;method_16548(Lnet/minecraft/class_5819;)Lnet/minecraft/class_2470;official aLcvw;a(Lapf;)Lcvw;named randomLnet/minecraft/util/BlockRotation;random(Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/util/BlockRotation;
-
randomRotationOrder
- Mappings:
Namespace Name Mixin selector intermediary method_16547Lnet/minecraft/class_2470;method_16547(Lnet/minecraft/class_5819;)Ljava/util/List;official bLcvw;b(Lapf;)Ljava/util/List;named randomRotationOrderLnet/minecraft/util/BlockRotation;randomRotationOrder(Lnet/minecraft/util/math/random/Random;)Ljava/util/List;
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asStringin interfaceStringIdentifiable- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;official cLapr;c()Ljava/lang/String;named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-