net.minecraft.server.level

public abstract class DistanceManager

aqx
net.minecraft.server.level.DistanceManager
net.minecraft.class_3204
net.minecraft.unmapped.C_mrjqexcd
net.minecraft.server.world.ChunkTicketManager
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
f_ohspuwdq
LOGGER
LOGGER
f_140758_
static final int
b
PLAYER_TICKET_LEVEL
field_17452
f_iegrnkfv
NEARBY_PLAYER_TICKET_LEVEL
NEARBY_PLAYER_TICKET_LEVEL
f_140759_
private static final int
c
INITIAL_TICKET_LIST_CAPACITY
field_29765
f_aubhbkfo
field_29765
INITIAL_TICKET_LIST_CAPACITY
f_143206_
final it.unimi.dsi.fastutil.longs.Long2ObjectMap<it.unimi.dsi.fastutil.objects.ObjectSet<ServerPlayer>>
d
playersPerChunk
field_17453
f_kacgfmjt
playersByChunkPos
playersByChunkPos
f_140760_
final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<SortedArraySet<Ticket<?>>>
e
tickets
field_13895
f_apmekamt
ticketsByPosition
ticketsByPosition
f_140761_
private final DistanceManager$ChunkTicketTracker
f
ticketTracker
field_18252
f_nmajryqc
distanceFromTicketTracker
distanceFromTicketTracker
f_140762_
private final DistanceManager$FixedPlayerDistanceChunkTracker
g
naturalSpawnChunkCounter
field_17454
f_yboexyoa
distanceFromNearestPlayerTracker
distanceFromNearestPlayerTracker
f_140763_
private final TickingTracker
h
tickingTicketsTracker
field_34886
f_znxdrwsz
simulationDistanceTracker
tickTracker
f_183901_
private final DistanceManager$PlayerTicketTracker
i
playerTicketManager
field_17455
f_bndyzmkn
nearbyChunkTicketUpdater
nearbyChunkTicketUpdater
f_140764_
final Set<ChunkHolder>
j
chunksToUpdateFutures
field_16210
f_nmvhbjne
chunkHoldersWithPendingUpdates
chunkHolders
f_140765_
final ChunkTaskPriorityQueueSorter
k
ticketThrottler
field_17456
f_dlfrrpuw
levelUpdateListener
levelUpdateListener
f_140766_
final ProcessorHandle<ChunkTaskPriorityQueueSorter$Message<Runnable>>
l
ticketThrottlerInput
field_17457
f_dznqcely
playerTicketThrottler
playerTicketThrottler
f_140767_
final ProcessorHandle<ChunkTaskPriorityQueueSorter$Release>
m
ticketThrottlerReleaser
field_17458
f_eqtfbgdj
playerTicketThrottlerUnblocker
playerTicketThrottlerUnblocker
f_140768_
final it.unimi.dsi.fastutil.longs.LongSet
n
ticketsToRelease
field_17459
f_staagfqz
freshPlayerTicketPositions
chunkPositions
f_140769_
final Executor
o
mainThreadExecutor
field_17460
f_tdkfworo
mainThreadExecutor
mainThreadExecutor
f_140770_
private long
p
ticketTickCounter
field_13894
f_uhuxgctz
age
age
f_140771_
private int
q
simulationDistance
field_34887
f_etfumpbb
simulationDistance
simulationDistance
f_183902_

Constructor summary

ModifierConstructor
protected (Executor workerExecutor, Executor mainThreadExecutor)

Method summary

