net.minecraft.server.level

public abstract class DistanceManager

abk
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.apache.logging.log4j.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_
final it.unimi.dsi.fastutil.longs.Long2ObjectMap<it.unimi.dsi.fastutil.objects.ObjectSet<ServerPlayer>>
e
playersPerChunk
field_17453
playersByChunkPos
f_140760_
final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<SortedArraySet<Ticket<?>>>
f
tickets
field_13895
ticketsByPosition
f_140761_
private final DistanceManager$ChunkTicketTracker
g
ticketTracker
field_18252
distanceFromTicketTracker
f_140762_
private final DistanceManager$FixedPlayerDistanceChunkTracker
h
naturalSpawnChunkCounter
field_17454
distanceFromNearestPlayerTracker
f_140763_
private final DistanceManager$PlayerTicketTracker
i
playerTicketManager
field_17455
nearbyChunkTicketUpdater
f_140764_
final Set<ChunkHolder>
j
chunksToUpdateFutures
field_16210
chunkHolders
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
chunkPositions
f_140769_
final Executor
o
mainThreadExecutor
field_17460
mainThreadExecutor
f_140770_
private long
p
ticketTickCounter
field_13894
age
f_140771_

Constructor summary

ModifierConstructor
protected (Executor workerExecutor, Executor mainThreadExecutor)

Method summary

Modifier and TypeMethod
protected void
a()
purgeStaleTickets()
method_14045()
purge()
m_140776_()
purgeTickets()
private static int
a(ahg<abv<?>> arg0)
getTicketLevelAt(SortedArraySet<Ticket<?>> arg0)
method_14046(class_4706<class_3228<?>> arg0)
getLevel(SortedArraySet<ChunkTicket<?>> arg0)
m_140797_(C_193_<C_17_<?>> p_140798_)
getLowestTicketLevel(ArraySetSorted<Ticket<?>> arg0)
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, abd 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(abe arg0)
runAllUpdates(ChunkMap arg0)
method_15892(class_3898 arg0)
tick(ThreadedAnvilChunkStorage arg0)
m_140805_(C_5429_ arg0)
void
a(long arg0, abv<?> 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)
addTicket(long arg0, Ticket<?> arg1)
void
b(long arg0, abv<?> 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)
removeTicket(long arg0, Ticket<?> arg1)
public <T> void
a(abw<T> arg0, bvv 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(abw<T> arg0, bvv 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(abw<T> arg0, bvv 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)
addTicket(TicketType<T> arg0, ChunkCoordIntPair arg1, int arg2, T arg3)
public <T> void
d(abw<T> arg0, bvv 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)
removeTicket(TicketType<T> arg0, ChunkCoordIntPair arg1, int arg2, T arg3)
private SortedArraySet<Ticket<?>>
e(long arg0)
getTickets(long arg0)
method_14050(long arg0)
getTicketSet(long position)
m_140857_(long arg0)
protected void
a(bvv 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(gz arg0, abs 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(gz arg0, abs 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)
protected String
c(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 int
b()
getNaturalSpawnChunkCount()
method_14052()
getSpawningChunkCount()
m_140816_()
public boolean
d(long arg0)
hasPlayersNearby(long arg0)
method_20800(long arg0)
method_20800(long arg0)
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)
method_34876(String arg0)
m_143207_(String arg0)