net.minecraft.client.render

public class ChunkRenderingDataPreparer

net.minecraft.client.renderer.SectionOcclusionGraph
net.minecraft.class_8679
net.minecraft.client.render.ChunkRenderingDataPreparer

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_45617
LOGGER
private static final Direction[]
DIRECTIONS
field_45618
DIRECTIONS
private static final int
MINIMUM_ADVANCED_CULLING_DISTANCE
field_45619
DEFAULT_SECTION_DISTANCE
private static final int
MINIMUM_ADVANCED_CULLING_SECTION_DISTANCE
field_55873
SECTION_DISTANCE
private static final double
CEILED_SECTION_DIAGONAL
field_45620
CHUNK_INNER_DIAGONAL_LENGTH
private boolean
needsFullUpdate
field_45621
terrainUpdateScheduled
private Future<?>
fullUpdateTask
field_45622
terrainUpdateFuture
private BuiltChunkStorage
viewArea
field_45623
builtChunkStorage
private final AtomicReference<ChunkRenderingDataPreparer$PreparerState>
currentGraph
field_45624
state
private final AtomicReference<ChunkRenderingDataPreparer$Events>
nextGraphEvents
field_45625
events
private final AtomicBoolean
needsFrustumUpdate
field_45626
needsUpdate

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public void
waitAndReset(ViewArea viewArea)
method_52826(class_769 arg0)
setStorage(BuiltChunkStorage storage)
public void
invalidate()
method_52817()
scheduleTerrainUpdate()
public void
addSectionsInFrustum(Frustum frustum, List<SectionRenderDispatcher$RenderSection> visibleSections, List<SectionRenderDispatcher$RenderSection> nearbyVisibleSection)
method_52828(class_4604 arg0, List<class_846$class_851> arg1, List<class_846$class_851> arg2)
collectChunks(Frustum frustum, List<ChunkBuilder$BuiltChunk> builtChunks, List<ChunkBuilder$BuiltChunk> nearbyChunks)
public boolean
consumeFrustumUpdate()
method_52836()
updateFrustum()
public void
onChunkReadyToRender(ChunkPos pos)
method_52819(class_1923 arg0)
addNeighbors(ChunkPos chunkPos)
public void
schedulePropagationFrom(SectionRenderDispatcher$RenderSection section)
method_52827(class_846$class_851 arg0)
schedulePropagationFrom(ChunkBuilder$BuiltChunk builtChunk)
public void
update(boolean smartCull, Camera camera, Frustum frustum, List<SectionRenderDispatcher$RenderSection> visibleSections, it.unimi.dsi.fastutil.longs.LongOpenHashSet loadedEmptySections)
method_52834(boolean arg0, class_4184 arg1, class_4604 arg2, List<class_846$class_851> arg3, it.unimi.dsi.fastutil.longs.LongOpenHashSet arg4)
updateSectionOcclusionGraph(boolean cullChunks, Camera camera, Frustum frustum, List<ChunkBuilder$BuiltChunk> builtChunk, it.unimi.dsi.fastutil.longs.LongOpenHashSet activeSections)
private void
scheduleFullUpdate(boolean smartCull, Camera camera, Vec3 cameraPos, it.unimi.dsi.fastutil.longs.LongOpenHashSet loadedEmptySections)
method_52833(boolean arg0, class_4184 arg1, class_243 arg2, it.unimi.dsi.fastutil.longs.LongOpenHashSet arg3)
updateTerrain(boolean cullChunks, Camera camera, Vec3d cameraPos, it.unimi.dsi.fastutil.longs.LongOpenHashSet activeSections)
private void
runPartialUpdate(boolean smartCull, Frustum frustum, List<SectionRenderDispatcher$RenderSection> visibleSections, Vec3 cameraPos, it.unimi.dsi.fastutil.longs.LongOpenHashSet loadedEmptySections)
method_52835(boolean arg0, class_4604 arg1, List<class_846$class_851> arg2, class_243 arg3, it.unimi.dsi.fastutil.longs.LongOpenHashSet arg4)
updateNow(boolean cullChunks, Frustum frustum, List<ChunkBuilder$BuiltChunk> builtChunks, Vec3d cameraPos, it.unimi.dsi.fastutil.longs.LongOpenHashSet activeSections)
private void
queueSectionsWithNewNeighbors(SectionOcclusionGraph$GraphState state)
method_52823(class_8679$class_8681 arg0)
scheduleNew(ChunkRenderingDataPreparer$PreparerState preparerState)
private void
addNeighbors(SectionOcclusionGraph$GraphEvents events, ChunkPos pos)
method_52822(class_8679$class_8680 arg0, class_1923 arg1)
addNeighbors(ChunkRenderingDataPreparer$Events events, ChunkPos chunkPos)
private void
initializeQueueForFullUpdate(Camera camera, Queue<SectionOcclusionGraph$Node> queue)
method_52821(class_4184 arg0, Queue<class_8679$class_762> arg1)
scheduleLater(Camera camera, Queue<ChunkRenderingDataPreparer$ChunkInfo> arg1)
private void
runUpdates(SectionOcclusionGraph$GraphStorage storage, Vec3 cameraPos, Queue<SectionOcclusionGraph$Node> queue, boolean smartCull, Consumer<SectionRenderDispatcher$RenderSection> onSectionAdded, it.unimi.dsi.fastutil.longs.LongOpenHashSet emptySections)
method_52825(class_8679$class_6600 arg0, class_243 arg1, Queue<class_8679$class_762> arg2, boolean arg3, Consumer<class_846$class_851> arg4, it.unimi.dsi.fastutil.longs.LongOpenHashSet arg5)
update(ChunkRenderingDataPreparer$RenderableChunks renderableChunks, Vec3d pos, Queue<ChunkRenderingDataPreparer$ChunkInfo> arg2, boolean cullChunks, Consumer<ChunkBuilder$BuiltChunk> arg4, it.unimi.dsi.fastutil.longs.LongOpenHashSet arg5)
private boolean
isInViewDistance(long cameraSectionNode, long sectionNode)
method_52832(long arg0, long arg1)
isWithinViewDistance(long centerSectionPos, long otherSectionPos)
private ChunkBuilder$BuiltChunk
getRelativeFrom(long cameraSectionNode, SectionRenderDispatcher$RenderSection renderSection, Direction direction)
method_52831(long arg0, class_846$class_851 arg1, class_2350 arg2)
getRenderedChunk(long sectionPos, ChunkBuilder$BuiltChunk chunk, Direction direction)
public ChunkRenderingDataPreparer$ChunkInfo
getNode(SectionRenderDispatcher$RenderSection section)
method_52837(class_846$class_851 arg0)
getInfo(ChunkBuilder$BuiltChunk chunk)
public Octree
getOctree()
method_62925()
getOctree()
private static List
lambda$runUpdates$6(long arg0)
method_52818(long arg0)
method_52818(long arg0)
private static double
lambda$initializeQueueForFullUpdate$5(BlockPos arg0, SectionOcclusionGraph$Node arg1)
method_52830(class_2338 arg0, class_8679$class_762 arg1)
method_52830(BlockPos arg0, ChunkRenderingDataPreparer$ChunkInfo chunkInfo)
private void
lambda$runPartialUpdate$4(Frustum arg0, SectionRenderDispatcher$RenderSection arg1)
method_52829(class_4604 arg0, class_846$class_851 arg1)
method_52829(Frustum arg0, ChunkBuilder$BuiltChunk arg1)
private void
lambda$scheduleFullUpdate$3(Camera arg0, Vec3 arg1, boolean arg2, it.unimi.dsi.fastutil.longs.LongOpenHashSet arg3)
method_52820(class_4184 arg0, class_243 arg1, boolean arg2, it.unimi.dsi.fastutil.longs.LongOpenHashSet arg3)
method_52820(Camera arg0, Vec3d arg1, boolean arg2, it.unimi.dsi.fastutil.longs.LongOpenHashSet arg3)
private static void
lambda$scheduleFullUpdate$2(SectionRenderDispatcher$RenderSection arg0)
method_52838(class_846$class_851 arg0)
method_52838(ChunkBuilder$BuiltChunk arg0)
private static void
lambda$scheduleFullUpdate$1(SectionOcclusionGraph$GraphState arg0, SectionOcclusionGraph$Node arg1)
method_52824(class_8679$class_8681 arg0, class_8679$class_762 arg1)
method_52824(ChunkRenderingDataPreparer$PreparerState arg0, ChunkRenderingDataPreparer$ChunkInfo info)
private static void
lambda$addSectionsInFrustum$0(List arg0, List arg1, Octree$Node arg2, boolean arg3, int arg4, boolean arg5)
method_62924(List arg0, List arg1, class_10143$class_10147 arg2, boolean arg3, int arg4, boolean arg5)
method_62924(List arg0, List arg1, Octree$Node node, boolean skipVisibilityCheck, int depth, boolean nearCenter)