Class SimulationChunkTracker
java.lang.Object
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint
net.minecraft.server.level.ChunkTracker
net.minecraft.server.level.SimulationChunkTracker
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.longs.Long2ByteMapstatic final intprivate final TicketStorageFields inherited from class DynamicGraphMinFixedPoint
levelCount, SOURCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intgetLevel(long node) intprotected intgetLevelFromSource(long to) voidprotected voidsetLevel(long node, int level) Methods inherited from class ChunkTracker
checkNeighborsAfterUpdate, computeLevelFromNeighbor, getComputedLevel, isSource, updateMethods inherited from class DynamicGraphMinFixedPoint
checkEdge, checkNeighbor, checkNode, getQueueSize, hasWork, removeFromQueue, removeIf, runUpdates
-
Field Details
-
MAX_LEVEL
public static final int MAX_LEVEL- See Also:
-
chunks
protected final it.unimi.dsi.fastutil.longs.Long2ByteMap chunks -
ticketStorage
-
-
Constructor Details
-
SimulationChunkTracker
-
-
Method Details
-
getLevelFromSource
protected int getLevelFromSource(long to) - Specified by:
getLevelFromSourcein classChunkTracker
-
getLevel
-
getLevel
protected int getLevel(long node) - Specified by:
getLevelin classDynamicGraphMinFixedPoint
-
setLevel
protected void setLevel(long node, int level) - Specified by:
setLevelin classDynamicGraphMinFixedPoint
-
runAllUpdates
public void runAllUpdates()
-