Enum VertexFormat.IntType

java.lang.Object
java.lang.Enum<VertexFormat.IntType>
net.minecraft.client.render.VertexFormat.IntType
All Implemented Interfaces:
Serializable, Comparable<VertexFormat.IntType>, java.lang.constant.Constable
Enclosing class:
VertexFormat

@Environment(CLIENT)
public static enum VertexFormat.IntType
extends Enum<VertexFormat.IntType>
  • Enum Constant Details

  • Field Details

    • field_27374

      public final int field_27374
    • size

      public final int size
  • Constructor Details

    • IntType

      private IntType​(int int2, int size)
  • Method Details

    • values

      public static VertexFormat.IntType[] 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 VertexFormat.IntType 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
    • getSmallestTypeFor

      public static VertexFormat.IntType getSmallestTypeFor​(int number)
      Gets the smallest type in which the given number fits.
      Parameters:
      number - a number from 8 to 32 bits of memory
      Returns:
      the smallest type