Package net.minecraft.client.renderer
Class SectionOcclusionGraph
java.lang.Object
net.minecraft.client.renderer.SectionOcclusionGraph
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final record(package private) static final record(package private) static classprotected static class(package private) static class - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final doubleprivate final AtomicReference<SectionOcclusionGraph.GraphState>private static final Direction[]private Future<?>private static final org.slf4j.Loggerprivate static final intprivate final AtomicBooleanprivate booleanprivate final AtomicReference<SectionOcclusionGraph.GraphEvents>private ViewArea - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddNeighbors(SectionOcclusionGraph.GraphEvents p_295866_, ChunkPos p_295968_) voidaddSectionsInFrustum(Frustum p_294180_, List<SectionRenderDispatcher.RenderSection> p_296160_) booleanprotected SectionOcclusionGraph.NodegetNode(SectionRenderDispatcher.RenderSection p_296364_) getRelativeFrom(BlockPos p_294150_, SectionRenderDispatcher.RenderSection p_295211_, Direction p_294491_) private voidinitializeQueueForFullUpdate(Camera p_295148_, Queue<SectionOcclusionGraph.Node> p_294801_) voidprivate booleanisInViewDistance(BlockPos p_295639_, BlockPos p_295511_) voidonChunkLoaded(ChunkPos p_294122_) voidprivate voidprivate voidrunPartialUpdate(boolean p_294795_, Frustum p_294341_, List<SectionRenderDispatcher.RenderSection> p_294796_, Vec3 p_295915_) private voidrunUpdates(SectionOcclusionGraph.GraphStorage p_295507_, Vec3 p_294343_, Queue<SectionOcclusionGraph.Node> p_295598_, boolean p_295668_, Consumer<SectionRenderDispatcher.RenderSection> p_295393_) private voidscheduleFullUpdate(boolean p_294514_, Camera p_295663_, Vec3 p_295096_) voidupdate(boolean p_294298_, Camera p_294529_, Frustum p_294426_, List<SectionRenderDispatcher.RenderSection> p_295280_) voidwaitAndReset(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_)  
 -