Enum ModelRotation

java.lang.Object
java.lang.Enum<ModelRotation>
net.minecraft.client.render.model.ModelRotation
All Implemented Interfaces:
Serializable, Comparable<ModelRotation>, java.lang.constant.Constable, ModelBakeSettings

@Environment(CLIENT)
public enum ModelRotation
extends Enum<ModelRotation>
implements ModelBakeSettings
  • Enum Constant Details

  • Field Details

  • Constructor Details

    • ModelRotation

      private ModelRotation​(int x, int y)
  • Method Details

    • values

      public static ModelRotation[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ModelRotation valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getIndex

      private static int getIndex​(int x, int y)
    • getRotation

      public AffineTransformation getRotation()
      Specified by:
      getRotation in interface ModelBakeSettings
    • get

      public static ModelRotation get​(int x, int y)