Package net.minecraft.server.level
Class TickingTracker
java.lang.Object
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint
net.minecraft.server.level.ChunkTracker
net.minecraft.server.level.TickingTracker
-
Field Summary
Modifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.longs.Long2ByteMap
private static final int
static final int
private final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap
<SortedArraySet<Ticket<?>>> Fields inherited from class net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint
levelCount, SOURCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
<T> void
addTicket
(TicketType<T> p_184155_, ChunkPos p_184156_, int p_184157_, T p_184158_) protected int
getLevel
(long p_184174_) int
protected int
getLevelFromSource
(long p_184164_) getTicketDebugString
(long p_184176_) private int
getTicketLevelAt
(SortedArraySet<Ticket<?>> p_184160_) private SortedArraySet
<Ticket<?>> getTickets
(long p_184178_) void
removeTicket
(long p_184166_, Ticket<?> p_184167_) <T> void
removeTicket
(TicketType<T> p_184169_, ChunkPos p_184170_, int p_184171_, T p_184172_) void
replacePlayerTicketsLevel
(int p_184147_) void
protected void
setLevel
(long p_184149_, int p_184150_) Methods inherited from class net.minecraft.server.level.ChunkTracker
checkNeighborsAfterUpdate, computeLevelFromNeighbor, getComputedLevel, isSource, update
Methods inherited from class net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint
checkEdge, checkNeighbor, checkNode, getQueueSize, hasWork, removeFromQueue, removeIf, runUpdates
-
Field Details
-
MAX_LEVEL
public static final int MAX_LEVEL- See Also:
-
INITIAL_TICKET_LIST_CAPACITY
private static final int INITIAL_TICKET_LIST_CAPACITY- See Also:
-
chunks
protected final it.unimi.dsi.fastutil.longs.Long2ByteMap chunks -
tickets
-
-
Constructor Details
-
TickingTracker
public TickingTracker()
-
-
Method Details
-
getTickets
-
getTicketLevelAt
-
addTicket
-
removeTicket
-
addTicket
-
removeTicket
public <T> void removeTicket(TicketType<T> p_184169_, ChunkPos p_184170_, int p_184171_, T p_184172_) -
replacePlayerTicketsLevel
public void replacePlayerTicketsLevel(int p_184147_) -
getLevelFromSource
protected int getLevelFromSource(long p_184164_) - Specified by:
getLevelFromSource
in classChunkTracker
-
getLevel
-
getLevel
protected int getLevel(long p_184174_) - Specified by:
getLevel
in classDynamicGraphMinFixedPoint
-
setLevel
protected void setLevel(long p_184149_, int p_184150_) - Specified by:
setLevel
in classDynamicGraphMinFixedPoint
-
runAllUpdates
public void runAllUpdates() -
getTicketDebugString
-