Class BufferBuilder

All Implemented Interfaces:
BufferVertexConsumer, VertexConsumer, IForgeVertexConsumer

public class BufferBuilder extends DefaultedVertexConsumer implements BufferVertexConsumer
  • Field Details

    • GROWTH_SIZE

      private static final int GROWTH_SIZE
      See Also:
    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • buffer

      private ByteBuffer buffer
    • drawStates

      private final List<BufferBuilder.DrawState> drawStates
    • lastPoppedStateIndex

      private int lastPoppedStateIndex
    • totalRenderedBytes

      private int totalRenderedBytes
    • nextElementByte

      private int nextElementByte
    • totalUploadedBytes

      private int totalUploadedBytes
    • vertices

      private int vertices
    • currentElement

      @Nullable private VertexFormatElement currentElement
    • elementIndex

      private int elementIndex
    • format

      private VertexFormat format
    • mode

      private VertexFormat.Mode mode
    • fastFormat

      private boolean fastFormat
    • fullFormat

      private boolean fullFormat
    • building

      private boolean building
    • sortingPoints

      @Nullable private Vector3f[] sortingPoints
    • sortX

      private float sortX
    • sortY

      private float sortY
    • sortZ

      private float sortZ
    • indexOnly

      private boolean indexOnly
  • Constructor Details

    • BufferBuilder

      public BufferBuilder(int p_85664_)
  • Method Details