类 SectionOcclusionGraph
java.lang.Object
net.minecraft.client.renderer.SectionOcclusionGraph
-
嵌套类概要
嵌套类修饰符和类型类说明(专用程序包) static final record
(专用程序包) static final record
(专用程序包) static class
static class
(专用程序包) static class
-
字段概要
字段修饰符和类型字段说明private 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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private void
addNeighbors
(SectionOcclusionGraph.GraphEvents p_300825_, ChunkPos p_297758_) void
addSectionsInFrustum
(Frustum p_299761_, List<SectionRenderDispatcher.RenderSection> p_301346_, List<SectionRenderDispatcher.RenderSection> p_365911_) boolean
getNode
(SectionRenderDispatcher.RenderSection p_299335_) getRelativeFrom
(long p_369239_, SectionRenderDispatcher.RenderSection p_299737_, Direction p_301139_) private void
initializeQueueForFullUpdate
(Camera p_298889_, Queue<SectionOcclusionGraph.Node> p_297605_) void
private boolean
isInViewDistance
(long p_363726_, long p_370059_) void
onChunkReadyToRender
(ChunkPos p_299612_) private void
private void
runPartialUpdate
(boolean p_298388_, Frustum p_299940_, List<SectionRenderDispatcher.RenderSection> p_297967_, Vec3 p_299094_, it.unimi.dsi.fastutil.longs.LongOpenHashSet p_363554_) private void
runUpdates
(SectionOcclusionGraph.GraphStorage p_299200_, Vec3 p_300018_, Queue<SectionOcclusionGraph.Node> p_300570_, boolean p_300892_, Consumer<SectionRenderDispatcher.RenderSection> p_298647_, it.unimi.dsi.fastutil.longs.LongOpenHashSet p_362895_) private void
scheduleFullUpdate
(boolean p_298569_, Camera p_299582_, Vec3 p_297830_, it.unimi.dsi.fastutil.longs.LongOpenHashSet p_370191_) void
void
update
(boolean p_301275_, Camera p_298972_, Frustum p_298939_, List<SectionRenderDispatcher.RenderSection> p_300432_, it.unimi.dsi.fastutil.longs.LongOpenHashSet p_365816_) void
waitAndReset
(ViewArea p_298923_)
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
DIRECTIONS
-
MINIMUM_ADVANCED_CULLING_DISTANCE
private static final int MINIMUM_ADVANCED_CULLING_DISTANCE- 另请参阅:
-
CEILED_SECTION_DIAGONAL
private static final double CEILED_SECTION_DIAGONAL -
needsFullUpdate
private boolean needsFullUpdate -
fullUpdateTask
-
viewArea
-
currentGraph
-
nextGraphEvents
-
needsFrustumUpdate
-
-
构造器详细资料
-
SectionOcclusionGraph
public SectionOcclusionGraph()
-
-
方法详细资料
-
waitAndReset
-
invalidate
public void invalidate() -
addSectionsInFrustum
public void addSectionsInFrustum(Frustum p_299761_, List<SectionRenderDispatcher.RenderSection> p_301346_, List<SectionRenderDispatcher.RenderSection> p_365911_) -
consumeFrustumUpdate
public boolean consumeFrustumUpdate() -
onChunkReadyToRender
-
schedulePropagationFrom
-
update
public void update(boolean p_301275_, Camera p_298972_, Frustum p_298939_, List<SectionRenderDispatcher.RenderSection> p_300432_, it.unimi.dsi.fastutil.longs.LongOpenHashSet p_365816_) -
scheduleFullUpdate
-
runPartialUpdate
private void runPartialUpdate(boolean p_298388_, Frustum p_299940_, List<SectionRenderDispatcher.RenderSection> p_297967_, Vec3 p_299094_, it.unimi.dsi.fastutil.longs.LongOpenHashSet p_363554_) -
queueSectionsWithNewNeighbors
-
addNeighbors
-
initializeQueueForFullUpdate
private void initializeQueueForFullUpdate(Camera p_298889_, Queue<SectionOcclusionGraph.Node> p_297605_) -
runUpdates
private void runUpdates(SectionOcclusionGraph.GraphStorage p_299200_, Vec3 p_300018_, Queue<SectionOcclusionGraph.Node> p_300570_, boolean p_300892_, Consumer<SectionRenderDispatcher.RenderSection> p_298647_, it.unimi.dsi.fastutil.longs.LongOpenHashSet p_362895_) -
isInViewDistance
private boolean isInViewDistance(long p_363726_, long p_370059_) -
getRelativeFrom
@Nullable private SectionRenderDispatcher.RenderSection getRelativeFrom(long p_369239_, SectionRenderDispatcher.RenderSection p_299737_, Direction p_301139_) -
getNode
@Nullable public SectionOcclusionGraph.Node getNode(SectionRenderDispatcher.RenderSection p_299335_) -
getOctree
-