@Environment(value=CLIENT) class ChunkBuilder.BuiltChunk.RebuildTask extends ChunkBuilder.BuiltChunk.Task
Modifier and Type | Field and Description |
---|---|
protected ChunkRendererRegion |
region |
cancelled, distance
Constructor and Description |
---|
RebuildTask(double double2,
ChunkRendererRegion chunkRendererRegion) |
Modifier and Type | Method and Description |
---|---|
private <E extends BlockEntity> |
addBlockEntity(ChunkBuilder.ChunkData data,
Set<BlockEntity> blockEntities,
E blockEntity) |
void |
cancel() |
private Set<BlockEntity> |
render(float cameraX,
float cameraY,
float cameraZ,
ChunkBuilder.ChunkData data,
BlockBufferBuilderStorage buffers) |
CompletableFuture<ChunkBuilder.Result> |
run(BlockBufferBuilderStorage buffers) |
compareTo
@Nullable protected ChunkRendererRegion region
public RebuildTask(double double2, ChunkRendererRegion chunkRendererRegion)
public CompletableFuture<ChunkBuilder.Result> run(BlockBufferBuilderStorage buffers)
run
in class ChunkBuilder.BuiltChunk.Task
private Set<BlockEntity> render(float cameraX, float cameraY, float cameraZ, ChunkBuilder.ChunkData data, BlockBufferBuilderStorage buffers)
private <E extends BlockEntity> void addBlockEntity(ChunkBuilder.ChunkData data, Set<BlockEntity> blockEntities, E blockEntity)
public void cancel()
cancel
in class ChunkBuilder.BuiltChunk.Task