Enum CubeFace

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

@Environment(CLIENT)
public enum CubeFace
extends Enum<CubeFace>
  • Enum Constant Details

    • DOWN

      public static final CubeFace DOWN
    • UP

      public static final CubeFace UP
    • NORTH

      public static final CubeFace NORTH
    • SOUTH

      public static final CubeFace SOUTH
    • WEST

      public static final CubeFace WEST
    • EAST

      public static final CubeFace EAST
  • Field Details

    • DIRECTION_LOOKUP

      private static final CubeFace[] DIRECTION_LOOKUP
    • corners

      private final CubeFace.Corner[] corners
  • Constructor Details

  • Method Details

    • values

      public static CubeFace[] 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 CubeFace 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
    • getFace

      public static CubeFace getFace​(Direction direction)
    • getCorner

      public CubeFace.Corner getCorner​(int corner)