Class VertexFormat

java.lang.Object
com.mojang.blaze3d.vertex.VertexFormat
All Implemented Interfaces:
IForgeVertexFormat

public class VertexFormat extends Object implements IForgeVertexFormat
  • Field Details

    • UNKNOWN_ELEMENT

      public static final int UNKNOWN_ELEMENT
      See Also:
    • elements

      private final List<VertexFormatElement> elements
    • names

      private final List<String> names
    • vertexSize

      private final int vertexSize
    • elementsMask

      private final int elementsMask
    • offsetsByElement

      private final int[] offsetsByElement
    • immediateDrawVertexBuffer

      @Nullable private VertexBuffer immediateDrawVertexBuffer
    • elementMapping

      private final com.google.common.collect.ImmutableMap<String,VertexFormatElement> elementMapping
  • Constructor Details

  • Method Details

    • builder

      public static VertexFormat.Builder builder()
    • toString

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

      public int getVertexSize()
    • getElements

      public List<VertexFormatElement> getElements()
      Specified by:
      getElements in interface IForgeVertexFormat
    • getElementAttributeNames

      public List<String> getElementAttributeNames()
    • getOffsetsByElement

      public int[] getOffsetsByElement()
    • getOffset

      public int getOffset(VertexFormatElement p_342517_)
    • contains

      public boolean contains(VertexFormatElement p_345196_)
    • getElementsMask

      public int getElementsMask()
    • getElementName

      public String getElementName(VertexFormatElement p_345336_)
    • equals

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

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

      public void setupBufferState()
    • _setupBufferState

      private void _setupBufferState()
    • clearBufferState

      public void clearBufferState()
    • _clearBufferState

      private void _clearBufferState()
    • getImmediateDrawVertexBuffer

      public VertexBuffer getImmediateDrawVertexBuffer()
    • getElementMapping

      public com.google.common.collect.ImmutableMap<String,VertexFormatElement> getElementMapping()
    • getOffset

      public int getOffset(int index)