Package net.minecraft.client.renderer
Class SectionOcclusionGraph
java.lang.Object
net.minecraft.client.renderer.SectionOcclusionGraph
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static final record
(package private) static final record
(package private) static class
protected static class
(package private) static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final double
private final AtomicReference<SectionOcclusionGraph.GraphState>
private static final Direction[]
private Future<?>
private static final org.slf4j.Logger
private static final int
private final AtomicBoolean
private boolean
private final AtomicReference<SectionOcclusionGraph.GraphEvents>
private ViewArea
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
addNeighbors
(SectionOcclusionGraph.GraphEvents p_295866_, ChunkPos p_295968_) void
addSectionsInFrustum
(Frustum p_294180_, List<SectionRenderDispatcher.RenderSection> p_296160_) boolean
protected SectionOcclusionGraph.Node
getNode
(SectionRenderDispatcher.RenderSection p_296364_) getRelativeFrom
(BlockPos p_294150_, SectionRenderDispatcher.RenderSection p_295211_, Direction p_294491_) private void
initializeQueueForFullUpdate
(Camera p_295148_, Queue<SectionOcclusionGraph.Node> p_294801_) void
private boolean
isInViewDistance
(BlockPos p_295639_, BlockPos p_295511_) void
onChunkLoaded
(ChunkPos p_294122_) void
private void
private void
runPartialUpdate
(boolean p_294795_, Frustum p_294341_, List<SectionRenderDispatcher.RenderSection> p_294796_, Vec3 p_295915_) private void
runUpdates
(SectionOcclusionGraph.GraphStorage p_295507_, Vec3 p_294343_, Queue<SectionOcclusionGraph.Node> p_295598_, boolean p_295668_, Consumer<SectionRenderDispatcher.RenderSection> p_295393_) private void
scheduleFullUpdate
(boolean p_294514_, Camera p_295663_, Vec3 p_295096_) void
update
(boolean p_294298_, Camera p_294529_, Frustum p_294426_, List<SectionRenderDispatcher.RenderSection> p_295280_) void
waitAndReset
(ViewArea p_294431_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
DIRECTIONS
-
MINIMUM_ADVANCED_CULLING_DISTANCE
private static final int MINIMUM_ADVANCED_CULLING_DISTANCE- See Also:
-
CEILED_SECTION_DIAGONAL
private static final double CEILED_SECTION_DIAGONAL -
needsFullUpdate
private boolean needsFullUpdate -
fullUpdateTask
-
viewArea
-
currentGraph
-
nextGraphEvents
-
needsFrustumUpdate
-
-
Constructor Details
-
SectionOcclusionGraph
public SectionOcclusionGraph()
-
-
Method Details
-
waitAndReset
-
invalidate
public void invalidate() -
addSectionsInFrustum
public void addSectionsInFrustum(Frustum p_294180_, List<SectionRenderDispatcher.RenderSection> p_296160_) -
consumeFrustumUpdate
public boolean consumeFrustumUpdate() -
onChunkLoaded
-
onSectionCompiled
-
update
public void update(boolean p_294298_, Camera p_294529_, Frustum p_294426_, List<SectionRenderDispatcher.RenderSection> p_295280_) -
scheduleFullUpdate
-
runPartialUpdate
private void runPartialUpdate(boolean p_294795_, Frustum p_294341_, List<SectionRenderDispatcher.RenderSection> p_294796_, Vec3 p_295915_) -
queueSectionsWithNewNeighbors
-
addNeighbors
-
initializeQueueForFullUpdate
private void initializeQueueForFullUpdate(Camera p_295148_, Queue<SectionOcclusionGraph.Node> p_294801_) -
runUpdates
private void runUpdates(SectionOcclusionGraph.GraphStorage p_295507_, Vec3 p_294343_, Queue<SectionOcclusionGraph.Node> p_295598_, boolean p_295668_, Consumer<SectionRenderDispatcher.RenderSection> p_295393_) -
isInViewDistance
-
getRelativeFrom
@Nullable private SectionRenderDispatcher.RenderSection getRelativeFrom(BlockPos p_294150_, SectionRenderDispatcher.RenderSection p_295211_, Direction p_294491_) -
getNode
@Nullable protected SectionOcclusionGraph.Node getNode(SectionRenderDispatcher.RenderSection p_296364_)
-