net.minecraft.client.render.chunk

public class ChunkBuilder$BuiltChunk

net.minecraft.client.renderer.chunk.SectionRenderDispatcher$RenderSection
net.minecraft.class_846$class_851
net.minecraft.client.render.chunk.ChunkBuilder$BuiltChunk

Field summary

Modifier and TypeField
public static final int
SIZE
field_32832
CHUNK_SIZE
public final int
index
field_29641
index
public final AtomicReference<AbstractChunkRenderData>
sectionMesh
field_60949
currentRenderData
private ChunkBuilder$BuiltChunk$RebuildTask
lastRebuildTask
field_20834
rebuildTask
private ChunkBuilder$BuiltChunk$SortTask
lastResortTransparencyTask
field_4461
sortTask
private Box
bb
field_4458
boundingBox
private boolean
dirty
field_4464
needsRebuild
private volatile long
sectionNode
field_53958
sectionPos
private final BlockPos$Mutable
renderOrigin
field_4467
origin
private boolean
playerChanged
field_4463
needsImportantRebuild
private long
uploadedTime
field_64231
field_64231
private long
fadeDuration
field_64453
field_64453
private boolean
wasPreviouslyEmpty
field_64454
field_64454
final ChunkBuilder
this$0
field_20833
field_20833

Constructor summary

ModifierConstructor
public (ChunkBuilder this$0, int index, long sectionPos)

Method summary

Modifier and TypeMethod
public float
getVisibility(long now)
method_76298(long arg0)
method_76298(long arg0)
public void
setFadeDuration(long fadeDuration)
method_76548(long arg0)
method_76548(long arg0)
public void
setWasPreviouslyEmpty(boolean wasPreviouslyEmpty)
method_76547(boolean arg0)
method_76547(boolean arg0)
public boolean
wasPreviouslyEmpty()
method_76546()
method_76546()
private boolean
doesChunkExistAt(long sectionNode)
method_3651(long arg0)
isChunkNonEmpty(long sectionPos)
public boolean
hasAllNeighbors()
method_3673()
shouldBuild()
public Box
getBoundingBox()
method_40051()
getBoundingBox()
public CompletableFuture<Void>
upload(Map<ChunkSectionLayer, MeshData> renderedLayers, CompiledSectionMesh compiledSectionMesh)
method_72050(Map<class_11515, class_9801> arg0, class_11516 arg1)
uploadLayer(Map<BlockRenderLayer, BuiltBuffer> buffersByLayer, ChunkRenderData renderData)
public CompletableFuture<Void>
uploadSectionIndexBuffer(CompiledSectionMesh compiledSectionMesh, ByteBufferBuilder$Result indexBuffer, ChunkSectionLayer layer)
method_68531(class_11516 arg0, class_9799$class_9800 arg1, class_11515 arg2)
uploadIndices(ChunkRenderData data, BufferAllocator$CloseableBuffer buffer, BlockRenderLayer layer)
public void
setSectionNode(long sectionNode)
method_62973(long arg0)
setSectionPos(long sectionPos)
public AbstractChunkRenderData
getSectionMesh()
method_72052()
getCurrentRenderData()
public void
reset()
method_3675()
clear()
public BlockPos
getRenderOrigin()
method_3670()
getOrigin()
public long
getSectionNode()
method_62975()
getSectionPos()
public void
setDirty(boolean fromPlayer)
method_3654(boolean arg0)
scheduleRebuild(boolean important)
public void
setNotDirty()
method_3662()
cancelRebuild()
public boolean
isDirty()
method_3672()
needsRebuild()
public boolean
isDirtyFromPlayer()
method_3661()
needsImportantRebuild()
public long
getNeighborSectionNode(Direction direction)
method_62974(class_2350 arg0)
getOffsetSectionPos(Direction direction)
public void
resortTransparency(SectionRenderDispatcher dispatcher)
method_22773(class_846 arg0)
scheduleSort(ChunkBuilder builder)
public boolean
hasTranslucentGeometry()
method_64065()
hasTranslucentLayer()
public boolean
transparencyResortingScheduled()
method_64066()
isCurrentlySorting()
protected void
cancelTasks()
method_3663()
cancel()
public ChunkBuilder$BuiltChunk$Task
createCompileTask(RenderRegionCache cache)
method_3674(class_6850 arg0)
createRebuildTask(ChunkRendererRegionBuilder builder)
public void
rebuildSectionAsync(RenderRegionCache cache)
method_22777(class_6850 arg0)
scheduleRebuild(ChunkRendererRegionBuilder builder)
public void
compileSync(RenderRegionCache cache)
method_22781(class_6850 arg0)
rebuild(ChunkRendererRegionBuilder builder)
private void
setSectionMesh(SectionMesh sectionMesh)
method_72049(class_11517 arg0)
setCurrentRenderData(AbstractChunkRenderData data)
private VertexSorter
createVertexSorting(SectionPos sectionPos)
method_60909(class_4076 arg0)
getVertexSorter(ChunkSectionPos sectionPos)
private void
lambda$uploadSectionIndexBuffer$2(CompiledSectionMesh arg0, ChunkSectionLayer arg1, ByteBufferBuilder$Result arg2)
method_72047(class_11516 arg0, class_11515 arg1, class_9799$class_9800 arg2)
method_72047(ChunkRenderData arg0, BlockRenderLayer arg1, BufferAllocator$CloseableBuffer arg2)
private void
lambda$upload$1(Map arg0, CompiledSectionMesh arg1)
method_72051(Map arg0, class_11516 arg1)
method_72051(Map arg0, ChunkRenderData arg1)
private void
lambda$upload$0(CompiledSectionMesh arg0, ChunkSectionLayer arg1, MeshData arg2)
method_72048(class_11516 arg0, class_11515 arg1, class_9801 arg2)
method_72048(ChunkRenderData arg0, BlockRenderLayer layer, BuiltBuffer buffer)