Class VertexFormat

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

public class VertexFormat extends Object implements IForgeVertexFormat
  • Field Details

    • elements

      private final com.google.common.collect.ImmutableList<VertexFormatElement> elements
    • elementMapping

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

      private final it.unimi.dsi.fastutil.ints.IntList offsets
    • vertexSize

      private final int vertexSize
    • immediateDrawVertexBuffer

      @Nullable private VertexBuffer immediateDrawVertexBuffer
  • Constructor Details

  • Method Details

    • toString

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

      public int getIntegerSize()
    • getVertexSize

      public int getVertexSize()
    • getElements

      public com.google.common.collect.ImmutableList<VertexFormatElement> getElements()
      Specified by:
      getElements in interface IForgeVertexFormat
    • getElementAttributeNames

      public com.google.common.collect.ImmutableList<String> getElementAttributeNames()
    • 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)