Enum Class VertexFormatElement.Type

java.lang.Object
java.lang.Enum<VertexFormatElement.Type>
com.mojang.blaze3d.vertex.VertexFormatElement.Type
All Implemented Interfaces:
Serializable, Comparable<VertexFormatElement.Type>, Constable
Enclosing class:
VertexFormatElement

@Environment(CLIENT) public static enum VertexFormatElement.Type extends Enum<VertexFormatElement.Type>
Mappings:
Namespace Name
named com/mojang/blaze3d/vertex/VertexFormatElement$Type
intermediary com/mojang/blaze3d/vertex/VertexFormatElement$Type
official com/mojang/blaze3d/vertex/VertexFormatElement$Type
  • Enum Constant Details

  • Field Details

    • size

      private final int size
    • name

      private final String name
  • Constructor Details

    • Type

      private Type(int size, String name)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lcom/mojang/blaze3d/vertex/VertexFormatElement$Type;<init>(Ljava/lang/String;IILjava/lang/String;)V
      intermediary <init> Lcom/mojang/blaze3d/vertex/VertexFormatElement$Type;<init>(Ljava/lang/String;IILjava/lang/String;)V
      official <init> Lcom/mojang/blaze3d/vertex/VertexFormatElement$Type;<init>(Ljava/lang/String;IILjava/lang/String;)V
  • Method Details

    • values

      public static VertexFormatElement.Type[] 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 VertexFormatElement.Type 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
    • size

      public int size()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<VertexFormatElement.Type>