net.minecraft.server.world

public abstract class ChunkLevelManager

net.minecraft.server.level.DistanceManager
net.minecraft.class_3204
net.minecraft.server.world.ChunkLevelManager

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_16211
LOGGER
private static final int
PLAYER_TICKET_LEVEL
field_17452
NEARBY_PLAYER_TICKET_LEVEL
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<it.unimi.dsi.fastutil.objects.ObjectSet<ServerPlayerEntity>>
playersPerChunk
field_17453
playersByChunkPos
private final TicketDistanceLevelPropagator
loadingChunkTracker
field_55589
ticketDistanceLevelPropagator
private final SimulationDistanceLevelPropagator
simulationChunkTracker
field_55590
simulationDistanceLevelPropagator
private final ChunkTicketManager
ticketStorage
field_55591
ticketManager
private final ChunkLevelManager$DistanceFromNearestPlayerTracker
naturalSpawnChunkCounter
field_17454
distanceFromNearestPlayerTracker
private final ChunkLevelManager$NearbyChunkTicketUpdater
playerTicketManager
field_17455
nearbyChunkTicketUpdater
protected final Set<ChunkHolder>
chunksToUpdateFutures
field_16210
chunkHoldersWithPendingUpdates
private final ThrottledChunkTaskScheduler
ticketDispatcher
field_54044
scheduler
private final it.unimi.dsi.fastutil.longs.LongSet
ticketsToRelease
field_17459
freshPlayerTicketPositions
private final Executor
mainThreadExecutor
field_17460
mainThreadExecutor
private int
simulationDistance
field_34887
simulationDistance

Constructor summary

ModifierConstructor
protected (ChunkTicketManager ticketManager, Executor executor, Executor mainThreadExecutor)

Method summary

Modifier and TypeMethod
protected abstract boolean
isChunkToRemove(long node)
method_14035(long arg0)
isUnloaded(long pos)
protected abstract ChunkHolder
getChunk(long node)
method_14038(long arg0)
getChunkHolder(long pos)
protected abstract ChunkHolder
updateChunkScheduling(long node, int level, ChunkHolder chunk, int oldLevel)
method_14053(long arg0, int arg1, class_3193 arg2, int arg3)
setLevel(long pos, int level, ChunkHolder holder, int prevLevel)
public boolean
runAllUpdates(ChunkMap scheduler)
method_15892(class_3898 arg0)
update(ServerChunkLoadingManager chunkLoadingManager)
public void
addPlayer(SectionPos pos, ServerPlayer player)
method_14048(class_4076 arg0, class_3222 arg1)
handleChunkEnter(ChunkSectionPos pos, ServerPlayerEntity player)
public void
removePlayer(SectionPos pos, ServerPlayer player)
method_14051(class_4076 arg0, class_3222 arg1)
handleChunkLeave(ChunkSectionPos pos, ServerPlayerEntity player)
private int
getPlayerTicketLevel()
method_38633()
getPlayerSimulationLevel()
public boolean
inEntityTickingRange(long key)
method_38630(long arg0)
shouldTickEntities(long chunkPos)
public boolean
inBlockTickingRange(long key)
method_38632(long arg0)
shouldTickBlocks(long chunkPos)
public int
getChunkLevel(long key, boolean simulation)
method_66007(long arg0, boolean arg1)
getLevel(long pos, boolean forSimulation)
protected void
updatePlayerTickets(int viewDistance)
method_14049(int arg0)
setWatchDistance(int viewDistance)
public void
updateSimulationDistance(int newDistance)
method_38629(int arg0)
setSimulationDistance(int simulationDistance)
public int
getNaturalSpawnChunkCount()
method_14052()
getTickedChunkCount()
public TriState
hasPlayersNearby(long pos)
method_20800(long arg0)
shouldTick(long chunkPos)
public void
forEachEntityTickingChunk(it.unimi.dsi.fastutil.longs.LongConsumer consumer)
method_67500(it.unimi.dsi.fastutil.longs.LongConsumer arg0)
forEachBlockTickingChunk(it.unimi.dsi.fastutil.longs.LongConsumer chunkPosConsumer)
public it.unimi.dsi.fastutil.longs.LongIterator
getSpawnCandidateChunks()
method_61262()
iterateChunkPosToTick()
public String
getDebugStatus()
method_21683()
toDumpString()
public boolean
hasTickets()
method_39996()
shouldDelayShutdown()
private static it.unimi.dsi.fastutil.objects.ObjectSet
lambda$addPlayer$0(long arg0)
method_17655(long arg0)
method_17655(long sectionPos)
private void
lambda$runAllUpdates$1(long arg0, ChunkResult arg1)
method_17642(long arg0, class_9259 arg1)
method_17642(long arg0, OptionalChunk optionalChunk)
private void
lambda$runAllUpdates$2(long arg0)
method_17656(long arg0)
method_17656(long arg0)
private static void
lambda$runAllUpdates$3()
method_17652()
method_17652()
private static boolean
lambda$runAllUpdates$0(Ticket arg0)
method_14040(class_3228 arg0)
method_14040(ChunkTicket ticket)