Class ChunkBuilder

java.lang.Object
net.minecraft.client.render.chunk.ChunkBuilder

@Environment(CLIENT) public class ChunkBuilder extends Object
Mappings:
Namespace Name
named net/minecraft/client/render/chunk/ChunkBuilder
intermediary net/minecraft/class_846
official gox
  • Field Details

    • scheduler

      private final ChunkRenderTaskScheduler scheduler
      Mappings:
      Namespace Name Mixin selector
      named scheduler Lnet/minecraft/client/render/chunk/ChunkBuilder;scheduler:Lnet/minecraft/client/render/chunk/ChunkRenderTaskScheduler;
      intermediary field_53957 Lnet/minecraft/class_846;field_53957:Lnet/minecraft/class_10160;
      official a Lgox;a:Lgos;
    • uploadQueue

      private final Queue<Runnable> uploadQueue
      Mappings:
      Namespace Name Mixin selector
      named uploadQueue Lnet/minecraft/client/render/chunk/ChunkBuilder;uploadQueue:Ljava/util/Queue;
      intermediary field_4443 Lnet/minecraft/class_846;field_4443:Ljava/util/Queue;
      official b Lgox;b:Ljava/util/Queue;
    • buffers

      Mappings:
      Namespace Name Mixin selector
      named buffers Lnet/minecraft/client/render/chunk/ChunkBuilder;buffers:Lnet/minecraft/client/render/chunk/BlockBufferAllocatorStorage;
      intermediary field_20828 Lnet/minecraft/class_846;field_20828:Lnet/minecraft/class_750;
      official c Lgox;c:Lglx;
    • buffersPool

      private final BlockBufferBuilderPool buffersPool
      Mappings:
      Namespace Name Mixin selector
      named buffersPool Lnet/minecraft/client/render/chunk/ChunkBuilder;buffersPool:Lnet/minecraft/client/render/chunk/BlockBufferBuilderPool;
      intermediary field_46907 Lnet/minecraft/class_846;field_46907:Lnet/minecraft/class_8901;
      official d Lgox;d:Lgly;
    • queuedTaskCount

      private volatile int queuedTaskCount
      Mappings:
      Namespace Name Mixin selector
      named queuedTaskCount Lnet/minecraft/client/render/chunk/ChunkBuilder;queuedTaskCount:I
      intermediary field_20992 Lnet/minecraft/class_846;field_20992:I
      official e Lgox;e:I
    • stopped

      private volatile boolean stopped
      Mappings:
      Namespace Name Mixin selector
      named stopped Lnet/minecraft/client/render/chunk/ChunkBuilder;stopped:Z
      intermediary field_46908 Lnet/minecraft/class_846;field_46908:Z
      official f Lgox;f:Z
    • consecutiveExecutor

      private final SimpleConsecutiveExecutor consecutiveExecutor
      Mappings:
      Namespace Name Mixin selector
      named consecutiveExecutor Lnet/minecraft/client/render/chunk/ChunkBuilder;consecutiveExecutor:Lnet/minecraft/util/thread/SimpleConsecutiveExecutor;
      intermediary field_54167 Lnet/minecraft/class_846;field_54167:Lnet/minecraft/class_10176;
      official g Lgox;g:Lbry;
    • executor

      private final NameableExecutor executor
      Mappings:
      Namespace Name Mixin selector
      named executor Lnet/minecraft/client/render/chunk/ChunkBuilder;executor:Lnet/minecraft/util/thread/NameableExecutor;
      intermediary field_20830 Lnet/minecraft/class_846;field_20830:Lnet/minecraft/class_10207;
      official h Lgox;h:Lad;
    • world

      Mappings:
      Namespace Name Mixin selector
      named world Lnet/minecraft/client/render/chunk/ChunkBuilder;world:Lnet/minecraft/client/world/ClientWorld;
      intermediary field_20831 Lnet/minecraft/class_846;field_20831:Lnet/minecraft/class_638;
      official i Lgox;i:Lgfj;
    • worldRenderer

      final WorldRenderer worldRenderer
      Mappings:
      Namespace Name Mixin selector
      named worldRenderer Lnet/minecraft/client/render/chunk/ChunkBuilder;worldRenderer:Lnet/minecraft/client/render/WorldRenderer;
      intermediary field_20832 Lnet/minecraft/class_846;field_20832:Lnet/minecraft/class_761;
      official j Lgox;j:Lglg;
    • cameraPosition

      private Vec3d cameraPosition
      Mappings:
      Namespace Name Mixin selector
      named cameraPosition Lnet/minecraft/client/render/chunk/ChunkBuilder;cameraPosition:Lnet/minecraft/util/math/Vec3d;
      intermediary field_18766 Lnet/minecraft/class_846;field_18766:Lnet/minecraft/class_243;
      official k Lgox;k:Lfbx;
    • sectionBuilder

      final SectionBuilder sectionBuilder
      Mappings:
      Namespace Name Mixin selector
      named sectionBuilder Lnet/minecraft/client/render/chunk/ChunkBuilder;sectionBuilder:Lnet/minecraft/client/render/chunk/SectionBuilder;
      intermediary field_52171 Lnet/minecraft/class_846;field_52171:Lnet/minecraft/class_9810;
      official l Lgox;l:Lgow;
  • Constructor Details

    • ChunkBuilder

      public ChunkBuilder(ClientWorld world, WorldRenderer worldRenderer, NameableExecutor executor, BufferBuilderStorage bufferBuilderStorage, BlockRenderManager blockRenderManager, BlockEntityRenderDispatcher blockEntityRenderDispatcher)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/chunk/ChunkBuilder;<init>(Lnet/minecraft/client/world/ClientWorld;Lnet/minecraft/client/render/WorldRenderer;Lnet/minecraft/util/thread/NameableExecutor;Lnet/minecraft/client/render/BufferBuilderStorage;Lnet/minecraft/client/render/block/BlockRenderManager;Lnet/minecraft/client/render/block/entity/BlockEntityRenderDispatcher;)V
      intermediary <init> Lnet/minecraft/class_846;<init>(Lnet/minecraft/class_638;Lnet/minecraft/class_761;Lnet/minecraft/class_10207;Lnet/minecraft/class_4599;Lnet/minecraft/class_776;Lnet/minecraft/class_824;)V
      official <init> Lgox;<init>(Lgfj;Lglg;Lad;Lgls;Lgmn;Lgnu;)V
  • Method Details

    • setWorld

      public void setWorld(ClientWorld world)
      Mappings:
      Namespace Name Mixin selector
      named setWorld Lnet/minecraft/client/render/chunk/ChunkBuilder;setWorld(Lnet/minecraft/client/world/ClientWorld;)V
      intermediary method_22752 Lnet/minecraft/class_846;method_22752(Lnet/minecraft/class_638;)V
      official a Lgox;a(Lgfj;)V
    • scheduleRunTasks

      private void scheduleRunTasks()
      Mappings:
      Namespace Name Mixin selector
      named scheduleRunTasks Lnet/minecraft/client/render/chunk/ChunkBuilder;scheduleRunTasks()V
      intermediary method_22763 Lnet/minecraft/class_846;method_22763()V
      official j Lgox;j()V
    • getDebugString

      public String getDebugString()
      Mappings:
      Namespace Name Mixin selector
      named getDebugString Lnet/minecraft/client/render/chunk/ChunkBuilder;getDebugString()Ljava/lang/String;
      intermediary method_3622 Lnet/minecraft/class_846;method_3622()Ljava/lang/String;
      official a Lgox;a()Ljava/lang/String;
    • getToBatchCount

      public int getToBatchCount()
      Mappings:
      Namespace Name Mixin selector
      named getToBatchCount Lnet/minecraft/client/render/chunk/ChunkBuilder;getToBatchCount()I
      intermediary method_34845 Lnet/minecraft/class_846;method_34845()I
      official b Lgox;b()I
    • getChunksToUpload

      public int getChunksToUpload()
      Mappings:
      Namespace Name Mixin selector
      named getChunksToUpload Lnet/minecraft/client/render/chunk/ChunkBuilder;getChunksToUpload()I
      intermediary method_34846 Lnet/minecraft/class_846;method_34846()I
      official c Lgox;c()I
    • getFreeBufferCount

      public int getFreeBufferCount()
      Mappings:
      Namespace Name Mixin selector
      named getFreeBufferCount Lnet/minecraft/client/render/chunk/ChunkBuilder;getFreeBufferCount()I
      intermediary method_34847 Lnet/minecraft/class_846;method_34847()I
      official d Lgox;d()I
    • setCameraPosition

      public void setCameraPosition(Vec3d cameraPosition)
      Mappings:
      Namespace Name Mixin selector
      named setCameraPosition Lnet/minecraft/client/render/chunk/ChunkBuilder;setCameraPosition(Lnet/minecraft/util/math/Vec3d;)V
      intermediary method_19419 Lnet/minecraft/class_846;method_19419(Lnet/minecraft/class_243;)V
      official a Lgox;a(Lfbx;)V
    • getCameraPosition

      public Vec3d getCameraPosition()
      Mappings:
      Namespace Name Mixin selector
      named getCameraPosition Lnet/minecraft/client/render/chunk/ChunkBuilder;getCameraPosition()Lnet/minecraft/util/math/Vec3d;
      intermediary method_19420 Lnet/minecraft/class_846;method_19420()Lnet/minecraft/class_243;
      official e Lgox;e()Lfbx;
    • upload

      public void upload()
      Mappings:
      Namespace Name Mixin selector
      named upload Lnet/minecraft/client/render/chunk/ChunkBuilder;upload()V
      intermediary method_22761 Lnet/minecraft/class_846;method_22761()V
      official f Lgox;f()V
    • rebuild

      public void rebuild(ChunkBuilder.BuiltChunk chunk, ChunkRendererRegionBuilder builder)
      Mappings:
      Namespace Name Mixin selector
      named rebuild Lnet/minecraft/client/render/chunk/ChunkBuilder;rebuild(Lnet/minecraft/client/render/chunk/ChunkBuilder$BuiltChunk;Lnet/minecraft/client/render/chunk/ChunkRendererRegionBuilder;)V
      intermediary method_3627 Lnet/minecraft/class_846;method_3627(Lnet/minecraft/class_846$class_851;Lnet/minecraft/class_6850;)V
      official a Lgox;a(Lgox$b;Lgov;)V
    • reset

      public void reset()
      Mappings:
      Namespace Name Mixin selector
      named reset Lnet/minecraft/client/render/chunk/ChunkBuilder;reset()V
      intermediary method_3632 Lnet/minecraft/class_846;method_3632()V
      official g Lgox;g()V
    • send

      public void send(ChunkBuilder.BuiltChunk.Task task)
      Mappings:
      Namespace Name Mixin selector
      named send Lnet/minecraft/client/render/chunk/ChunkBuilder;send(Lnet/minecraft/client/render/chunk/ChunkBuilder$BuiltChunk$Task;)V
      intermediary method_22756 Lnet/minecraft/class_846;method_22756(Lnet/minecraft/class_846$class_851$class_4577;)V
      official a Lgox;a(Lgox$b$a;)V
    • scheduleUpload

      public CompletableFuture<Void> scheduleUpload(BuiltBuffer builtBuffer, VertexBuffer glBuffer)
      Mappings:
      Namespace Name Mixin selector
      named scheduleUpload Lnet/minecraft/client/render/chunk/ChunkBuilder;scheduleUpload(Lnet/minecraft/client/render/BuiltBuffer;Lnet/minecraft/client/gl/VertexBuffer;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_3635 Lnet/minecraft/class_846;method_3635(Lnet/minecraft/class_9801;Lnet/minecraft/class_291;)Ljava/util/concurrent/CompletableFuture;
      official a Lgox;a(Lfgq;Lfgu;)Ljava/util/concurrent/CompletableFuture;
    • scheduleIndexBufferUpload

      public CompletableFuture<Void> scheduleIndexBufferUpload(BufferAllocator.CloseableBuffer indexBuffer, VertexBuffer vertexBuffer)
      Mappings:
      Namespace Name Mixin selector
      named scheduleIndexBufferUpload Lnet/minecraft/client/render/chunk/ChunkBuilder;scheduleIndexBufferUpload(Lnet/minecraft/client/util/BufferAllocator$CloseableBuffer;Lnet/minecraft/client/gl/VertexBuffer;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_60906 Lnet/minecraft/class_846;method_60906(Lnet/minecraft/class_9799$class_9800;Lnet/minecraft/class_291;)Ljava/util/concurrent/CompletableFuture;
      official a Lgox;a(Lfgo$a;Lfgu;)Ljava/util/concurrent/CompletableFuture;
    • clear

      private void clear()
      Mappings:
      Namespace Name Mixin selector
      named clear Lnet/minecraft/client/render/chunk/ChunkBuilder;clear()V
      intermediary method_3633 Lnet/minecraft/class_846;method_3633()V
      official k Lgox;k()V
    • isEmpty

      public boolean isEmpty()
      Mappings:
      Namespace Name Mixin selector
      named isEmpty Lnet/minecraft/client/render/chunk/ChunkBuilder;isEmpty()Z
      intermediary method_3630 Lnet/minecraft/class_846;method_3630()Z
      official h Lgox;h()Z
    • stop

      public void stop()
      Mappings:
      Namespace Name Mixin selector
      named stop Lnet/minecraft/client/render/chunk/ChunkBuilder;stop()V
      intermediary method_3619 Lnet/minecraft/class_846;method_3619()V
      official i Lgox;i()V