Package net.minecraft.util
Enum Class BlockMirror
- All Implemented Interfaces:
Serializable,Comparable<BlockMirror>,Constable,StringIdentifiable
- Mappings:
Namespace Name named net/minecraft/util/BlockMirrorintermediary net/minecraft/class_2415official dsr
-
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<BlockMirror> private final DirectionTransformationstatic final com.mojang.serialization.Codec<BlockMirror> Deprecated.private final Stringprivate final TextFields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateBlockMirror(String id, DirectionTransformation directionTransformation) -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.getName()getRotation(Direction direction) intmirror(int rotation, int fullTurn) static BlockMirrorReturns the enum constant of this class with the specified name.static BlockMirror[]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/BlockMirror;NONE:Lnet/minecraft/util/BlockMirror;intermediary field_11302Lnet/minecraft/class_2415;field_11302:Lnet/minecraft/class_2415;official aLdsr;a:Ldsr;
-
LEFT_RIGHT
- Mappings:
Namespace Name Mixin selector named LEFT_RIGHTLnet/minecraft/util/BlockMirror;LEFT_RIGHT:Lnet/minecraft/util/BlockMirror;intermediary field_11300Lnet/minecraft/class_2415;field_11300:Lnet/minecraft/class_2415;official bLdsr;b:Ldsr;
-
FRONT_BACK
- Mappings:
Namespace Name Mixin selector named FRONT_BACKLnet/minecraft/util/BlockMirror;FRONT_BACK:Lnet/minecraft/util/BlockMirror;intermediary field_11301Lnet/minecraft/class_2415;field_11301:Lnet/minecraft/class_2415;official cLdsr;c:Ldsr;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/util/BlockMirror;CODEC:Lcom/mojang/serialization/Codec;intermediary field_39311Lnet/minecraft/class_2415;field_39311:Lcom/mojang/serialization/Codec;official dLdsr;d:Lcom/mojang/serialization/Codec;
-
ENUM_NAME_CODEC
Deprecated.- Mappings:
Namespace Name Mixin selector named ENUM_NAME_CODECLnet/minecraft/util/BlockMirror;ENUM_NAME_CODEC:Lcom/mojang/serialization/Codec;intermediary field_56669Lnet/minecraft/class_2415;field_56669:Lcom/mojang/serialization/Codec;official eLdsr;e:Lcom/mojang/serialization/Codec;
-
id
- Mappings:
Namespace Name Mixin selector named idLnet/minecraft/util/BlockMirror;id:Ljava/lang/String;intermediary field_39312Lnet/minecraft/class_2415;field_39312:Ljava/lang/String;official fLdsr;f:Ljava/lang/String;
-
name
- Mappings:
Namespace Name Mixin selector named nameLnet/minecraft/util/BlockMirror;name:Lnet/minecraft/text/Text;intermediary field_27883Lnet/minecraft/class_2415;field_27883:Lnet/minecraft/class_2561;official gLdsr;g:Lxg;
-
directionTransformation
- Mappings:
Namespace Name Mixin selector named directionTransformationLnet/minecraft/util/BlockMirror;directionTransformation:Lnet/minecraft/util/math/DirectionTransformation;intermediary field_23263Lnet/minecraft/class_2415;field_23263:Lnet/minecraft/class_4990;official hLdsr;h:Lh;
-
-
Constructor Details
-
BlockMirror
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/util/BlockMirror;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/util/math/DirectionTransformation;)Vintermediary <init>Lnet/minecraft/class_2415;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_4990;)Vofficial <init>Ldsr;<init>(Ljava/lang/String;ILjava/lang/String;Lh;)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
-
mirror
public int mirror(int rotation, int fullTurn) - Mappings:
Namespace Name Mixin selector named mirrorLnet/minecraft/util/BlockMirror;mirror(II)Iintermediary method_10344Lnet/minecraft/class_2415;method_10344(II)Iofficial aLdsr;a(II)I
-
getRotation
- Mappings:
Namespace Name Mixin selector named getRotationLnet/minecraft/util/BlockMirror;getRotation(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/BlockRotation;intermediary method_10345Lnet/minecraft/class_2415;method_10345(Lnet/minecraft/class_2350;)Lnet/minecraft/class_2470;official aLdsr;a(Ljc;)Ldui;
-
apply
- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/util/BlockMirror;apply(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/math/Direction;intermediary method_10343Lnet/minecraft/class_2415;method_10343(Lnet/minecraft/class_2350;)Lnet/minecraft/class_2350;official bLdsr;b(Ljc;)Ljc;
-
getDirectionTransformation
- Mappings:
Namespace Name Mixin selector named getDirectionTransformationLnet/minecraft/util/BlockMirror;getDirectionTransformation()Lnet/minecraft/util/math/DirectionTransformation;intermediary method_26380Lnet/minecraft/class_2415;method_26380()Lnet/minecraft/class_4990;official aLdsr;a()Lh;
-
getName
- Mappings:
Namespace Name Mixin selector named getNameLnet/minecraft/util/BlockMirror;getName()Lnet/minecraft/text/Text;intermediary method_32354Lnet/minecraft/class_2415;method_32354()Lnet/minecraft/class_2561;official bLdsr;b()Lxg;
-
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 cLbax;c()Ljava/lang/String;
-