Enum Class Rotation

java.lang.Object
java.lang.Enum<Rotation>
net.minecraft.world.level.block.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

  • 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_55953_)
    • rotation

      public OctahedralGroup rotation()
    • rotate

      public Direction rotate(Direction p_55955_)
    • rotate

      public int rotate(int p_55950_, int p_55951_)
    • getRandom

      public static Rotation getRandom(Random p_55957_)
    • getShuffled

      public static List<Rotation> getShuffled(Random p_55959_)