Package net.minecraft.util
Enum Class BlockMirror
- All Implemented Interfaces:
Serializable
,Comparable<BlockMirror>
,Constable
,StringIdentifiable
- Mappings:
Namespace Name official dbm
intermediary net/minecraft/class_2415
named net/minecraft/util/BlockMirror
-
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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BlockMirror>
private final DirectionTransformation
private final String
private final Text
Fields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD
-
Constructor Summary
ModifierConstructorDescriptionprivate
BlockMirror
(String id, DirectionTransformation directionTransformation) -
Method Summary
Modifier and TypeMethodDescriptionasString()
Returns the unique string representation of the enum, used for serialization.getName()
getRotation
(Direction direction) int
mirror
(int rotation, int fullTurn) static BlockMirror
Returns 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 official a
Ldbm;a:Ldbm;
intermediary field_11302
Lnet/minecraft/class_2415;field_11302:Lnet/minecraft/class_2415;
named NONE
Lnet/minecraft/util/BlockMirror;NONE:Lnet/minecraft/util/BlockMirror;
-
LEFT_RIGHT
- Mappings:
Namespace Name Mixin selector official b
Ldbm;b:Ldbm;
intermediary field_11300
Lnet/minecraft/class_2415;field_11300:Lnet/minecraft/class_2415;
named LEFT_RIGHT
Lnet/minecraft/util/BlockMirror;LEFT_RIGHT:Lnet/minecraft/util/BlockMirror;
-
FRONT_BACK
- Mappings:
Namespace Name Mixin selector official c
Ldbm;c:Ldbm;
intermediary field_11301
Lnet/minecraft/class_2415;field_11301:Lnet/minecraft/class_2415;
named FRONT_BACK
Lnet/minecraft/util/BlockMirror;FRONT_BACK:Lnet/minecraft/util/BlockMirror;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official d
Ldbm;d:Lcom/mojang/serialization/Codec;
intermediary field_39311
Lnet/minecraft/class_2415;field_39311:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/util/BlockMirror;CODEC:Lcom/mojang/serialization/Codec;
-
id
- Mappings:
Namespace Name Mixin selector official e
Ldbm;e:Ljava/lang/String;
intermediary field_39312
Lnet/minecraft/class_2415;field_39312:Ljava/lang/String;
named id
Lnet/minecraft/util/BlockMirror;id:Ljava/lang/String;
-
name
- Mappings:
Namespace Name Mixin selector official f
Ldbm;f:Lvf;
intermediary field_27883
Lnet/minecraft/class_2415;field_27883:Lnet/minecraft/class_2561;
named name
Lnet/minecraft/util/BlockMirror;name:Lnet/minecraft/text/Text;
-
directionTransformation
- Mappings:
Namespace Name Mixin selector official g
Ldbm;g:Lh;
intermediary field_23263
Lnet/minecraft/class_2415;field_23263:Lnet/minecraft/class_4990;
named directionTransformation
Lnet/minecraft/util/BlockMirror;directionTransformation:Lnet/minecraft/util/math/DirectionTransformation;
-
-
Constructor Details
-
BlockMirror
- Mappings:
Namespace Name Mixin selector official <init>
Ldbm;<init>(Ljava/lang/String;ILjava/lang/String;Lh;)V
intermediary <init>
Lnet/minecraft/class_2415;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_4990;)V
named <init>
Lnet/minecraft/util/BlockMirror;<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
-
mirror
public int mirror(int rotation, int fullTurn) - Mappings:
Namespace Name Mixin selector official a
Ldbm;a(II)I
intermediary method_10344
Lnet/minecraft/class_2415;method_10344(II)I
named mirror
Lnet/minecraft/util/BlockMirror;mirror(II)I
-
getRotation
- Mappings:
Namespace Name Mixin selector official a
Ldbm;a(Lic;)Lddc;
intermediary method_10345
Lnet/minecraft/class_2415;method_10345(Lnet/minecraft/class_2350;)Lnet/minecraft/class_2470;
named getRotation
Lnet/minecraft/util/BlockMirror;getRotation(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/BlockRotation;
-
apply
- Mappings:
Namespace Name Mixin selector official b
Ldbm;b(Lic;)Lic;
intermediary method_10343
Lnet/minecraft/class_2415;method_10343(Lnet/minecraft/class_2350;)Lnet/minecraft/class_2350;
named apply
Lnet/minecraft/util/BlockMirror;apply(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/math/Direction;
-
getDirectionTransformation
- Mappings:
Namespace Name Mixin selector official a
Ldbm;a()Lh;
intermediary method_26380
Lnet/minecraft/class_2415;method_26380()Lnet/minecraft/class_4990;
named getDirectionTransformation
Lnet/minecraft/util/BlockMirror;getDirectionTransformation()Lnet/minecraft/util/math/DirectionTransformation;
-
getName
- Mappings:
Namespace Name Mixin selector official b
Ldbm;b()Lvf;
intermediary method_32354
Lnet/minecraft/class_2415;method_32354()Lnet/minecraft/class_2561;
named getName
Lnet/minecraft/util/BlockMirror;getName()Lnet/minecraft/text/Text;
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asString
in interfaceStringIdentifiable
- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector official c
Lavk;c()Ljava/lang/String;
intermediary method_15434
Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
named asString
Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-