Package net.minecraft.util
Enum BlockMirror
- All Implemented Interfaces:
Serializable,Comparable<BlockMirror>,java.lang.constant.Constable
public enum BlockMirror extends Enum<BlockMirror>
- Mappings:
Namespace Name official cbbintermediary net/minecraft/class_2415named net/minecraft/util/BlockMirror
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description FRONT_BACKLEFT_RIGHTNONE -
Field Summary
Fields Modifier and Type Field Description private DirectionTransformationdirectionTransformationprivate Textname -
Constructor Summary
Constructors Modifier Constructor Description privateBlockMirror(Text name, DirectionTransformation directionTransformation) -
Method Summary
Modifier and Type Method Description Directionapply(Direction direction)DirectionTransformationgetDirectionTransformation()TextgetName()BlockRotationgetRotation(Direction direction)intmirror(int rotation, int fullTurn)static BlockMirrorvalueOf(String name)Returns the enum constant of this type with the specified name.static BlockMirror[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
- Mappings:
Namespace Name Mixin selector official aLcbb;a:Lcbb;intermediary field_11302Lnet/minecraft/class_2415;field_11302:Lnet/minecraft/class_2415;named NONELnet/minecraft/util/BlockMirror;NONE:Lnet/minecraft/util/BlockMirror;
-
LEFT_RIGHT
- Mappings:
Namespace Name Mixin selector official bLcbb;b:Lcbb;intermediary field_11300Lnet/minecraft/class_2415;field_11300:Lnet/minecraft/class_2415;named LEFT_RIGHTLnet/minecraft/util/BlockMirror;LEFT_RIGHT:Lnet/minecraft/util/BlockMirror;
-
FRONT_BACK
- Mappings:
Namespace Name Mixin selector official cLcbb;c:Lcbb;intermediary field_11301Lnet/minecraft/class_2415;field_11301:Lnet/minecraft/class_2415;named FRONT_BACKLnet/minecraft/util/BlockMirror;FRONT_BACK:Lnet/minecraft/util/BlockMirror;
-
-
Field Details
-
name
- Mappings:
Namespace Name Mixin selector official dLcbb;d:Loi;intermediary field_27883Lnet/minecraft/class_2415;field_27883:Lnet/minecraft/class_2561;named nameLnet/minecraft/util/BlockMirror;name:Lnet/minecraft/text/Text;
-
directionTransformation
- Mappings:
Namespace Name Mixin selector official eLcbb;e:Lc;intermediary field_23263Lnet/minecraft/class_2415;field_23263:Lnet/minecraft/class_4990;named directionTransformationLnet/minecraft/util/BlockMirror;directionTransformation:Lnet/minecraft/util/math/DirectionTransformation;
-
-
Constructor Details
-
BlockMirror
- Mappings:
Namespace Name Mixin selector official <init>Lcbb;<init>(Ljava/lang/String;ILoi;Lc;)Vintermediary <init>Lnet/minecraft/class_2415;<init>(Ljava/lang/String;ILnet/minecraft/class_2561;Lnet/minecraft/class_4990;)Vnamed <init>Lnet/minecraft/util/BlockMirror;<init>(Ljava/lang/String;ILnet/minecraft/text/Text;Lnet/minecraft/util/math/DirectionTransformation;)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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 official aLcbb;a(II)Iintermediary method_10344Lnet/minecraft/class_2415;method_10344(II)Inamed mirrorLnet/minecraft/util/BlockMirror;mirror(II)I
-
getRotation
- Mappings:
Namespace Name Mixin selector official aLcbb;a(Lgc;)Lccm;intermediary method_10345Lnet/minecraft/class_2415;method_10345(Lnet/minecraft/class_2350;)Lnet/minecraft/class_2470;named getRotationLnet/minecraft/util/BlockMirror;getRotation(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/BlockRotation;
-
apply
- Mappings:
Namespace Name Mixin selector official bLcbb;b(Lgc;)Lgc;intermediary method_10343Lnet/minecraft/class_2415;method_10343(Lnet/minecraft/class_2350;)Lnet/minecraft/class_2350;named applyLnet/minecraft/util/BlockMirror;apply(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/math/Direction;
-
getDirectionTransformation
- Mappings:
Namespace Name Mixin selector official aLcbb;a()Lc;intermediary method_26380Lnet/minecraft/class_2415;method_26380()Lnet/minecraft/class_4990;named getDirectionTransformationLnet/minecraft/util/BlockMirror;getDirectionTransformation()Lnet/minecraft/util/math/DirectionTransformation;
-
getName
- Mappings:
Namespace Name Mixin selector official bLcbb;b()Loi;intermediary method_32354Lnet/minecraft/class_2415;method_32354()Lnet/minecraft/class_2561;named getNameLnet/minecraft/util/BlockMirror;getName()Lnet/minecraft/text/Text;
-