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 int
HALF_SECTION_SIZE
field_1_5776
field_1_5776
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 AtomicBoolean
needsFrustumUpdate
field_45626
needsUpdate
private final it.unimi.dsi.fastutil.longs.LongOpenHashSet
emptySections
field_1_5777
loadedSections
private final it.unimi.dsi.fastutil.longs.LongOpenHashSet
loadedChunks
field_1_7000
loadedChunks
private volatile BlockingQueue<ChunkBuilder$BuiltChunk>
nextSectionsToPropagateFrom
field_1_5779
propagationQueue
private double
prevCamX
field_1_5780
cameraXd8
private double
prevCamY
field_1_5781
cameraYd8
private double
prevCamZ
field_1_5782
cameraZd8
private int
prevFov
field_1_5783
fov
private boolean
lastSmartCull
field_1_5778
chunkCullingEnabled

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public void
waitAndReset(ViewArea viewArea)
method_52826(class_769 arg0)
setStorage(BuiltChunkStorage storage)
public it.unimi.dsi.fastutil.longs.LongCollection
expectedChunks()
method_1_6235()
getLoadedChunkPositions()
public void
invalidate()
method_52817()
scheduleTerrainUpdate()
public void
invalidateIfNeeded(CameraRenderState camera, int fov)
method_1_4987(class_12075 arg0, int arg1)
updateFromCameraRenderState(CameraRenderState cameraRenderState, int fov)
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
schedulePropagationFrom(SectionRenderDispatcher$RenderSection section)
method_52827(class_846$class_851 arg0)
schedulePropagationFrom(ChunkBuilder$BuiltChunk builtChunk)
public void
update(CameraRenderState camera, int fov, ChunkLoadingRenderState chunkLoadingRenderState)
method_52834(class_12075 arg0, int arg1, class_1_1029 arg2)
updateSectionOcclusionGraph(CameraRenderState cameraRenderState, int fov, ChunkManagerRenderState chunkManagerRenderState)
private void
scheduleFullUpdate(CameraRenderState camera)
method_52833(class_12075 arg0)
scheduleTerrainUpdate(CameraRenderState cameraRenderState)
private void
runPartialUpdate(CameraRenderState camera, it.unimi.dsi.fastutil.longs.LongSet loadedExpectedChunks)
method_52835(class_12075 arg0, it.unimi.dsi.fastutil.longs.LongSet arg1)
updateNow(CameraRenderState cameraRenderState, it.unimi.dsi.fastutil.longs.LongSet arg1)
private void
initializeQueueForFullUpdate(BlockPos cameraPosition, Queue<SectionOcclusionGraph$Node> queue)
method_1_4986(class_2338 arg0, Queue<class_8679$class_762> arg1)
doUpdateTerrain(BlockPos pos, Queue<ChunkRenderingDataPreparer$ChunkInfo> chunkInfoQueue)
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, it.unimi.dsi.fastutil.longs.LongOpenHashSet loadedChunks)
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, it.unimi.dsi.fastutil.longs.LongOpenHashSet arg6)
update(ChunkRenderingDataPreparer$RenderableChunks renderableChunks, Vec3d pos, Queue<ChunkRenderingDataPreparer$ChunkInfo> chunkInfoQueue, boolean cullChunks, Consumer<ChunkBuilder$BuiltChunk> loadedSectionCallback, it.unimi.dsi.fastutil.longs.LongOpenHashSet loadedSections, it.unimi.dsi.fastutil.longs.LongOpenHashSet loadedChunks)
private static Frustum
offsetFrustum(Frustum frustum)
method_1_4989(class_4604 arg0)
expandFrustum(Frustum frustum)
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 void
updateEmptySections(it.unimi.dsi.fastutil.longs.LongOpenHashSet added, it.unimi.dsi.fastutil.longs.LongOpenHashSet removed)
method_1_4990(it.unimi.dsi.fastutil.longs.LongOpenHashSet arg0, it.unimi.dsi.fastutil.longs.LongOpenHashSet arg1)
updateLoadedSections(it.unimi.dsi.fastutil.longs.LongOpenHashSet newSections, it.unimi.dsi.fastutil.longs.LongOpenHashSet updatedSections)
public void
updateLoadedChunks(it.unimi.dsi.fastutil.longs.LongOpenHashSet added, it.unimi.dsi.fastutil.longs.LongOpenHashSet removed)
method_1_6239(it.unimi.dsi.fastutil.longs.LongOpenHashSet arg0, it.unimi.dsi.fastutil.longs.LongOpenHashSet arg1)
updateLoadedChunks(it.unimi.dsi.fastutil.longs.LongOpenHashSet loadedChunks, it.unimi.dsi.fastutil.longs.LongOpenHashSet unloadedChunks)
public Octree
getOctree()
method_62925()
getOctree()
private static it.unimi.dsi.fastutil.longs.LongList
lambda$runUpdates$0(long arg0)
method_1_6238(long arg0)
method_1_6238(long chunkPos)
private static double
lambda$initializeQueueForFullUpdate$0(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$2(Frustum arg0, SectionRenderDispatcher$RenderSection arg1)
method_52829(class_4604 arg0, class_846$class_851 arg1)
method_52829(Frustum arg0, ChunkBuilder$BuiltChunk builtChunk)
private void
lambda$runPartialUpdate$0(SectionOcclusionGraph$GraphState arg0, long arg1)
method_1_6236(class_8679$class_8681 arg0, long arg1)
method_1_6236(ChunkRenderingDataPreparer$PreparerState arg0, long arg1)
private void
lambda$runPartialUpdate$1(long arg0)
method_1_6237(long arg0)
method_1_6237(long arg0)
private void
lambda$scheduleFullUpdate$0(CameraRenderState arg0, it.unimi.dsi.fastutil.longs.LongOpenHashSet arg1, it.unimi.dsi.fastutil.longs.LongOpenHashSet arg2)
method_1_4988(class_12075 arg0, it.unimi.dsi.fastutil.longs.LongOpenHashSet arg1, it.unimi.dsi.fastutil.longs.LongOpenHashSet arg2)
method_1_4988(CameraRenderState arg0, it.unimi.dsi.fastutil.longs.LongOpenHashSet arg1, it.unimi.dsi.fastutil.longs.LongOpenHashSet arg2)
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)