Enum Class Rotation

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

public enum Rotation extends Enum<Rotation>
  • Enum Constant Details

    • NONE

      public static final Rotation NONE
    • CLOCKWISE_90

      public static final Rotation CLOCKWISE_90
    • CLOCKWISE_180

      public static final Rotation CLOCKWISE_180
    • COUNTERCLOCKWISE_90

      public static final Rotation COUNTERCLOCKWISE_90
  • Field Details

  • Constructor Details

    • Rotation

      private Rotation(Orientation p_i231796_3_)
  • Method Details

    • values

      public static Rotation[] 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 Rotation 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
    • getRotated

      public Rotation getRotated(Rotation p_185830_1_)
    • rotation

      public Orientation rotation()
    • rotate

      public Direction rotate(Direction p_185831_1_)
    • rotate

      public int rotate(int p_185833_1_, int p_185833_2_)
    • getRandom

      public static Rotation getRandom(Random p_222466_0_)
    • getShuffled

      public static List<Rotation> getShuffled(Random p_222467_0_)