Modifier and TypeMethod
protected void
a()
purgeStaleTickets()
method_14045()
m_unmqoptp()
purge()
purge()
m_140776_()
private static int
a(azr<arj<?>> arg0)
getTicketLevelAt(SortedArraySet<Ticket<?>> arg0)
method_14046(class_4706<class_3228<?>> arg0)
m_kqmjofjz(C_ikcbcxix<C_sstigolf<?>> arg0)
getLevel(SortedArraySet<ChunkTicket<?>> tickets)
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)
m_uwetgvxd(long arg0)
isUnloaded(long pos)
isUnloaded(long pos)
m_7009_(long arg0)
protected abstract ChunkHolder
b(long arg0)
getChunk(long arg0)
method_14038(long arg0)
m_tfhlzxsz(long arg0)
getChunkHolder(long pos)
getChunkHolder(long pos)
m_7316_(long arg0)
protected abstract ChunkHolder
a(long arg0, int arg1, aqm arg2, int arg3)
updateChunkScheduling(long arg0, int arg1, ChunkHolder arg2, int arg3)
method_14053(long arg0, int arg1, class_3193 arg2, int arg3)
m_nysntiui(long arg0, int arg1, C_gkderdjo arg2, int arg3)
setLevel(long pos, int level, ChunkHolder holder, int arg3)
setLevel(long pos, int level, ChunkHolder holder, int previousLevel)
m_7288_(long p_140781_, int p_140783_, C_5422_ arg2, int arg3)
public boolean
a(aqo arg0)
runAllUpdates(ChunkMap arg0)
method_15892(class_3898 arg0)
m_nnsrksai(C_gxrpzacc arg0)
update(ThreadedAnvilChunkStorage chunkStorage)
tick(ThreadedChunkManager chunkStorage)
m_140805_(C_5429_ arg0)
void
a(long arg0, arj<?> arg1)
addTicket(long arg0, Ticket<?> arg1)
method_14042(long arg0, class_3228<?> arg1)
m_knyerzvr(long arg0, C_sstigolf<?> arg1)
addTicket(long position, ChunkTicket<?> ticket)
addTicket(long position, ChunkTicket<?> ticket)
m_140784_(long p_140786_, C_17_<?> arg1)
void
b(long arg0, arj<?> arg1)
removeTicket(long arg0, Ticket<?> arg1)
method_17645(long arg0, class_3228<?> arg1)
m_qkwxpxdo(long arg0, C_sstigolf<?> arg1)
removeTicket(long pos, ChunkTicket<?> ticket)
removeTicket(long pos, ChunkTicket<?> ticket)
m_140818_(long p_140820_, C_17_<?> arg1)
public <T> void
a(ark<T> arg0, dbh 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)
m_pklmcqrj(C_cuxhrvln<T> arg0, C_ynrszrtu arg1, int arg2, T arg3)
addTicketWithLevel(ChunkTicketType<T> type, ChunkPos pos, int level, T argument)
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(ark<T> arg0, dbh 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)
m_djuofpqq(C_cuxhrvln<T> arg0, C_ynrszrtu arg1, int arg2, T arg3)
removeTicketWithLevel(ChunkTicketType<T> type, ChunkPos pos, int level, T argument)
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(ark<T> arg0, dbh 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)
m_lscdcili(C_cuxhrvln<T> arg0, C_ynrszrtu arg1, int arg2, T arg3)
addTicket(ChunkTicketType<T> type, ChunkPos pos, int radius, T argument)
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(ark<T> arg0, dbh 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)
m_swihwqzz(C_cuxhrvln<T> arg0, C_ynrszrtu arg1, int arg2, T arg3)
removeTicket(ChunkTicketType<T> type, ChunkPos pos, int radius, T argument)
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)
m_pivkvkrp(long arg0)
getTicketSet(long position)
getTicketSet(long position)
m_140857_(long arg0)
protected void
a(dbh arg0, boolean arg1)
updateChunkForced(ChunkPos arg0, boolean arg1)
method_14036(class_1923 arg0, boolean arg1)
m_cnlluvdn(C_ynrszrtu arg0, boolean arg1)
setChunkForced(ChunkPos pos, boolean forced)
setChunkForced(ChunkPos pos, boolean forced)
m_140799_(C_1560_ p_140801_, boolean arg1)
public void
a(kb arg0, arg arg1)
addPlayer(SectionPos arg0, ServerPlayer arg1)
method_14048(class_4076 arg0, class_3222 arg1)
m_iakbszrz(C_zubvmeye arg0, C_mxrobsgg arg1)
handleChunkEnter(ChunkSectionPos pos, ServerPlayerEntity player)
handleChunkEnter(ChunkSectionPos pos, ServerPlayerEntity player)
m_140802_(C_4710_ p_140804_, C_13_ arg1)
public void
b(kb arg0, arg arg1)
removePlayer(SectionPos arg0, ServerPlayer arg1)
method_14051(class_4076 arg0, class_3222 arg1)
m_upzoeoxr(C_zubvmeye arg0, C_mxrobsgg arg1)
handleChunkLeave(ChunkSectionPos pos, ServerPlayerEntity player)
handleChunkLeave(ChunkSectionPos pos, ServerPlayerEntity player)
m_140828_(C_4710_ p_140830_, C_13_ arg1)
private int
g()
getPlayerTicketLevel()
method_38633()
m_sxagduat()
getPlayerSimulationLevel()
getPlayerSimulationLevel()
m_183918_()
public boolean
c(long arg0)
inEntityTickingRange(long arg0)
method_38630(long arg0)
m_pgfkvuhq(long arg0)
shouldTickEntities(long chunkPos)
shouldTickEntities(long chunkPos)
m_183913_(long arg0)
public boolean
d(long arg0)
inBlockTickingRange(long arg0)
method_38632(long arg0)
m_vasauzvg(long arg0)
shouldTickBlocks(long chunkPos)
shouldTickBlocks(long chunkPos)
m_183916_(long arg0)
protected String
e(long arg0)
getTicketDebugString(long arg0)
method_21623(long arg0)
m_ckinnuph(long arg0)
getTicket(long pos)
getTicket(long pos)
m_140838_(long arg0)
protected void
a(int arg0)
updatePlayerTickets(int arg0)
method_14049(int arg0)
m_apoaqwuw(int arg0)
setWatchDistance(int viewDistance)
setWatchDistance(int viewDistance)
m_140777_(int arg0)
public void
b(int arg0)
updateSimulationDistance(int arg0)
method_38629(int arg0)
m_qyzimyzy(int arg0)
setSimulationDistance(int simulationDistance)
setSimulationDistance(int distance)
m_183911_(int arg0)
public int
b()
getNaturalSpawnChunkCount()
method_14052()
m_dwistenj()
getTickedChunkCount()
getSpawningChunkCount()
m_140816_()
public boolean
f(long arg0)
hasPlayersNearby(long arg0)
method_20800(long arg0)
m_xggfvfua(long arg0)
shouldTick(long chunkPos)
shouldTick(long pos)
m_140847_(long arg0)
public String
c()
getDebugStatus()
method_21683()
m_ytrysmmj()
toDumpString()
toDumpString()
m_140837_()
private void
a(String arg0)
dumpTickets(String arg0)
method_34876(String arg0)
m_myrifyxp(String arg0)
dump(String path)
dumpTickets(String filePath)
m_143207_(String arg0)
TickingTracker
d()
tickingTracker()
method_38631()
m_bwjcolud()
getSimulationDistanceTracker()
getTickTracker()
m_183915_()
public void
e()
removeTicketsOnClosing()
method_39995()
m_gbfxssku()
removePersistentTickets()
removePersistentTickets()
m_201910_()
public boolean
f()
hasTickets()
method_39996()
m_coocdjno()
shouldDelayShutdown()
requiresUpdates()
m_201911_()