net.minecraft.server.level

public abstract class DistanceManager

aro
net.minecraft.server.level.DistanceManager
net.minecraft.class_3204
net.minecraft.server.world.ChunkLevelManager
net.minecraft.src.C_5442_

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
a
LOGGER
field_16211
LOGGER
f_140758_
static final int
c
PLAYER_TICKET_LEVEL
field_17452
NEARBY_PLAYER_TICKET_LEVEL
f_140759_
final it.unimi.dsi.fastutil.longs.Long2ObjectMap<it.unimi.dsi.fastutil.objects.ObjectSet<ServerPlayer>>
d
playersPerChunk
field_17453
playersByChunkPos
f_140760_
private final LoadingChunkTracker
e
loadingChunkTracker
field_55589
ticketDistanceLevelPropagator
f_379426_
private final SimulationChunkTracker
f
simulationChunkTracker
field_55590
simulationDistanceLevelPropagator
f_380308_
final TicketStorage
g
ticketStorage
field_55591
ticketManager
f_380982_
private final DistanceManager$FixedPlayerDistanceChunkTracker
h
naturalSpawnChunkCounter
field_17454
distanceFromNearestPlayerTracker
f_140763_
private final DistanceManager$PlayerTicketTracker
i
playerTicketManager
field_17455
nearbyChunkTicketUpdater
f_140764_
protected final Set<ChunkHolder>
b
chunksToUpdateFutures
field_16210
chunkHoldersWithPendingUpdates
f_140765_
final ThrottlingChunkTaskDispatcher
j
ticketDispatcher
field_54044
scheduler
f_349102_
final it.unimi.dsi.fastutil.longs.LongSet
k
ticketsToRelease
field_17459
freshPlayerTicketPositions
f_140769_
final Executor
l
mainThreadExecutor
field_17460
mainThreadExecutor
f_140770_
private int
m
simulationDistance
field_34887
simulationDistance
f_183902_

Constructor summary

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

Method summary

Modifier and TypeMethod
protected abstract boolean
a(long arg0)
isChunkToRemove(long arg0)
method_14035(long arg0)
isUnloaded(long pos)
m_7009_(long arg0)
protected abstract ChunkHolder
b(long arg0)
getChunk(long arg0)
method_14038(long arg0)
getChunkHolder(long pos)
m_7316_(long arg0)
protected abstract ChunkHolder
a(long arg0, int arg1, ard arg2, int arg3)
updateChunkScheduling(long arg0, int arg1, ChunkHolder arg2, int arg3)
method_14053(long arg0, int arg1, class_3193 arg2, int arg3)
setLevel(long pos, int level, ChunkHolder holder, int arg3)
m_7288_(long p_140781_, int p_140783_, C_5422_ arg2, int arg3)
public boolean
a(arf arg0)
runAllUpdates(ChunkMap arg0)
method_15892(class_3898 arg0)
update(ServerChunkLoadingManager chunkLoadingManager)
m_140805_(C_5429_ arg0)
public void
a(jz arg0, asc arg1)
addPlayer(SectionPos arg0, ServerPlayer arg1)
method_14048(class_4076 arg0, class_3222 arg1)
handleChunkEnter(ChunkSectionPos pos, ServerPlayerEntity player)
m_140802_(C_4710_ p_140804_, C_13_ arg1)
public void
b(jz arg0, asc arg1)
removePlayer(SectionPos arg0, ServerPlayer arg1)
method_14051(class_4076 arg0, class_3222 arg1)
handleChunkLeave(ChunkSectionPos pos, ServerPlayerEntity player)
m_140828_(C_4710_ p_140830_, C_13_ arg1)
private int
e()
getPlayerTicketLevel()
method_38633()
getPlayerSimulationLevel()
m_183918_()
public boolean
c(long arg0)
inEntityTickingRange(long arg0)
method_38630(long arg0)
shouldTickEntities(long chunkPos)
m_183913_(long arg0)
public boolean
d(long arg0)
inBlockTickingRange(long arg0)
method_38632(long arg0)
shouldTickBlocks(long chunkPos)
m_183916_(long arg0)
public int
a(long arg0, boolean arg1)
getChunkLevel(long arg0, boolean arg1)
method_66007(long arg0, boolean arg1)
getLevel(long pos, boolean forSimulation)
m_387333_(long p_394642_, boolean arg1)
protected void
a(int arg0)
updatePlayerTickets(int arg0)
method_14049(int arg0)
setWatchDistance(int viewDistance)
m_140777_(int arg0)
public void
b(int arg0)
updateSimulationDistance(int arg0)
method_38629(int arg0)
setSimulationDistance(int simulationDistance)
m_183911_(int arg0)
public int
a()
getNaturalSpawnChunkCount()
method_14052()
getTickedChunkCount()
m_140816_()
public TriState
e(long arg0)
hasPlayersNearby(long arg0)
method_20800(long arg0)
shouldTick(long chunkPos)
m_140847_(long arg0)
public void
a(it.unimi.dsi.fastutil.longs.LongConsumer arg0)
forEachEntityTickingChunk(it.unimi.dsi.fastutil.longs.LongConsumer arg0)
method_67500(it.unimi.dsi.fastutil.longs.LongConsumer arg0)
forEachBlockTickingChunk(it.unimi.dsi.fastutil.longs.LongConsumer chunkPosConsumer)
m_385840_(it.unimi.dsi.fastutil.longs.LongConsumer arg0)
public it.unimi.dsi.fastutil.longs.LongIterator
b()
getSpawnCandidateChunks()
method_61262()
iterateChunkPosToTick()
m_356328_()
public String
c()
getDebugStatus()
method_21683()
toDumpString()
m_140837_()
public boolean
d()
hasTickets()
method_39996()
shouldDelayShutdown()
m_201911_()