Enum Class BlockRotation

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

public enum BlockRotation extends Enum<BlockRotation> implements StringIdentifiable
Mappings:
Namespace Name
named net/minecraft/util/BlockRotation
intermediary net/minecraft/class_2470
official dmm
  • Enum Constant Details

    • NONE

      public static final BlockRotation NONE
      Mappings:
      Namespace Name Mixin selector
      named NONE Lnet/minecraft/util/BlockRotation;NONE:Lnet/minecraft/util/BlockRotation;
      intermediary field_11467 Lnet/minecraft/class_2470;field_11467:Lnet/minecraft/class_2470;
      official a Ldmm;a:Ldmm;
    • CLOCKWISE_90

      public static final BlockRotation CLOCKWISE_90
      Mappings:
      Namespace Name Mixin selector
      named CLOCKWISE_90 Lnet/minecraft/util/BlockRotation;CLOCKWISE_90:Lnet/minecraft/util/BlockRotation;
      intermediary field_11463 Lnet/minecraft/class_2470;field_11463:Lnet/minecraft/class_2470;
      official b Ldmm;b:Ldmm;
    • CLOCKWISE_180

      public static final BlockRotation CLOCKWISE_180
      Mappings:
      Namespace Name Mixin selector
      named CLOCKWISE_180 Lnet/minecraft/util/BlockRotation;CLOCKWISE_180:Lnet/minecraft/util/BlockRotation;
      intermediary field_11464 Lnet/minecraft/class_2470;field_11464:Lnet/minecraft/class_2470;
      official c Ldmm;c:Ldmm;
    • COUNTERCLOCKWISE_90

      public static final BlockRotation COUNTERCLOCKWISE_90
      Mappings:
      Namespace Name Mixin selector
      named COUNTERCLOCKWISE_90 Lnet/minecraft/util/BlockRotation;COUNTERCLOCKWISE_90:Lnet/minecraft/util/BlockRotation;
      intermediary field_11465 Lnet/minecraft/class_2470;field_11465:Lnet/minecraft/class_2470;
      official d Ldmm;d:Ldmm;
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<BlockRotation> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/util/BlockRotation;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_39313 Lnet/minecraft/class_2470;field_39313:Lcom/mojang/serialization/Codec;
      official e Ldmm;e:Lcom/mojang/serialization/Codec;
    • id

      private final String id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/util/BlockRotation;id:Ljava/lang/String;
      intermediary field_39314 Lnet/minecraft/class_2470;field_39314:Ljava/lang/String;
      official f Ldmm;f:Ljava/lang/String;
    • directionTransformation

      private final DirectionTransformation directionTransformation
      Mappings:
      Namespace Name Mixin selector
      named directionTransformation Lnet/minecraft/util/BlockRotation;directionTransformation:Lnet/minecraft/util/math/DirectionTransformation;
      intermediary field_23264 Lnet/minecraft/class_2470;field_23264:Lnet/minecraft/class_4990;
      official g Ldmm;g:Lh;
  • Constructor Details

    • BlockRotation

      private BlockRotation(String id, DirectionTransformation directionTransformation)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/BlockRotation;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/util/math/DirectionTransformation;)V
      intermediary <init> Lnet/minecraft/class_2470;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_4990;)V
      official <init> Ldmm;<init>(Ljava/lang/String;ILjava/lang/String;Lh;)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
      named rotate Lnet/minecraft/util/BlockRotation;rotate(Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/util/BlockRotation;
      intermediary method_10501 Lnet/minecraft/class_2470;method_10501(Lnet/minecraft/class_2470;)Lnet/minecraft/class_2470;
      official a Ldmm;a(Ldmm;)Ldmm;
    • getDirectionTransformation

      public DirectionTransformation getDirectionTransformation()
      Mappings:
      Namespace Name Mixin selector
      named getDirectionTransformation Lnet/minecraft/util/BlockRotation;getDirectionTransformation()Lnet/minecraft/util/math/DirectionTransformation;
      intermediary method_26383 Lnet/minecraft/class_2470;method_26383()Lnet/minecraft/class_4990;
      official a Ldmm;a()Lh;
    • rotate

      public Direction rotate(Direction direction)
      Mappings:
      Namespace Name Mixin selector
      named rotate Lnet/minecraft/util/BlockRotation;rotate(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/math/Direction;
      intermediary method_10503 Lnet/minecraft/class_2470;method_10503(Lnet/minecraft/class_2350;)Lnet/minecraft/class_2350;
      official a Ldmm;a(Lji;)Lji;
    • rotate

      public int rotate(int rotation, int fullTurn)
      Mappings:
      Namespace Name Mixin selector
      named rotate Lnet/minecraft/util/BlockRotation;rotate(II)I
      intermediary method_10502 Lnet/minecraft/class_2470;method_10502(II)I
      official a Ldmm;a(II)I
    • random

      public static BlockRotation random(Random random)
      Mappings:
      Namespace Name Mixin selector
      named random Lnet/minecraft/util/BlockRotation;random(Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/util/BlockRotation;
      intermediary method_16548 Lnet/minecraft/class_2470;method_16548(Lnet/minecraft/class_5819;)Lnet/minecraft/class_2470;
      official a Ldmm;a(Layw;)Ldmm;
    • randomRotationOrder

      public static List<BlockRotation> randomRotationOrder(Random random)
      Mappings:
      Namespace Name Mixin selector
      named randomRotationOrder Lnet/minecraft/util/BlockRotation;randomRotationOrder(Lnet/minecraft/util/math/random/Random;)Ljava/util/List;
      intermediary method_16547 Lnet/minecraft/class_2470;method_16547(Lnet/minecraft/class_5819;)Ljava/util/List;
      official b Ldmm;b(Layw;)Ljava/util/List;
    • 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 Lazk;c()Ljava/lang/String;