Class VertexFormat

java.lang.Object
com.mojang.blaze3d.vertex.VertexFormat

public class VertexFormat extends Object
  • 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
  • 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()
    • getElementAttributeNames

      public List<String> getElementAttributeNames()
    • getOffsetsByElement

      public int[] getOffsetsByElement()
    • getOffset

      public int getOffset(VertexFormatElement p_350713_)
    • contains

      public boolean contains(VertexFormatElement p_351022_)
    • getElementsMask

      public int getElementsMask()
    • getElementName

      public String getElementName(VertexFormatElement p_350904_)
    • 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()
    • hasPosition

      public boolean hasPosition()
    • hasNormal

      public boolean hasNormal()
    • hasColor

      public boolean hasColor()
    • hasUV

      public boolean hasUV(int which)