Enum ItemModelGenerator.Side

java.lang.Object
java.lang.Enum<ItemModelGenerator.Side>
net.minecraft.client.render.model.json.ItemModelGenerator.Side
All Implemented Interfaces:
Serializable, Comparable<ItemModelGenerator.Side>, java.lang.constant.Constable
Enclosing class:
ItemModelGenerator

@Environment(CLIENT)
static enum ItemModelGenerator.Side
extends Enum<ItemModelGenerator.Side>
  • Enum Constant Details

  • Field Details

    • direction

      private final Direction direction
    • offsetX

      private final int offsetX
    • offsetY

      private final int offsetY
  • Constructor Details

    • Side

      private Side​(Direction direction, int offsetX, int offsetY)
  • Method Details

    • values

      public static ItemModelGenerator.Side[] 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 ItemModelGenerator.Side 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
    • getDirection

      public Direction getDirection()
    • getOffsetX

      public int getOffsetX()
    • getOffsetY

      public int getOffsetY()
    • isVertical

      private boolean isVertical()