Enum Class BlockMirror

java.lang.Object
java.lang.Enum<BlockMirror>
net.minecraft.util.BlockMirror
All Implemented Interfaces:
Serializable, Comparable<BlockMirror>, Constable, StringIdentifiable

public enum BlockMirror extends Enum<BlockMirror> implements StringIdentifiable
Mappings:
Namespace Name
named net/minecraft/util/BlockMirror
intermediary net/minecraft/class_2415
official dpk
  • Enum Constant Details

    • NONE

      public static final BlockMirror NONE
      Mappings:
      Namespace Name Mixin selector
      named NONE Lnet/minecraft/util/BlockMirror;NONE:Lnet/minecraft/util/BlockMirror;
      intermediary field_11302 Lnet/minecraft/class_2415;field_11302:Lnet/minecraft/class_2415;
      official a Ldpk;a:Ldpk;
    • LEFT_RIGHT

      public static final BlockMirror LEFT_RIGHT
      Mappings:
      Namespace Name Mixin selector
      named LEFT_RIGHT Lnet/minecraft/util/BlockMirror;LEFT_RIGHT:Lnet/minecraft/util/BlockMirror;
      intermediary field_11300 Lnet/minecraft/class_2415;field_11300:Lnet/minecraft/class_2415;
      official b Ldpk;b:Ldpk;
    • FRONT_BACK

      public static final BlockMirror FRONT_BACK
      Mappings:
      Namespace Name Mixin selector
      named FRONT_BACK Lnet/minecraft/util/BlockMirror;FRONT_BACK:Lnet/minecraft/util/BlockMirror;
      intermediary field_11301 Lnet/minecraft/class_2415;field_11301:Lnet/minecraft/class_2415;
      official c Ldpk;c:Ldpk;
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<BlockMirror> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/util/BlockMirror;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_39311 Lnet/minecraft/class_2415;field_39311:Lcom/mojang/serialization/Codec;
      official d Ldpk;d:Lcom/mojang/serialization/Codec;
    • id

      private final String id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/util/BlockMirror;id:Ljava/lang/String;
      intermediary field_39312 Lnet/minecraft/class_2415;field_39312:Ljava/lang/String;
      official e Ldpk;e:Ljava/lang/String;
    • name

      private final Text name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/util/BlockMirror;name:Lnet/minecraft/text/Text;
      intermediary field_27883 Lnet/minecraft/class_2415;field_27883:Lnet/minecraft/class_2561;
      official f Ldpk;f:Lxv;
    • directionTransformation

      private final DirectionTransformation directionTransformation
      Mappings:
      Namespace Name Mixin selector
      named directionTransformation Lnet/minecraft/util/BlockMirror;directionTransformation:Lnet/minecraft/util/math/DirectionTransformation;
      intermediary field_23263 Lnet/minecraft/class_2415;field_23263:Lnet/minecraft/class_4990;
      official g Ldpk;g:Lh;
  • Constructor Details

    • BlockMirror

      private BlockMirror(String id, DirectionTransformation directionTransformation)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/BlockMirror;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/util/math/DirectionTransformation;)V
      intermediary <init> Lnet/minecraft/class_2415;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_4990;)V
      official <init> Ldpk;<init>(Ljava/lang/String;ILjava/lang/String;Lh;)V
  • Method Details

    • values

      public static BlockMirror[] 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

      public static BlockMirror valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • mirror

      public int mirror(int rotation, int fullTurn)
      Mappings:
      Namespace Name Mixin selector
      named mirror Lnet/minecraft/util/BlockMirror;mirror(II)I
      intermediary method_10344 Lnet/minecraft/class_2415;method_10344(II)I
      official a Ldpk;a(II)I
    • getRotation

      public BlockRotation getRotation(Direction direction)
      Mappings:
      Namespace Name Mixin selector
      named getRotation Lnet/minecraft/util/BlockMirror;getRotation(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/BlockRotation;
      intermediary method_10345 Lnet/minecraft/class_2415;method_10345(Lnet/minecraft/class_2350;)Lnet/minecraft/class_2470;
      official a Ldpk;a(Ljm;)Ldrb;
    • apply

      public Direction apply(Direction direction)
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/util/BlockMirror;apply(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/math/Direction;
      intermediary method_10343 Lnet/minecraft/class_2415;method_10343(Lnet/minecraft/class_2350;)Lnet/minecraft/class_2350;
      official b Ldpk;b(Ljm;)Ljm;
    • getDirectionTransformation

      public DirectionTransformation getDirectionTransformation()
      Mappings:
      Namespace Name Mixin selector
      named getDirectionTransformation Lnet/minecraft/util/BlockMirror;getDirectionTransformation()Lnet/minecraft/util/math/DirectionTransformation;
      intermediary method_26380 Lnet/minecraft/class_2415;method_26380()Lnet/minecraft/class_4990;
      official a Ldpk;a()Lh;
    • getName

      public Text getName()
      Mappings:
      Namespace Name Mixin selector
      named getName Lnet/minecraft/util/BlockMirror;getName()Lnet/minecraft/text/Text;
      intermediary method_32354 Lnet/minecraft/class_2415;method_32354()Lnet/minecraft/class_2561;
      official b Ldpk;b()Lxv;
    • asString

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      Returns:
      the unique string representation of the enum, used for serialization
      Mappings:
      Namespace Name Mixin selector
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      official c Lbba;c()Ljava/lang/String;