Class ChunkBuilder
java.lang.Object
net.minecraft.client.render.chunk.ChunkBuilder
- Mappings:
Namespace Name named net/minecraft/client/render/chunk/ChunkBuilder
intermediary net/minecraft/class_846
official ggp
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
static class
private static enum
-
Field Summary
Modifier and TypeFieldDescription(package private) final BlockBufferBuilderStorage
private final BlockBufferBuilderPool
private Vec3d
private final Executor
private static final int
private final TaskExecutor
<Runnable> private final PriorityBlockingQueue
<ChunkBuilder.BuiltChunk.Task> private int
The number of tasks it can poll fromprioritizedTaskQueue
before polling fromtaskQueue
first instead.private int
private boolean
private final Queue
<ChunkBuilder.BuiltChunk.Task> (package private) ClientWorld
(package private) final WorldRenderer
-
Constructor Summary
ConstructorDescriptionChunkBuilder
(ClientWorld world, WorldRenderer worldRenderer, Executor executor, BufferBuilderStorage bufferBuilderStorage) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
clear()
int
int
int
boolean
isEmpty()
private ChunkBuilder.BuiltChunk.Task
pollTask()
void
rebuild
(ChunkBuilder.BuiltChunk chunk, ChunkRendererRegionBuilder builder) void
reset()
private void
scheduleUpload
(BufferBuilder.BuiltBuffer builtBuffer, VertexBuffer glBuffer) void
void
setCameraPosition
(Vec3d cameraPosition) void
setWorld
(ClientWorld world) void
stop()
void
upload()
-
Field Details
-
field_35300
private static final int field_35300- See Also:
- Mappings:
Namespace Name Mixin selector named field_35300
Lnet/minecraft/client/render/chunk/ChunkBuilder;field_35300:I
intermediary field_35300
Lnet/minecraft/class_846;field_35300:I
official a
Lggp;a:I
-
prioritizedTaskQueue
- Mappings:
Namespace Name Mixin selector named prioritizedTaskQueue
Lnet/minecraft/client/render/chunk/ChunkBuilder;prioritizedTaskQueue:Ljava/util/concurrent/PriorityBlockingQueue;
intermediary field_35301
Lnet/minecraft/class_846;field_35301:Ljava/util/concurrent/PriorityBlockingQueue;
official b
Lggp;b:Ljava/util/concurrent/PriorityBlockingQueue;
-
taskQueue
- Mappings:
Namespace Name Mixin selector named taskQueue
Lnet/minecraft/client/render/chunk/ChunkBuilder;taskQueue:Ljava/util/Queue;
intermediary field_35302
Lnet/minecraft/class_846;field_35302:Ljava/util/Queue;
official c
Lggp;c:Ljava/util/Queue;
-
processablePrioritizedTaskCount
private int processablePrioritizedTaskCountThe number of tasks it can poll fromprioritizedTaskQueue
before polling fromtaskQueue
first instead.- Mappings:
Namespace Name Mixin selector named processablePrioritizedTaskCount
Lnet/minecraft/client/render/chunk/ChunkBuilder;processablePrioritizedTaskCount:I
intermediary field_35303
Lnet/minecraft/class_846;field_35303:I
official d
Lggp;d:I
-
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 e
Lggp;e:Ljava/util/Queue;
-
buffers
- Mappings:
Namespace Name Mixin selector named buffers
Lnet/minecraft/client/render/chunk/ChunkBuilder;buffers:Lnet/minecraft/client/render/chunk/BlockBufferBuilderStorage;
intermediary field_20828
Lnet/minecraft/class_846;field_20828:Lnet/minecraft/class_750;
official f
Lggp;f:Lgea;
-
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 g
Lggp;g:Lgeb;
-
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 h
Lggp;h: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 i
Lggp;i:Z
-
mailbox
- Mappings:
Namespace Name Mixin selector named mailbox
Lnet/minecraft/client/render/chunk/ChunkBuilder;mailbox:Lnet/minecraft/util/thread/TaskExecutor;
intermediary field_20829
Lnet/minecraft/class_846;field_20829:Lnet/minecraft/class_3846;
official j
Lggp;j:Lbpo;
-
executor
- Mappings:
Namespace Name Mixin selector named executor
Lnet/minecraft/client/render/chunk/ChunkBuilder;executor:Ljava/util/concurrent/Executor;
intermediary field_20830
Lnet/minecraft/class_846;field_20830:Ljava/util/concurrent/Executor;
official k
Lggp;k:Ljava/util/concurrent/Executor;
-
world
ClientWorld 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 l
Lggp;l:Lfxw;
-
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 m
Lggp;m:Lgdn;
-
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 n
Lggp;n:Levs;
-
-
Constructor Details
-
ChunkBuilder
public ChunkBuilder(ClientWorld world, WorldRenderer worldRenderer, Executor executor, BufferBuilderStorage bufferBuilderStorage) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/render/chunk/ChunkBuilder;<init>(Lnet/minecraft/client/world/ClientWorld;Lnet/minecraft/client/render/WorldRenderer;Ljava/util/concurrent/Executor;Lnet/minecraft/client/render/BufferBuilderStorage;)V
intermediary <init>
Lnet/minecraft/class_846;<init>(Lnet/minecraft/class_638;Lnet/minecraft/class_761;Ljava/util/concurrent/Executor;Lnet/minecraft/class_4599;)V
official <init>
Lggp;<init>(Lfxw;Lgdn;Ljava/util/concurrent/Executor;Lgdv;)V
-
-
Method Details
-
setWorld
- 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
Lggp;a(Lfxw;)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
Lggp;j()V
-
pollTask
- Mappings:
Namespace Name Mixin selector named pollTask
Lnet/minecraft/client/render/chunk/ChunkBuilder;pollTask()Lnet/minecraft/client/render/chunk/ChunkBuilder$BuiltChunk$Task;
intermediary method_39132
Lnet/minecraft/class_846;method_39132()Lnet/minecraft/class_846$class_851$class_4577;
official k
Lggp;k()Lggp$b$a;
-
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
Lggp;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
Lggp;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
Lggp;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
Lggp;d()I
-
setCameraPosition
- 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
Lggp;a(Levs;)V
-
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
Lggp;e()Levs;
-
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
Lggp;f()V
-
rebuild
- 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
Lggp;a(Lggp$b;Lggo;)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
Lggp;g()V
-
send
- 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
Lggp;a(Lggp$b$a;)V
-
scheduleUpload
public CompletableFuture<Void> scheduleUpload(BufferBuilder.BuiltBuffer builtBuffer, VertexBuffer glBuffer) - Mappings:
Namespace Name Mixin selector named scheduleUpload
Lnet/minecraft/client/render/chunk/ChunkBuilder;scheduleUpload(Lnet/minecraft/client/render/BufferBuilder$BuiltBuffer;Lnet/minecraft/client/gl/VertexBuffer;)Ljava/util/concurrent/CompletableFuture;
intermediary method_3635
Lnet/minecraft/class_846;method_3635(Lnet/minecraft/class_287$class_7433;Lnet/minecraft/class_291;)Ljava/util/concurrent/CompletableFuture;
official a
Lggp;a(Lezu$b;Lfac;)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 l
Lggp;l()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
Lggp;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
Lggp;i()V
-