net.minecraft.server.level

public abstract class DistanceManager

afz
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_
private static final int
b
ENTITY_TICKING_RANGE
field_29764
field_29764
f_143205_
static final int
c
PLAYER_TICKET_LEVEL
field_17452
NEARBY_PLAYER_TICKET_LEVEL
f_140759_
private static final int
d
INITIAL_TICKET_LIST_CAPACITY
field_29765
field_29765
f_143206_
private static final int
e
ENTITY_TICKING_LEVEL_THRESHOLD
field_34884
field_34884
f_183899_
private static final int
f
BLOCK_TICKING_LEVEL_THRESHOLD
field_34885
field_34885
f_183900_
final it.unimi.dsi.fastutil.longs.Long2ObjectMap<it.unimi.dsi.fastutil.objects.ObjectSet<ServerPlayer>>
g
playersPerChunk
field_17453
playersByChunkPos
f_140760_
final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<SortedArraySet<Ticket<?>>>
h
tickets
field_13895
ticketsByPosition
f_140761_
private final DistanceManager$ChunkTicketTracker
i
ticketTracker
field_18252
distanceFromTicketTracker
f_140762_
private final DistanceManager$FixedPlayerDistanceChunkTracker
j
naturalSpawnChunkCounter
field_17454
distanceFromNearestPlayerTracker
f_140763_
private final TickingTracker
k
tickingTicketsTracker
field_34886
simulationDistanceTracker
f_183901_
private final DistanceManager$PlayerTicketTracker
l
playerTicketManager
field_17455
nearbyChunkTicketUpdater
f_140764_
final Set<ChunkHolder>
m
chunksToUpdateFutures
field_16210
chunkHolders
f_140765_
final ChunkTaskPriorityQueueSorter
n
ticketThrottler
field_17456
levelUpdateListener
f_140766_
final ProcessorHandle<ChunkTaskPriorityQueueSorter$Message<Runnable>>
o
ticketThrottlerInput
field_17457
playerTicketThrottler
f_140767_
final ProcessorHandle<ChunkTaskPriorityQueueSorter$Release>
p
ticketThrottlerReleaser
field_17458
playerTicketThrottlerUnblocker
f_140768_
final it.unimi.dsi.fastutil.longs.LongSet
q
ticketsToRelease
field_17459
chunkPositions
f_140769_
final Executor
r
mainThreadExecutor
field_17460
mainThreadExecutor
f_140770_
private long
s
ticketTickCounter
field_13894
age
f_140771_
private int
t
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(amt<agk<?>> 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, afs 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(aft arg0)
runAllUpdates(ChunkMap arg0)
method_15892(class_3898 arg0)
tick(ThreadedAnvilChunkStorage chunkStorage)
m_140805_(C_5429_ arg0)
void
a(long arg0, agk<?> 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, agk<?> 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(agl<T> arg0, cge 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(agl<T> arg0, cge 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(agl<T> arg0, cge 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(agl<T> arg0, cge 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(cge 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(hq arg0, agh 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(hq arg0, agh 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_()