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
appearanceTimeMs
private long
fadeDuration
field_64453
fadeInTimeMs
private boolean
wasPreviouslyEmpty
field_64454
unloaded
static final boolean
$assertionsDisabled
field_1_1973
field_1_1973
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)
getOpacity(long timeMs)
public void
setFadeDuration(long fadeDuration)
method_76548(long arg0)
setFadeInTime(long fadeInTimeMs)
public void
setWasPreviouslyEmpty(boolean wasPreviouslyEmpty)
method_76547(boolean arg0)
setUnloaded(boolean unloaded)
public boolean
wasPreviouslyEmpty()
method_76546()
wasUnloaded()
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 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 AbstractChunkRenderData
setSectionMesh(SectionMesh sectionMesh)
method_72049(class_11517 arg0)
setCurrentRenderData(AbstractChunkRenderData data)
private void
releaseSectionMesh(SectionMesh oldMesh)
method_1_2411(class_11517 arg0)
dispose(AbstractChunkRenderData data)
private VertexSorter
createVertexSorting(SectionPos sectionPos, Vec3 cameraPos)
method_60909(class_4076 arg0, class_243 arg1)
getVertexSorter(ChunkSectionPos sectionPos, Vec3d cameraPos)
private void
checkSectionMesh(CompiledSectionMesh compiledSectionMesh)
method_1_2407(class_11516 arg0)
disposeIfAllBuffersUploaded(ChunkRenderData data)
void
vertexBufferUploadCallback(SectionMesh sectionMesh, ChunkSectionLayer layer)
method_1_2412(class_11517 arg0, class_11515 arg1)
onVertexBufferUploaded(AbstractChunkRenderData data, BlockRenderLayer blockRenderLayer)
void
indexBufferUploadCallback(SectionMesh sectionMesh, ChunkSectionLayer layer, boolean sortedIndexBuffer)
method_1_2408(class_11517 arg0, class_11515 arg1, boolean arg2)
onIndexBufferUploaded(AbstractChunkRenderData data, BlockRenderLayer blockRenderLayer, boolean noVertex)
private boolean
addSectionBuffersToUberBuffer(ChunkSectionLayer layer, CompiledSectionMesh key, ByteBuffer vertexBuffer, ByteBuffer indexBuffer)
method_1_2406(class_11515 arg0, class_11516 arg1, ByteBuffer arg2, ByteBuffer arg3)
stageChunkGeometry(BlockRenderLayer blockRenderLayer, ChunkRenderData chunkRenderData, ByteBuffer vertex, ByteBuffer index)
private void
lambda$addSectionBuffersToUberBuffer$1(ChunkSectionLayer arg0, boolean arg1, SectionMesh arg2)
method_1_2410(class_11515 arg0, boolean arg1, class_11517 arg2)
method_1_2410(BlockRenderLayer arg0, boolean arg1, AbstractChunkRenderData data)
private void
lambda$addSectionBuffersToUberBuffer$0(ChunkSectionLayer arg0, SectionMesh arg1)
method_1_2409(class_11515 arg0, class_11517 arg1)
method_1_2409(BlockRenderLayer arg0, AbstractChunkRenderData data)