net.minecraft.server.level

public abstract class DistanceManager

arv
net.minecraft.server.level.DistanceManager
net.minecraft.class_3204
net.minecraft.server.world.ChunkTicketManager
net.minecraft.server.level.ChunkMapDistance

Field summary

Modifier and TypeField
static final org.slf4j.Logger
a
LOGGER
field_16211
LOGGER
static final int
b
PLAYER_TICKET_LEVEL
field_17452
NEARBY_PLAYER_TICKET_LEVEL
private static final int
c
INITIAL_TICKET_LIST_CAPACITY
field_29765
field_29765
final it.unimi.dsi.fastutil.longs.Long2ObjectMap<it.unimi.dsi.fastutil.objects.ObjectSet<ServerPlayer>>
d
playersPerChunk
field_17453
playersByChunkPos
final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<SortedArraySet<Ticket<?>>>
e
tickets
field_13895
ticketsByPosition
private final DistanceManager$ChunkTicketTracker
f
ticketTracker
field_18252
distanceFromTicketTracker
private final DistanceManager$FixedPlayerDistanceChunkTracker
g
naturalSpawnChunkCounter
field_17454
distanceFromNearestPlayerTracker
private final TickingTracker
h
tickingTicketsTracker
field_34886
simulationDistanceTracker
private final DistanceManager$PlayerTicketTracker
i
playerTicketManager
field_17455
nearbyChunkTicketUpdater
final Set<ChunkHolder>
j
chunksToUpdateFutures
field_16210
chunkHoldersWithPendingUpdates
final ThrottlingChunkTaskDispatcher
k
ticketDispatcher
field_54044
scheduler
final it.unimi.dsi.fastutil.longs.LongSet
l
ticketsToRelease
field_17459
freshPlayerTicketPositions
final Executor
m
mainThreadExecutor
field_17460
mainThreadExecutor
private long
n
ticketTickCounter
field_13894
age
private int
o
simulationDistance
field_34887
simulationDistance

Constructor summary

ModifierConstructor
protected (Executor workerExecutor, Executor mainThreadExecutor)

Method summary

Modifier and TypeMethod
protected void
a()
purgeStaleTickets()
method_14045()
purgeExpiredTickets()
private static int
a(baw<asm<?>> arg0)
getTicketLevelAt(SortedArraySet<Ticket<?>> arg0)
method_14046(class_4706<class_3228<?>> arg0)
getLevel(SortedArraySet<ChunkTicket<?>> tickets)
protected abstract boolean
a(long arg0)
isChunkToRemove(long arg0)
method_14035(long arg0)
isUnloaded(long pos)
protected abstract ChunkHolder
b(long arg0)
getChunk(long arg0)
method_14038(long arg0)
getChunkHolder(long pos)
protected abstract ChunkHolder
a(long arg0, int arg1, ark 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)
public boolean
a(arm arg0)
runAllUpdates(ChunkMap arg0)
method_15892(class_3898 arg0)
update(ServerChunkLoadingManager chunkLoadingManager)
void
a(long arg0, asm<?> arg1)
addTicket(long arg0, Ticket<?> arg1)
method_14042(long arg0, class_3228<?> arg1)
addTicket(long position, ChunkTicket<?> ticket)
void
b(long arg0, asm<?> arg1)
removeTicket(long arg0, Ticket<?> arg1)
method_17645(long arg0, class_3228<?> arg1)
removeTicket(long pos, ChunkTicket<?> ticket)
public <T> void
a(asn<T> arg0, dgo 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)
public <T> void
b(asn<T> arg0, dgo 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)
public <T> void
c(asn<T> arg0, dgo 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)
public <T> void
d(asn<T> arg0, dgo 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)
private SortedArraySet<Ticket<?>>
g(long arg0)
getTickets(long arg0)
method_14050(long arg0)
getTicketSet(long position)
protected void
a(dgo arg0, boolean arg1)
updateChunkForced(ChunkPos arg0, boolean arg1)
method_14036(class_1923 arg0, boolean arg1)
setChunkForced(ChunkPos pos, boolean forced)
public void
a(kj arg0, asi arg1)
addPlayer(SectionPos arg0, ServerPlayer arg1)
method_14048(class_4076 arg0, class_3222 arg1)
handleChunkEnter(ChunkSectionPos pos, ServerPlayerEntity player)
public void
b(kj arg0, asi arg1)
removePlayer(SectionPos arg0, ServerPlayer arg1)
method_14051(class_4076 arg0, class_3222 arg1)
handleChunkLeave(ChunkSectionPos pos, ServerPlayerEntity player)
private int
i()
getPlayerTicketLevel()
method_38633()
getPlayerSimulationLevel()
public boolean
c(long arg0)
inEntityTickingRange(long arg0)
method_38630(long arg0)
shouldTickEntities(long chunkPos)
public boolean
d(long arg0)
inBlockTickingRange(long arg0)
method_38632(long arg0)
shouldTickBlocks(long chunkPos)
protected String
e(long arg0)
getTicketDebugString(long arg0)
method_21623(long arg0)
getTicket(long pos)
protected void
a(int arg0)
updatePlayerTickets(int arg0)
method_14049(int arg0)
setWatchDistance(int viewDistance)
public void
b(int arg0)
updateSimulationDistance(int arg0)
method_38629(int arg0)
setSimulationDistance(int simulationDistance)
public int
b()
getNaturalSpawnChunkCount()
method_14052()
getTickedChunkCount()
public boolean
f(long arg0)
hasPlayersNearby(long arg0)
method_20800(long arg0)
shouldTick(long chunkPos)
public it.unimi.dsi.fastutil.longs.LongIterator
c()
getSpawnCandidateChunks()
method_61262()
iterateChunkPosToTick()
public String
d()
getDebugStatus()
method_21683()
toDumpString()
private void
a(String arg0)
dumpTickets(String arg0)
method_34876(String arg0)
dump(String path)
TickingTracker
e()
tickingTracker()
method_38631()
getSimulationDistanceTracker()
public it.unimi.dsi.fastutil.longs.LongSet
f()
getTickingChunks()
method_61263()
getChunks()
public void
g()
removeTicketsOnClosing()
method_39995()
removePersistentTickets()
public boolean
h()
hasTickets()
method_39996()
shouldDelayShutdown()