Enum Class BlockRotation

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

public enum BlockRotation extends Enum<BlockRotation>
Mappings:
Namespace Name
official aqi
intermediary net/minecraft/class_2734
named net/minecraft/util/BlockRotation
  • Enum Constant Details

    • NONE

      public static final BlockRotation NONE
      Mappings:
      Namespace Name Mixin selector
      official a Laqi;a:Laqi;
      intermediary field_12742 Lnet/minecraft/class_2734;field_12742:Lnet/minecraft/class_2734;
      named NONE Lnet/minecraft/util/BlockRotation;NONE:Lnet/minecraft/util/BlockRotation;
    • CLOCKWISE_90

      public static final BlockRotation CLOCKWISE_90
      Mappings:
      Namespace Name Mixin selector
      official b Laqi;b:Laqi;
      intermediary field_12743 Lnet/minecraft/class_2734;field_12743:Lnet/minecraft/class_2734;
      named CLOCKWISE_90 Lnet/minecraft/util/BlockRotation;CLOCKWISE_90:Lnet/minecraft/util/BlockRotation;
    • CLOCKWISE_180

      public static final BlockRotation CLOCKWISE_180
      Mappings:
      Namespace Name Mixin selector
      official c Laqi;c:Laqi;
      intermediary field_12744 Lnet/minecraft/class_2734;field_12744:Lnet/minecraft/class_2734;
      named CLOCKWISE_180 Lnet/minecraft/util/BlockRotation;CLOCKWISE_180:Lnet/minecraft/util/BlockRotation;
    • COUNTERCLOCKWISE_90

      public static final BlockRotation COUNTERCLOCKWISE_90
      Mappings:
      Namespace Name Mixin selector
      official d Laqi;d:Laqi;
      intermediary field_12745 Lnet/minecraft/class_2734;field_12745:Lnet/minecraft/class_2734;
      named COUNTERCLOCKWISE_90 Lnet/minecraft/util/BlockRotation;COUNTERCLOCKWISE_90:Lnet/minecraft/util/BlockRotation;
  • Field Details

    • NAMES

      private static final String[] NAMES
      Mappings:
      Namespace Name Mixin selector
      official f Laqi;f:[Ljava/lang/String;
      intermediary field_12747 Lnet/minecraft/class_2734;field_12747:[Ljava/lang/String;
      named NAMES Lnet/minecraft/util/BlockRotation;NAMES:[Ljava/lang/String;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official e Laqi;e:Ljava/lang/String;
      intermediary field_12746 Lnet/minecraft/class_2734;field_12746:Ljava/lang/String;
      named name Lnet/minecraft/util/BlockRotation;name:Ljava/lang/String;
  • Constructor Details

    • BlockRotation

      private BlockRotation(String name)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laqi;<init>(Ljava/lang/String;ILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_2734;<init>(Ljava/lang/String;ILjava/lang/String;)V
      named <init> Lnet/minecraft/util/BlockRotation;<init>(Ljava/lang/String;ILjava/lang/String;)V
  • Method Details

    • values

      public static BlockRotation[] 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 BlockRotation 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
    • rotate

      public BlockRotation rotate(BlockRotation rotation)
      Mappings:
      Namespace Name Mixin selector
      official a Laqi;a(Laqi;)Laqi;
      intermediary method_11627 Lnet/minecraft/class_2734;method_11627(Lnet/minecraft/class_2734;)Lnet/minecraft/class_2734;
      named rotate Lnet/minecraft/util/BlockRotation;rotate(Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/util/BlockRotation;
    • rotate

      public Direction rotate(Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Laqi;a(Lcv;)Lcv;
      intermediary method_11628 Lnet/minecraft/class_2734;method_11628(Lnet/minecraft/class_1354;)Lnet/minecraft/class_1354;
      named rotate Lnet/minecraft/util/BlockRotation;rotate(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/math/Direction;
    • rotate

      public int rotate(int rotation, int fullTurn)
      Mappings:
      Namespace Name Mixin selector
      official a Laqi;a(II)I
      intermediary method_11626 Lnet/minecraft/class_2734;method_11626(II)I
      named rotate Lnet/minecraft/util/BlockRotation;rotate(II)I