Class ChunkBuilder
java.lang.Object
net.minecraft.client.render.chunk.ChunkBuilder
- Mappings:
Namespace Name official fmp
intermediary net/minecraft/class_846
named net/minecraft/client/render/chunk/ChunkBuilder
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
static class
private static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
(package private) final BlockBufferBuilderStorage
private Vec3d
private final Executor
private static final int
private static final int
private static final Logger
private final TaskExecutor<Runnable>
private static final VertexFormat
private final PriorityBlockingQueue<ChunkBuilder.BuiltChunk.Task>
private int
The number of tasks it can poll fromprioritizedTaskQueue
before polling fromtaskQueue
first instead.private int
private final Queue<ChunkBuilder.BuiltChunk.Task>
private final Queue<BlockBufferBuilderStorage>
(package private) ClientWorld
(package private) final WorldRenderer
-
Constructor Summary
ConstructorDescriptionChunkBuilder
(ClientWorld world, WorldRenderer worldRenderer, Executor executor, boolean is64Bits, BlockBufferBuilderStorage buffers) -
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
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lfmp;a:Lorg/slf4j/Logger;
intermediary field_4445
Lnet/minecraft/class_846;field_4445:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/client/render/chunk/ChunkBuilder;LOGGER:Lorg/slf4j/Logger;
-
field_32831
private static final int field_32831- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lfmp;b:I
intermediary field_32831
Lnet/minecraft/class_846;field_32831:I
named field_32831
Lnet/minecraft/client/render/chunk/ChunkBuilder;field_32831:I
-
POSITION_COLOR_TEXTURE_LIGHT_NORMAL
- Mappings:
Namespace Name Mixin selector official c
Lfmp;c:Leio;
intermediary field_29500
Lnet/minecraft/class_846;field_29500:Lnet/minecraft/class_293;
named POSITION_COLOR_TEXTURE_LIGHT_NORMAL
Lnet/minecraft/client/render/chunk/ChunkBuilder;POSITION_COLOR_TEXTURE_LIGHT_NORMAL:Lnet/minecraft/client/render/VertexFormat;
-
field_35300
private static final int field_35300- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lfmp;d:I
intermediary field_35300
Lnet/minecraft/class_846;field_35300:I
named field_35300
Lnet/minecraft/client/render/chunk/ChunkBuilder;field_35300:I
-
prioritizedTaskQueue
- Mappings:
Namespace Name Mixin selector official e
Lfmp;e:Ljava/util/concurrent/PriorityBlockingQueue;
intermediary field_35301
Lnet/minecraft/class_846;field_35301:Ljava/util/concurrent/PriorityBlockingQueue;
named prioritizedTaskQueue
Lnet/minecraft/client/render/chunk/ChunkBuilder;prioritizedTaskQueue:Ljava/util/concurrent/PriorityBlockingQueue;
-
taskQueue
- Mappings:
Namespace Name Mixin selector official f
Lfmp;f:Ljava/util/Queue;
intermediary field_35302
Lnet/minecraft/class_846;field_35302:Ljava/util/Queue;
named taskQueue
Lnet/minecraft/client/render/chunk/ChunkBuilder;taskQueue:Ljava/util/Queue;
-
processablePrioritizedTaskCount
private int processablePrioritizedTaskCountThe number of tasks it can poll fromprioritizedTaskQueue
before polling fromtaskQueue
first instead.- Mappings:
Namespace Name Mixin selector official g
Lfmp;g:I
intermediary field_35303
Lnet/minecraft/class_846;field_35303:I
named processablePrioritizedTaskCount
Lnet/minecraft/client/render/chunk/ChunkBuilder;processablePrioritizedTaskCount:I
-
threadBuffers
- Mappings:
Namespace Name Mixin selector official h
Lfmp;h: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
- Mappings:
Namespace Name Mixin selector official i
Lfmp;i: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 j
Lfmp;j: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 k
Lfmp;k:I
intermediary field_20993
Lnet/minecraft/class_846;field_20993:I
named bufferCount
Lnet/minecraft/client/render/chunk/ChunkBuilder;bufferCount:I
-
buffers
- Mappings:
Namespace Name Mixin selector official l
Lfmp;l:Lfjk;
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
- Mappings:
Namespace Name Mixin selector official m
Lfmp;m:Lbcq;
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
- Mappings:
Namespace Name Mixin selector official n
Lfmp;n: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
ClientWorld world- Mappings:
Namespace Name Mixin selector official o
Lfmp;o:Lfew;
intermediary field_20831
Lnet/minecraft/class_846;field_20831:Lnet/minecraft/class_638;
named world
Lnet/minecraft/client/render/chunk/ChunkBuilder;world:Lnet/minecraft/client/world/ClientWorld;
-
worldRenderer
- Mappings:
Namespace Name Mixin selector official p
Lfmp;p:Lfjv;
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
- Mappings:
Namespace Name Mixin selector official q
Lfmp;q:Leei;
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(ClientWorld world, WorldRenderer worldRenderer, Executor executor, boolean is64Bits, BlockBufferBuilderStorage buffers) - Mappings:
Namespace Name Mixin selector official <init>
Lfmp;<init>(Lfew;Lfjv;Ljava/util/concurrent/Executor;ZLfjk;)V
intermediary <init>
Lnet/minecraft/class_846;<init>(Lnet/minecraft/class_638;Lnet/minecraft/class_761;Ljava/util/concurrent/Executor;ZLnet/minecraft/class_750;)V
named <init>
Lnet/minecraft/client/render/chunk/ChunkBuilder;<init>(Lnet/minecraft/client/world/ClientWorld;Lnet/minecraft/client/render/WorldRenderer;Ljava/util/concurrent/Executor;ZLnet/minecraft/client/render/chunk/BlockBufferBuilderStorage;)V
-
-
Method Details
-
setWorld
- Mappings:
Namespace Name Mixin selector official a
Lfmp;a(Lfew;)V
intermediary method_22752
Lnet/minecraft/class_846;method_22752(Lnet/minecraft/class_638;)V
named setWorld
Lnet/minecraft/client/render/chunk/ChunkBuilder;setWorld(Lnet/minecraft/client/world/ClientWorld;)V
-
scheduleRunTasks
private void scheduleRunTasks()- Mappings:
Namespace Name Mixin selector official j
Lfmp;j()V
intermediary method_22763
Lnet/minecraft/class_846;method_22763()V
named scheduleRunTasks
Lnet/minecraft/client/render/chunk/ChunkBuilder;scheduleRunTasks()V
-
pollTask
- Mappings:
Namespace Name Mixin selector official k
Lfmp;k()Lfmp$c$a;
intermediary method_39132
Lnet/minecraft/class_846;method_39132()Lnet/minecraft/class_846$class_851$class_4577;
named pollTask
Lnet/minecraft/client/render/chunk/ChunkBuilder;pollTask()Lnet/minecraft/client/render/chunk/ChunkBuilder$BuiltChunk$Task;
-
getDebugString
- Mappings:
Namespace Name Mixin selector official a
Lfmp;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;
-
getToBatchCount
public int getToBatchCount()- Mappings:
Namespace Name Mixin selector official b
Lfmp;b()I
intermediary method_34845
Lnet/minecraft/class_846;method_34845()I
named getToBatchCount
Lnet/minecraft/client/render/chunk/ChunkBuilder;getToBatchCount()I
-
getChunksToUpload
public int getChunksToUpload()- Mappings:
Namespace Name Mixin selector official c
Lfmp;c()I
intermediary method_34846
Lnet/minecraft/class_846;method_34846()I
named getChunksToUpload
Lnet/minecraft/client/render/chunk/ChunkBuilder;getChunksToUpload()I
-
getFreeBufferCount
public int getFreeBufferCount()- Mappings:
Namespace Name Mixin selector official d
Lfmp;d()I
intermediary method_34847
Lnet/minecraft/class_846;method_34847()I
named getFreeBufferCount
Lnet/minecraft/client/render/chunk/ChunkBuilder;getFreeBufferCount()I
-
setCameraPosition
- Mappings:
Namespace Name Mixin selector official a
Lfmp;a(Leei;)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
- Mappings:
Namespace Name Mixin selector official e
Lfmp;e()Leei;
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 void upload()- Mappings:
Namespace Name Mixin selector official f
Lfmp;f()V
intermediary method_22761
Lnet/minecraft/class_846;method_22761()V
named upload
Lnet/minecraft/client/render/chunk/ChunkBuilder;upload()V
-
rebuild
- Mappings:
Namespace Name Mixin selector official a
Lfmp;a(Lfmp$c;Lfms;)V
intermediary method_3627
Lnet/minecraft/class_846;method_3627(Lnet/minecraft/class_846$class_851;Lnet/minecraft/class_6850;)V
named rebuild
Lnet/minecraft/client/render/chunk/ChunkBuilder;rebuild(Lnet/minecraft/client/render/chunk/ChunkBuilder$BuiltChunk;Lnet/minecraft/client/render/chunk/ChunkRendererRegionBuilder;)V
-
reset
public void reset()- Mappings:
Namespace Name Mixin selector official g
Lfmp;g()V
intermediary method_3632
Lnet/minecraft/class_846;method_3632()V
named reset
Lnet/minecraft/client/render/chunk/ChunkBuilder;reset()V
-
send
- Mappings:
Namespace Name Mixin selector official a
Lfmp;a(Lfmp$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.BuiltBuffer builtBuffer, VertexBuffer glBuffer) - Mappings:
Namespace Name Mixin selector official a
Lfmp;a(Leie$b;Leim;)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;
named scheduleUpload
Lnet/minecraft/client/render/chunk/ChunkBuilder;scheduleUpload(Lnet/minecraft/client/render/BufferBuilder$BuiltBuffer;Lnet/minecraft/client/gl/VertexBuffer;)Ljava/util/concurrent/CompletableFuture;
-
clear
private void clear()- Mappings:
Namespace Name Mixin selector official l
Lfmp;l()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 h
Lfmp;h()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 i
Lfmp;i()V
intermediary method_3619
Lnet/minecraft/class_846;method_3619()V
named stop
Lnet/minecraft/client/render/chunk/ChunkBuilder;stop()V
-