net.minecraft.server.level

public abstract class DistanceManager

vd
net.minecraft.server.level.DistanceManager
net.minecraft.class_3204
net.minecraft.server.world.ChunkTicketManager
net.minecraft.world.server.TicketManager
net.minecraft.server.v1_14_R1.ChunkMapDistance

Field summary

Modifier and TypeField
private static final org.apache.logging.log4j.Logger
a
LOGGER
field_16211
LOGGER
field_219373_a
private static final int
b
PLAYER_TICKET_LEVEL
field_17452
NEARBY_PLAYER_TICKET_LEVEL
field_219374_b
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<it.unimi.dsi.fastutil.objects.ObjectSet<ServerPlayer>>
c
playersPerChunk
field_17453
playersByChunkPos
field_219375_c
private final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<it.unimi.dsi.fastutil.objects.ObjectSortedSet<Ticket<?>>>
d
tickets
field_13895
ticketsByPosition
field_219377_e
tickets
private final DistanceManager$ChunkTicketTracker
e
ticketTracker
field_18252
distanceFromTicketTracker
field_219378_f
private final DistanceManager$FixedPlayerDistanceChunkTracker
f
naturalSpawnChunkCounter
field_17454
distanceFromNearestPlayerTracker
field_219381_i
private final DistanceManager$PlayerTicketTracker
g
playerTicketManager
field_17455
nearbyChunkTicketUpdater
field_219382_j
private final Set<ChunkHolder>
h
chunksToUpdateFutures
field_16210
chunkHolders
field_219383_k
pendingChunkUpdates
private final ChunkTaskPriorityQueueSorter
i
ticketThrottler
field_17456
levelUpdateListener
field_219384_l
private final ProcessorHandle<ChunkTaskPriorityQueueSorter$Message<Runnable>>
j
ticketThrottlerInput
field_17457
playerTicketThrottler
field_219385_m
private final ProcessorHandle<ChunkTaskPriorityQueueSorter$Release>
k
ticketThrottlerReleaser
field_17458
playerTicketThrottlerSorter
field_219386_n
private final it.unimi.dsi.fastutil.longs.LongSet
l
ticketsToRelease
field_17459
chunkPositions
field_219387_o
private final Executor
m
mainThreadExecutor
field_17460
mainThreadExecutor
field_219388_p
private long
n
ticketTickCounter
field_13894
age
field_219389_q
currentTick

Constructor summary

ModifierConstructor
protected (Executor workerExecutor, Executor mainThreadExecutor)

Method summary

Modifier and TypeMethod
protected void
a()
purgeStaleTickets()
method_14045()
purge()
func_219340_a()
purgeTickets()
private int
a(it.unimi.dsi.fastutil.objects.ObjectSortedSet<vo<?>> arg0)
getTicketLevelAt(it.unimi.dsi.fastutil.objects.ObjectSortedSet<Ticket<?>> arg0)
method_14046(it.unimi.dsi.fastutil.objects.ObjectSortedSet<class_3228<?>> arg0)
getLevel(it.unimi.dsi.fastutil.objects.ObjectSortedSet<ChunkTicket<?>> ticketSet)
func_219344_a(it.unimi.dsi.fastutil.objects.ObjectSortedSet<Ticket<?>> arg0)
protected abstract boolean
a(long arg0)
isChunkToRemove(long arg0)
method_14035(long arg0)
isUnloaded(long pos)
func_219371_a(long arg0)
protected abstract ChunkHolder
b(long arg0)
getChunk(long arg0)
method_14038(long arg0)
getChunkHolder(long pos)
func_219335_b(long arg0)
protected abstract ChunkHolder
a(long arg0, int arg1, uv 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)
func_219372_a(long arg0, int arg1, ChunkHolder arg2, int arg3)
public boolean
a(uw arg0)
runAllUpdates(ChunkMap arg0)
method_15892(class_3898 arg0)
tick(ThreadedAnvilChunkStorage chunkStorage)
func_219353_a(ChunkManager arg0)
private void
a(long arg0, vo<?> arg1)
addTicket(long arg0, Ticket<?> arg1)
method_14042(long arg0, class_3228<?> arg1)
addTicket(long position, ChunkTicket<?> ticket)
func_219347_a(long arg0, Ticket<?> arg1)
addTicket(long arg0, Ticket<?> arg1)
private void
b(long arg0, vo<?> arg1)
removeTicket(long arg0, Ticket<?> arg1)
method_17645(long arg0, class_3228<?> arg1)
removeTicket(long pos, ChunkTicket<?> ticket)
func_219349_b(long arg0, Ticket<?> arg1)
removeTicket(long arg0, Ticket<?> arg1)
public <T> void
a(vp<T> arg0, bhd 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)
func_219356_a(TicketType<T> arg0, ChunkPos arg1, int arg2, T arg3)
public <T> void
b(vp<T> arg0, bhd 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)
func_219345_b(TicketType<T> arg0, ChunkPos arg1, int arg2, T arg3)
public <T> void
c(vp<T> arg0, bhd 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)
func_219331_c(TicketType<T> arg0, ChunkPos arg1, int arg2, T arg3)
addTicket(TicketType<T> arg0, ChunkCoordIntPair arg1, int arg2, T arg3)
public <T> void
d(vp<T> arg0, bhd 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)
func_219362_d(TicketType<T> arg0, ChunkPos arg1, int arg2, T arg3)
removeTicket(TicketType<T> arg0, ChunkCoordIntPair arg1, int arg2, T arg3)
private it.unimi.dsi.fastutil.objects.ObjectSortedSet<Ticket<?>>
e(long arg0)
getTickets(long arg0)
method_14050(long arg0)
getTicketSet(long position)
func_219332_d(long arg0)
protected void
a(bhd arg0, boolean arg1)
updateChunkForced(ChunkPos arg0, boolean arg1)
method_14036(class_1923 arg0, boolean arg1)
setChunkForced(ChunkPos pos, boolean forced)
func_219364_a(ChunkPos arg0, boolean arg1)
public void
a(fp arg0, vl arg1)
addPlayer(SectionPos arg0, ServerPlayer arg1)
method_14048(class_4076 arg0, class_3222 arg1)
handleChunkEnter(ChunkSectionPos pos, ServerPlayerEntity arg1)
func_219341_a(SectionPos arg0, ServerPlayerEntity arg1)
public void
b(fp arg0, vl arg1)
removePlayer(SectionPos arg0, ServerPlayer arg1)
method_14051(class_4076 arg0, class_3222 arg1)
handleChunkLeave(ChunkSectionPos pos, ServerPlayerEntity player)
func_219367_b(SectionPos arg0, ServerPlayerEntity arg1)
protected String
c(long arg0)
getTicketDebugString(long arg0)
method_21623(long arg0)
func_225413_c(long arg0)
protected void
a(int arg0)
updatePlayerTickets(int arg0)
method_14049(int arg0)
setWatchDistance(int viewDistance)
func_219354_b(int arg0)
public int
b()
getNaturalSpawnChunkCount()
method_14052()
getLevelCount()
func_219358_b()
public boolean
d(long arg0)
hasPlayersNearby(long arg0)
method_20800(long arg0)
func_223494_d(long arg0)
public String
c()
getDebugStatus()
method_21683()
func_225412_c()