Class ChunkBuilder

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

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

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Lekg;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_4445 Lnet/minecraft/class_846;field_4445:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/client/render/chunk/ChunkBuilder;LOGGER:Lorg/apache/logging/log4j/Logger;
    • rebuildQueue

      private final PriorityQueue<ChunkBuilder.BuiltChunk.Task> rebuildQueue
      Mappings:
      Namespace Name Mixin selector
      official b Lekg;b:Ljava/util/PriorityQueue;
      intermediary field_4435 Lnet/minecraft/class_846;field_4435:Ljava/util/PriorityQueue;
      named rebuildQueue Lnet/minecraft/client/render/chunk/ChunkBuilder;rebuildQueue:Ljava/util/PriorityQueue;
    • threadBuffers

      private final Queue<BlockBufferBuilderStorage> threadBuffers
      Mappings:
      Namespace Name Mixin selector
      official c Lekg;c:Ljava/util/Queue;
      intermediary field_20827 Lnet/minecraft/class_846;field_20827:Ljava/util/Queue;
      named threadBuffers Lnet/minecraft/client/render/chunk/ChunkBuilder;threadBuffers:Ljava/util/Queue;
    • uploadQueue

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

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

      private volatile int bufferCount
      Mappings:
      Namespace Name Mixin selector
      official f Lekg;f:I
      intermediary field_20993 Lnet/minecraft/class_846;field_20993:I
      named bufferCount Lnet/minecraft/client/render/chunk/ChunkBuilder;bufferCount:I
    • buffers

      private final BlockBufferBuilderStorage buffers
      Mappings:
      Namespace Name Mixin selector
      official g Lekg;g:Lehd;
      intermediary field_20828 Lnet/minecraft/class_846;field_20828:Lnet/minecraft/class_750;
      named buffers Lnet/minecraft/client/render/chunk/ChunkBuilder;buffers:Lnet/minecraft/client/render/chunk/BlockBufferBuilderStorage;
    • mailbox

      private final TaskExecutor<Runnable> mailbox
      Mappings:
      Namespace Name Mixin selector
      official h Lekg;h:Lapa;
      intermediary field_20829 Lnet/minecraft/class_846;field_20829:Lnet/minecraft/class_3846;
      named mailbox Lnet/minecraft/client/render/chunk/ChunkBuilder;mailbox:Lnet/minecraft/util/thread/TaskExecutor;
    • executor

      private final Executor executor
      Mappings:
      Namespace Name Mixin selector
      official i Lekg;i:Ljava/util/concurrent/Executor;
      intermediary field_20830 Lnet/minecraft/class_846;field_20830:Ljava/util/concurrent/Executor;
      named executor Lnet/minecraft/client/render/chunk/ChunkBuilder;executor:Ljava/util/concurrent/Executor;
    • world

      private World world
      Mappings:
      Namespace Name Mixin selector
      official j Lekg;j:Lbtv;
      intermediary field_20831 Lnet/minecraft/class_846;field_20831:Lnet/minecraft/class_1937;
      named world Lnet/minecraft/client/render/chunk/ChunkBuilder;world:Lnet/minecraft/world/World;
    • worldRenderer

      private final WorldRenderer worldRenderer
      Mappings:
      Namespace Name Mixin selector
      official k Lekg;k:Leho;
      intermediary field_20832 Lnet/minecraft/class_846;field_20832:Lnet/minecraft/class_761;
      named worldRenderer Lnet/minecraft/client/render/chunk/ChunkBuilder;worldRenderer:Lnet/minecraft/client/render/WorldRenderer;
    • cameraPosition

      private Vec3d cameraPosition
      Mappings:
      Namespace Name Mixin selector
      official l Lekg;l:Ldiu;
      intermediary field_18766 Lnet/minecraft/class_846;field_18766:Lnet/minecraft/class_243;
      named cameraPosition Lnet/minecraft/client/render/chunk/ChunkBuilder;cameraPosition:Lnet/minecraft/util/math/Vec3d;
  • Constructor Details

    • ChunkBuilder

      public ChunkBuilder​(World world, WorldRenderer worldRenderer, Executor executor, boolean is64Bits, BlockBufferBuilderStorage buffers)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lekg;<init>(Lbtv;Leho;Ljava/util/concurrent/Executor;ZLehd;)V
      intermediary <init> Lnet/minecraft/class_846;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_761;Ljava/util/concurrent/Executor;ZLnet/minecraft/class_750;)V
      named <init> Lnet/minecraft/client/render/chunk/ChunkBuilder;<init>(Lnet/minecraft/world/World;Lnet/minecraft/client/render/WorldRenderer;Ljava/util/concurrent/Executor;ZLnet/minecraft/client/render/chunk/BlockBufferBuilderStorage;)V
  • Method Details

    • setWorld

      public void setWorld​(World world)
      Mappings:
      Namespace Name Mixin selector
      official a Lekg;a(Lbtv;)V
      intermediary method_22752 Lnet/minecraft/class_846;method_22752(Lnet/minecraft/class_1937;)V
      named setWorld Lnet/minecraft/client/render/chunk/ChunkBuilder;setWorld(Lnet/minecraft/world/World;)V
    • scheduleRunTasks

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

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

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

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

      public boolean upload()
      Mappings:
      Namespace Name Mixin selector
      official c Lekg;c()Z
      intermediary method_22761 Lnet/minecraft/class_846;method_22761()Z
      named upload Lnet/minecraft/client/render/chunk/ChunkBuilder;upload()Z
    • rebuild

      public void rebuild​(ChunkBuilder.BuiltChunk chunk)
      Mappings:
      Namespace Name Mixin selector
      official a Lekg;a(Lekg$c;)V
      intermediary method_3627 Lnet/minecraft/class_846;method_3627(Lnet/minecraft/class_846$class_851;)V
      named rebuild Lnet/minecraft/client/render/chunk/ChunkBuilder;rebuild(Lnet/minecraft/client/render/chunk/ChunkBuilder$BuiltChunk;)V
    • reset

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

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

      public CompletableFuture<Void> scheduleUpload​(BufferBuilder buffer, VertexBuffer glBuffer)
      Mappings:
      Namespace Name Mixin selector
      official a Lekg;a(Ldlm;Ldlu;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_3635 Lnet/minecraft/class_846;method_3635(Lnet/minecraft/class_287;Lnet/minecraft/class_291;)Ljava/util/concurrent/CompletableFuture;
      named scheduleUpload Lnet/minecraft/client/render/chunk/ChunkBuilder;scheduleUpload(Lnet/minecraft/client/render/BufferBuilder;Lnet/minecraft/client/gl/VertexBuffer;)Ljava/util/concurrent/CompletableFuture;
    • upload

      private CompletableFuture<Void> upload​(BufferBuilder buffer, VertexBuffer glBuffer)
      Mappings:
      Namespace Name Mixin selector
      official b Lekg;b(Ldlm;Ldlu;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_22759 Lnet/minecraft/class_846;method_22759(Lnet/minecraft/class_287;Lnet/minecraft/class_291;)Ljava/util/concurrent/CompletableFuture;
      named upload Lnet/minecraft/client/render/chunk/ChunkBuilder;upload(Lnet/minecraft/client/render/BufferBuilder;Lnet/minecraft/client/gl/VertexBuffer;)Ljava/util/concurrent/CompletableFuture;
    • clear

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

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

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