net.minecraft.server.level

public abstract class DistanceManager

aqk
net.minecraft.server.level.DistanceManager
net.minecraft.class_3204
net.minecraft.server.world.ChunkTicketManager
net.minecraft.src.C_5442_
net.minecraft.server.level.ChunkMapDistance

Field summary

Modifier and TypeField
static final org.slf4j.Logger
a
LOGGER
field_16211
LOGGER
f_140758_
static final int
b
PLAYER_TICKET_LEVEL
field_17452
NEARBY_PLAYER_TICKET_LEVEL
f_140759_
private static final int
c
INITIAL_TICKET_LIST_CAPACITY
field_29765
field_29765
f_143206_
final it.unimi.dsi.fastutil.longs.Long2ObjectMap<it.unimi.dsi.fastutil.objects.ObjectSet<ServerPlayer>>
d
playersPerChunk
field_17453
playersByChunkPos
f_140760_
final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<SortedArraySet<Ticket<?>>>
e
tickets
field_13895
ticketsByPosition
f_140761_
private final DistanceManager$ChunkTicketTracker
f
ticketTracker
field_18252
distanceFromTicketTracker
f_140762_
private final DistanceManager$FixedPlayerDistanceChunkTracker
g
naturalSpawnChunkCounter
field_17454
distanceFromNearestPlayerTracker
f_140763_
private final TickingTracker
h
tickingTicketsTracker
field_34886
simulationDistanceTracker
f_183901_
private final DistanceManager$PlayerTicketTracker
i
playerTicketManager
field_17455
nearbyChunkTicketUpdater
f_140764_
final Set<ChunkHolder>
j
chunksToUpdateFutures
field_16210
chunkHoldersWithPendingUpdates
f_140765_
final ChunkTaskPriorityQueueSorter
k
ticketThrottler
field_17456
levelUpdateListener
f_140766_
final ProcessorHandle<ChunkTaskPriorityQueueSorter$Message<Runnable>>
l
ticketThrottlerInput
field_17457
playerTicketThrottler
f_140767_
final ProcessorHandle<ChunkTaskPriorityQueueSorter$Release>
m
ticketThrottlerReleaser
field_17458
playerTicketThrottlerUnblocker
f_140768_
final it.unimi.dsi.fastutil.longs.LongSet
n
ticketsToRelease
field_17459
freshPlayerTicketPositions
f_140769_
final Executor
o
mainThreadExecutor
field_17460
mainThreadExecutor
f_140770_
private long
p
ticketTickCounter
field_13894
age
f_140771_
private int
q
simulationDistance
field_34887
simulationDistance
f_183902_

Constructor summary

ModifierConstructor
protected (Executor workerExecutor, Executor mainThreadExecutor)

Method summary

Modifier and TypeMethod
protected void
a()
purgeStaleTickets()
method_14045()
purge()
m_140776_()
private static int
a(azg<aqy<?>> arg0)
getTicketLevelAt(SortedArraySet<Ticket<?>> arg0)
method_14046(class_4706<class_3228<?>> arg0)
getLevel(SortedArraySet<ChunkTicket<?>> tickets)
m_140797_(C_193_<C_17_<?>> p_140798_)
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, apz 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(aqb arg0)
runAllUpdates(ChunkMap arg0)
method_15892(class_3898 arg0)
update(ServerChunkLoadingManager chunkLoadingManager)
m_140805_(C_5429_ arg0)
void
a(long arg0, aqy<?> arg1)
addTicket(long arg0, Ticket<?> arg1)
method_14042(long arg0, class_3228<?> arg1)
addTicket(long position, ChunkTicket<?> ticket)
m_140784_(long p_140786_, C_17_<?> arg1)
void
b(long arg0, aqy<?> arg1)
removeTicket(long arg0, Ticket<?> arg1)
method_17645(long arg0, class_3228<?> arg1)
removeTicket(long pos, ChunkTicket<?> ticket)
m_140818_(long p_140820_, C_17_<?> arg1)
public <T> void
a(aqz<T> arg0, dcd arg1, int arg2, T arg3)
addTicket(TicketType<T> arg0, ChunkPos arg1, int arg2, T arg3)
method_17290(class_3230<T> arg0, class_1923 arg1, int arg2, T arg3)
addTicketWithLevel(ChunkTicketType<T> type, ChunkPos pos, int level, T argument)
m_140792_(C_18_<T> p_140794_, C_1560_ p_140795_, int p_140796_, T arg3)
public <T> void
b(aqz<T> arg0, dcd arg1, int arg2, T arg3)
removeTicket(TicketType<T> arg0, ChunkPos arg1, int arg2, T arg3)
method_20444(class_3230<T> arg0, class_1923 arg1, int arg2, T arg3)
removeTicketWithLevel(ChunkTicketType<T> type, ChunkPos pos, int level, T argument)
m_140823_(C_18_<T> p_140825_, C_1560_ p_140826_, int p_140827_, T arg3)
public <T> void
c(aqz<T> arg0, dcd arg1, int arg2, T arg3)
addRegionTicket(TicketType<T> arg0, ChunkPos arg1, int arg2, T arg3)
method_17291(class_3230<T> arg0, class_1923 arg1, int arg2, T arg3)
addTicket(ChunkTicketType<T> type, ChunkPos pos, int radius, T argument)
m_140840_(C_18_<T> p_140842_, C_1560_ p_140843_, int p_140844_, T arg3)
public <T> void
d(aqz<T> arg0, dcd arg1, int arg2, T arg3)
removeRegionTicket(TicketType<T> arg0, ChunkPos arg1, int arg2, T arg3)
method_17292(class_3230<T> arg0, class_1923 arg1, int arg2, T arg3)
removeTicket(ChunkTicketType<T> type, ChunkPos pos, int radius, T argument)
m_140849_(C_18_<T> p_140851_, C_1560_ p_140852_, int p_140853_, T arg3)
private SortedArraySet<Ticket<?>>
g(long arg0)
getTickets(long arg0)
method_14050(long arg0)
getTicketSet(long position)
m_140857_(long arg0)
protected void
a(dcd arg0, boolean arg1)
updateChunkForced(ChunkPos arg0, boolean arg1)
method_14036(class_1923 arg0, boolean arg1)
setChunkForced(ChunkPos pos, boolean forced)
m_140799_(C_1560_ p_140801_, boolean arg1)
public void
a(kf arg0, aqv 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(kf arg0, aqv 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
g()
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)
protected String
e(long arg0)
getTicketDebugString(long arg0)
method_21623(long arg0)
getTicket(long pos)
m_140838_(long arg0)
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
b()
getNaturalSpawnChunkCount()
method_14052()
getTickedChunkCount()
m_140816_()
public boolean
f(long arg0)
hasPlayersNearby(long arg0)
method_20800(long arg0)
shouldTick(long chunkPos)
m_140847_(long arg0)
public String
c()
getDebugStatus()
method_21683()
toDumpString()
m_140837_()
private void
a(String arg0)
dumpTickets(String arg0)
method_34876(String arg0)
dump(String path)
m_143207_(String arg0)
TickingTracker
d()
tickingTracker()
method_38631()
getSimulationDistanceTracker()
m_183915_()
public void
e()
removeTicketsOnClosing()
method_39995()
removePersistentTickets()
m_201910_()
public boolean
f()
hasTickets()
method_39996()
shouldDelayShutdown()
m_201911_()