Class VertexFormatElement

java.lang.Object
net.minecraft.client.render.VertexFormatElement

@Environment(CLIENT)
public class VertexFormatElement
extends Object
Represents a singular field within a larger vertex format.

This element comprises a data type, a field length, and the corresponding GL element type to which this field corresponds.

  • Field Details

    • LOGGER

      private static final Logger LOGGER
    • dataType

      private final VertexFormatElement.Format dataType
    • type

      private final VertexFormatElement.Type type
    • textureIndex

      private final int textureIndex
    • length

      private final int length
    • byteLength

      private final int byteLength
      The total length of this element (in bytes).
  • Constructor Details

  • Method Details

    • isValidType

      private boolean isValidType​(int index, VertexFormatElement.Type type)
    • getDataType

      public final VertexFormatElement.Format getDataType()
    • getType

      public final VertexFormatElement.Type getType()
    • getTextureIndex

      public final int getTextureIndex()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getByteLength

      public final int getByteLength()
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • startDrawing

      public void startDrawing​(long pointer, int stride)
    • endDrawing

      public void endDrawing()