Class VertexFormat

java.lang.Object
net.minecraft.client.renderer.vertex.VertexFormat

public class VertexFormat extends Object
  • Field Details

    • elements

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

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

      private final int vertexSize
  • Constructor Details

    • VertexFormat

      public VertexFormat(com.google.common.collect.ImmutableList<VertexFormatElement> p_i225911_1_)
  • 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()
    • equals

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

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

      public void setupBufferState(long p_227892_1_)
    • clearBufferState

      public void clearBufferState()
    • getOffset

      public int getOffset(int index)
    • hasPosition

      public boolean hasPosition()
    • hasNormal

      public boolean hasNormal()
    • hasColor

      public boolean hasColor()
    • hasUV

      public boolean hasUV(int which)