Package net.minecraft.util
Enum Class BlockRotation
- All Implemented Interfaces:
Serializable,Comparable<BlockRotation>,Constable,StringIdentifiable
- Mappings:
Namespace Name named net/minecraft/util/BlockRotationintermediary net/minecraft/class_2470official drm
-
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.BasicCodec<S extends StringIdentifiable>, StringIdentifiable.EnumCodec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BlockRotation> private final DirectionTransformationstatic final IntFunction<BlockRotation> static final PacketCodec<ByteBuf, BlockRotation> private final intprivate final StringFields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateBlockRotation(int int2, String string, DirectionTransformation directionTransformation) -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.private intstatic 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 named NONELnet/minecraft/util/BlockRotation;NONE:Lnet/minecraft/util/BlockRotation;intermediary field_11467Lnet/minecraft/class_2470;field_11467:Lnet/minecraft/class_2470;official aLdrm;a:Ldrm;
-
CLOCKWISE_90
- Mappings:
Namespace Name Mixin selector named CLOCKWISE_90Lnet/minecraft/util/BlockRotation;CLOCKWISE_90:Lnet/minecraft/util/BlockRotation;intermediary field_11463Lnet/minecraft/class_2470;field_11463:Lnet/minecraft/class_2470;official bLdrm;b:Ldrm;
-
CLOCKWISE_180
- Mappings:
Namespace Name Mixin selector named CLOCKWISE_180Lnet/minecraft/util/BlockRotation;CLOCKWISE_180:Lnet/minecraft/util/BlockRotation;intermediary field_11464Lnet/minecraft/class_2470;field_11464:Lnet/minecraft/class_2470;official cLdrm;c:Ldrm;
-
COUNTERCLOCKWISE_90
- Mappings:
Namespace Name Mixin selector named COUNTERCLOCKWISE_90Lnet/minecraft/util/BlockRotation;COUNTERCLOCKWISE_90:Lnet/minecraft/util/BlockRotation;intermediary field_11465Lnet/minecraft/class_2470;field_11465:Lnet/minecraft/class_2470;official dLdrm;d:Ldrm;
-
-
Field Details
-
field_55986
- Mappings:
Namespace Name Mixin selector named field_55986Lnet/minecraft/util/BlockRotation;field_55986:Ljava/util/function/IntFunction;intermediary field_55986Lnet/minecraft/class_2470;field_55986:Ljava/util/function/IntFunction;official eLdrm;e:Ljava/util/function/IntFunction;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/util/BlockRotation;CODEC:Lcom/mojang/serialization/Codec;intermediary field_39313Lnet/minecraft/class_2470;field_39313:Lcom/mojang/serialization/Codec;official fLdrm;f:Lcom/mojang/serialization/Codec;
-
field_55987
- Mappings:
Namespace Name Mixin selector named field_55987Lnet/minecraft/util/BlockRotation;field_55987:Lnet/minecraft/network/codec/PacketCodec;intermediary field_55987Lnet/minecraft/class_2470;field_55987:Lnet/minecraft/class_9139;official gLdrm;g:Lyt;
-
field_55988
private final int field_55988- Mappings:
Namespace Name Mixin selector named field_55988Lnet/minecraft/util/BlockRotation;field_55988:Iintermediary field_55988Lnet/minecraft/class_2470;field_55988:Iofficial hLdrm;h:I
-
id
- Mappings:
Namespace Name Mixin selector named idLnet/minecraft/util/BlockRotation;id:Ljava/lang/String;intermediary field_39314Lnet/minecraft/class_2470;field_39314:Ljava/lang/String;official iLdrm;i:Ljava/lang/String;
-
directionTransformation
- Mappings:
Namespace Name Mixin selector named directionTransformationLnet/minecraft/util/BlockRotation;directionTransformation:Lnet/minecraft/util/math/DirectionTransformation;intermediary field_23264Lnet/minecraft/class_2470;field_23264:Lnet/minecraft/class_4990;official jLdrm;j:Lh;
-
-
Constructor Details
-
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 named rotateLnet/minecraft/util/BlockRotation;rotate(Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/util/BlockRotation;intermediary method_10501Lnet/minecraft/class_2470;method_10501(Lnet/minecraft/class_2470;)Lnet/minecraft/class_2470;official aLdrm;a(Ldrm;)Ldrm;
-
getDirectionTransformation
- Mappings:
Namespace Name Mixin selector named getDirectionTransformationLnet/minecraft/util/BlockRotation;getDirectionTransformation()Lnet/minecraft/util/math/DirectionTransformation;intermediary method_26383Lnet/minecraft/class_2470;method_26383()Lnet/minecraft/class_4990;official aLdrm;a()Lh;
-
rotate
- Mappings:
Namespace Name Mixin selector named rotateLnet/minecraft/util/BlockRotation;rotate(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/math/Direction;intermediary method_10503Lnet/minecraft/class_2470;method_10503(Lnet/minecraft/class_2350;)Lnet/minecraft/class_2350;official aLdrm;a(Ljo;)Ljo;
-
rotate
public int rotate(int rotation, int fullTurn) - Mappings:
Namespace Name Mixin selector named rotateLnet/minecraft/util/BlockRotation;rotate(II)Iintermediary method_10502Lnet/minecraft/class_2470;method_10502(II)Iofficial aLdrm;a(II)I
-
random
- Mappings:
Namespace Name Mixin selector named randomLnet/minecraft/util/BlockRotation;random(Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/util/BlockRotation;intermediary method_16548Lnet/minecraft/class_2470;method_16548(Lnet/minecraft/class_5819;)Lnet/minecraft/class_2470;official aLdrm;a(Lazs;)Ldrm;
-
randomRotationOrder
- Mappings:
Namespace Name Mixin selector named randomRotationOrderLnet/minecraft/util/BlockRotation;randomRotationOrder(Lnet/minecraft/util/math/random/Random;)Ljava/util/List;intermediary method_16547Lnet/minecraft/class_2470;method_16547(Lnet/minecraft/class_5819;)Ljava/util/List;official bLdrm;b(Lazs;)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 named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;official cLbag;c()Ljava/lang/String;
-
method_66710
private int method_66710()- Mappings:
Namespace Name Mixin selector named method_66710Lnet/minecraft/util/BlockRotation;method_66710()Iintermediary method_66710Lnet/minecraft/class_2470;method_66710()Iofficial bLdrm;b()I
-