Class BuiltBuffer

java.lang.Object
net.minecraft.client.render.BuiltBuffer
All Implemented Interfaces:
AutoCloseable

@Environment(CLIENT) public class BuiltBuffer extends Object implements AutoCloseable
Mappings:
Namespace Name
named net/minecraft/client/render/BuiltBuffer
intermediary net/minecraft/class_9801
official fgq
  • Field Details

    • buffer

      private final BufferAllocator.CloseableBuffer buffer
      Mappings:
      Namespace Name Mixin selector
      named buffer Lnet/minecraft/client/render/BuiltBuffer;buffer:Lnet/minecraft/client/util/BufferAllocator$CloseableBuffer;
      intermediary field_52093 Lnet/minecraft/class_9801;field_52093:Lnet/minecraft/class_9799$class_9800;
      official a Lfgq;a:Lfgo$a;
    • sortedBuffer

      Mappings:
      Namespace Name Mixin selector
      named sortedBuffer Lnet/minecraft/client/render/BuiltBuffer;sortedBuffer:Lnet/minecraft/client/util/BufferAllocator$CloseableBuffer;
      intermediary field_52094 Lnet/minecraft/class_9801;field_52094:Lnet/minecraft/class_9799$class_9800;
      official b Lfgq;b:Lfgo$a;
    • drawParameters

      private final BuiltBuffer.DrawParameters drawParameters
      Mappings:
      Namespace Name Mixin selector
      named drawParameters Lnet/minecraft/client/render/BuiltBuffer;drawParameters:Lnet/minecraft/client/render/BuiltBuffer$DrawParameters;
      intermediary field_52095 Lnet/minecraft/class_9801;field_52095:Lnet/minecraft/class_9801$class_4574;
      official c Lfgq;c:Lfgq$a;
  • Constructor Details

    • BuiltBuffer

      public BuiltBuffer(BufferAllocator.CloseableBuffer buffer, BuiltBuffer.DrawParameters drawParameters)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/BuiltBuffer;<init>(Lnet/minecraft/client/util/BufferAllocator$CloseableBuffer;Lnet/minecraft/client/render/BuiltBuffer$DrawParameters;)V
      intermediary <init> Lnet/minecraft/class_9801;<init>(Lnet/minecraft/class_9799$class_9800;Lnet/minecraft/class_9801$class_4574;)V
      official <init> Lfgq;<init>(Lfgo$a;Lfgq$a;)V
  • Method Details

    • collectCentroids

      private static Vector3f[] collectCentroids(ByteBuffer buf, int vertexCount, VertexFormat format)
      Mappings:
      Namespace Name Mixin selector
      named collectCentroids Lnet/minecraft/client/render/BuiltBuffer;collectCentroids(Ljava/nio/ByteBuffer;ILnet/minecraft/client/render/VertexFormat;)[Lorg/joml/Vector3f;
      intermediary method_60820 Lnet/minecraft/class_9801;method_60820(Ljava/nio/ByteBuffer;ILnet/minecraft/class_293;)[Lorg/joml/Vector3f;
      official a Lfgq;a(Ljava/nio/ByteBuffer;ILfgw;)[Lorg/joml/Vector3f;
    • getBuffer

      public ByteBuffer getBuffer()
      Mappings:
      Namespace Name Mixin selector
      named getBuffer Lnet/minecraft/client/render/BuiltBuffer;getBuffer()Ljava/nio/ByteBuffer;
      intermediary method_60818 Lnet/minecraft/class_9801;method_60818()Ljava/nio/ByteBuffer;
      official a Lfgq;a()Ljava/nio/ByteBuffer;
    • getSortedBuffer

      @Nullable public @Nullable ByteBuffer getSortedBuffer()
      Mappings:
      Namespace Name Mixin selector
      named getSortedBuffer Lnet/minecraft/client/render/BuiltBuffer;getSortedBuffer()Ljava/nio/ByteBuffer;
      intermediary method_60821 Lnet/minecraft/class_9801;method_60821()Ljava/nio/ByteBuffer;
      official b Lfgq;b()Ljava/nio/ByteBuffer;
    • getDrawParameters

      public BuiltBuffer.DrawParameters getDrawParameters()
      Mappings:
      Namespace Name Mixin selector
      named getDrawParameters Lnet/minecraft/client/render/BuiltBuffer;getDrawParameters()Lnet/minecraft/client/render/BuiltBuffer$DrawParameters;
      intermediary method_60822 Lnet/minecraft/class_9801;method_60822()Lnet/minecraft/class_9801$class_4574;
      official c Lfgq;c()Lfgq$a;
    • sortQuads

      @Nullable public @Nullable BuiltBuffer.SortState sortQuads(BufferAllocator allocator, VertexSorter sorter)
      Mappings:
      Namespace Name Mixin selector
      named sortQuads Lnet/minecraft/client/render/BuiltBuffer;sortQuads(Lnet/minecraft/client/util/BufferAllocator;Lcom/mojang/blaze3d/systems/VertexSorter;)Lnet/minecraft/client/render/BuiltBuffer$SortState;
      intermediary method_60819 Lnet/minecraft/class_9801;method_60819(Lnet/minecraft/class_9799;Lnet/minecraft/class_8251;)Lnet/minecraft/class_9801$class_9802;
      official a Lfgq;a(Lfgo;Lfgz;)Lfgq$b;
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable