net.minecraft.server.level

public class ChunkMap

extends ChunkStorage implements ChunkHolder$PlayerProvider

All mapped superinterfaces:

ChunkHolder$PlayerProvider

yp
net.minecraft.server.level.ChunkMap
net.minecraft.class_3898
net.minecraft.unmapped.C_gxrpzacc
net.minecraft.server.world.ThreadedAnvilChunkStorage
net.minecraft.world.server.ChunkManager
net.minecraft.server.v1_16_R1.PlayerChunkMap

Field summary

Modifier and TypeField
private static final org.apache.logging.log4j.Logger
c
LOGGER
field_17212
f_cdallcyb
LOGGER
field_219250_d
public static final int
a
MAX_CHUNK_DISTANCE
field_18239
f_hfrcctzs
MAX_LEVEL
field_219249_a
GOLDEN_TICKET
private final it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<ChunkHolder>
d
updatingChunkMap
field_17213
f_sycrtqtt
currentChunkHolders
field_219251_e
updatingChunks
private volatile it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<ChunkHolder>
e
visibleChunkMap
field_17220
f_vsotkvla
chunkHolders
field_219252_f
visibleChunks
private final it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<ChunkHolder>
f
pendingUnloads
field_18807
f_mgqaxntn
field_18807
field_219253_g
pendingUnload
private final it.unimi.dsi.fastutil.longs.LongSet
g
entitiesInLevel
field_18307
f_pogbjqww
loadedChunks
field_219254_h
loadedChunks
private final ServerLevel
h
level
field_17214
f_qmxmwuww
world
field_219255_i
world
private final ThreadedLevelLightEngine
i
lightEngine
field_17215
f_vjrivreq
serverLightingProvider
field_219256_j
lightEngine
private final BlockableEventLoop<Runnable>
j
mainThreadExecutor
field_17216
f_lczeyqem
mainThreadExecutor
field_219257_k
executor
private final ChunkGenerator
k
generator
field_17218
f_fjgdpyoz
chunkGenerator
field_219258_l
chunkGenerator
private final Supplier<DimensionDataStorage>
l
overworldDataStorage
field_17705
f_dltbfmui
persistentStateManagerFactory
field_219259_m
private final PoiManager
m
poiManager
field_18808
f_epwhnhgx
pointOfInterestStorage
field_219260_n
private final it.unimi.dsi.fastutil.longs.LongSet
n
toDrop
field_17221
f_jtmlyaey
unloadedChunks
field_219261_o
unloadQueue
private boolean
o
modified
field_17222
f_oratkgdp
chunkHolderListDirty
field_219262_p
updatingChunksModified
private final ChunkTaskPriorityQueueSorter
p
queueSorter
field_17223
f_ofyplwmc
chunkTaskPrioritySystem
field_219263_q
private final ProcessorHandle<ChunkTaskPriorityQueueSorter$Message<Runnable>>
q
worldgenMailbox
field_17224
f_xsjvoadn
worldGenExecutor
field_219264_r
mailboxWorldGen
private final ProcessorHandle<ChunkTaskPriorityQueueSorter$Message<Runnable>>
r
mainThreadMailbox
field_17226
f_xkqgszkv
mainExecutor
field_219265_s
mailboxMain
private final ChunkProgressListener
s
progressListener
field_17442
f_carfuwla
worldGenerationProgressListener
field_219266_t
worldLoadListener
private final ChunkMap$DistanceManager
t
distanceManager
field_17228
f_jfmuzcmt
ticketManager
field_219267_u
chunkDistanceManager
private final AtomicInteger
u
tickingGenerated
field_17230
f_rdwkfvxr
totalChunksLoadedCount
field_219268_v
private final StructureManager
v
structureManager
field_17706
f_ecpxvotf
structureManager
field_219269_w
definedStructureManager
private final File
w
storageFolder
field_17707
f_tctvlowp
saveDir
field_219270_x
private final PlayerMap
x
playerMap
field_18241
f_dklgoyoo
playerChunkWatchingManager
field_219271_y
playerMap
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<ChunkMap$TrackedEntity>
y
entityMap
field_18242
f_vgnrawec
entityTrackers
field_219272_z
trackedEntities
private final it.unimi.dsi.fastutil.longs.Long2ByteMap
z
chunkTypeCache
field_23786
f_nmusqjon
field_23786
field_241087_z_
private final Queue<Runnable>
A
unloadQueue
field_19343
f_ptdjlogf
field_19343
field_223181_A
private int
B
viewDistance
field_18243
f_znaioqim
watchDistance
field_219247_A
viewDistance

Constructor summary

ModifierConstructor
public (ServerLevel arg0, LevelStorageSource$LevelStorageAccess arg1, com.mojang.datafixers.DataFixer dataFixer, StructureManager arg3, Executor workerExecutor, BlockableEventLoop<Runnable> mainThreadExecutor, LightChunkGetter chunkProvider, ChunkGenerator chunkGenerator, ChunkProgressListener worldGenerationProgressListener, Supplier<DimensionDataStorage> arg9, int arg10, boolean arg11)

Method summary

Modifier and TypeMethod
private static double
a(bph arg0, aom arg1)
euclideanDistanceSquared(ChunkPos arg0, Entity arg1)
method_18704(class_1923 arg0, class_1297 arg1)
m_mvnaomen(C_ynrszrtu arg0, C_astfners arg1)
getSquaredDistance(ChunkPos pos, Entity entity)
func_219217_a(ChunkPos arg0, Entity arg1)
private static int
b(bph arg0, ze arg1, boolean arg2)
checkerboardDistance(ChunkPos arg0, ServerPlayer arg1, boolean arg2)
method_18719(class_1923 arg0, class_3222 arg1, boolean arg2)
m_llsusint(C_ynrszrtu arg0, C_mxrobsgg arg1, boolean arg2)
getChebyshevDistance(ChunkPos pos, ServerPlayerEntity player, boolean useCameraPosition)
func_219215_b(ChunkPos arg0, ServerPlayerEntity arg1, boolean arg2)
private static int
a(bph arg0, int arg1, int arg2)
checkerboardDistance(ChunkPos arg0, int arg1, int arg2)
method_18703(class_1923 arg0, int arg1, int arg2)
m_waxzyvpz(C_ynrszrtu arg0, int arg1, int arg2)
getChebyshevDistance(ChunkPos pos, int x, int z)
func_219232_a(ChunkPos arg0, int arg1, int arg2)
protected ThreadedLevelLightEngine
a()
getLightEngine()
method_17212()
m_jmusvkuf()
getLightProvider()
func_219207_a()
protected ChunkHolder
a(long arg0)
getUpdatingChunkIfPresent(long arg0)
method_17255(long arg0)
m_djmbcnos(long arg0)
getCurrentChunkHolder(long pos)
func_219220_a(long arg0)
getUpdatingChunk(long arg0)
protected ChunkHolder
b(long arg0)
getVisibleChunkIfPresent(long arg0)
method_17216(long arg0)
m_fpkjnjma(long arg0)
getChunkHolder(long pos)
func_219219_b(long arg0)
getVisibleChunk(long arg0)
protected IntSupplier
c(long arg0)
getChunkQueueLevel(long arg0)
method_17604(long arg0)
m_jnrpdvfn(long arg0)
getCompletedLevelSupplier(long pos)
func_219191_c(long arg0)
private CompletableFuture<com.mojang.datafixers.util.Either<List<ChunkAccess>, ChunkHolder$ChunkLoadingFailure>>
a(bph arg0, int arg1, IntFunction<chc> arg2)
getChunkRangeFuture(ChunkPos arg0, int arg1, IntFunction<ChunkStatus> arg2)
method_17220(class_1923 arg0, int arg1, IntFunction<class_2806> arg2)
m_nhddmlfy(C_ynrszrtu arg0, int arg1, IntFunction<C_kogtzhzt> arg2)
createChunkRegionFuture(ChunkPos centerChunk, int margin, IntFunction<ChunkStatus> distanceToStatus)
func_219236_a(ChunkPos arg0, int arg1, IntFunction<ChunkStatus> arg2)
public CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder$ChunkLoadingFailure>>
b(bph arg0)
getEntityTickingRangeFuture(ChunkPos arg0)
method_17247(class_1923 arg0)
m_cndcwvom(C_ynrszrtu arg0)
createEntityTickingChunkFuture(ChunkPos pos)
func_219188_b(ChunkPos arg0)
private ChunkHolder
a(long arg0, int arg1, yo arg2, int arg3)
updateChunkScheduling(long arg0, int arg1, ChunkHolder arg2, int arg3)
method_17217(long arg0, int arg1, class_3193 arg2, int arg3)
m_fbwiznav(long arg0, int arg1, C_gkderdjo arg2, int arg3)
setLevel(long pos, int level, ChunkHolder holder, int arg3)
func_219213_a(long arg0, int arg1, ChunkHolder arg2, int arg3)
public void
close()
close()
close()
close()
close()
protected void
a(boolean arg0)
saveAllChunks(boolean arg0)
method_17242(boolean arg0)
m_uchmpocv(boolean arg0)
save(boolean flush)
func_219177_a(boolean arg0)
save(boolean arg0)
protected void
a(BooleanSupplier arg0)
tick(BooleanSupplier arg0)
method_17233(BooleanSupplier arg0)
m_jtcoqmih(BooleanSupplier arg0)
tick(BooleanSupplier shouldKeepTicking)
func_219204_a(BooleanSupplier arg0)
unloadChunks(BooleanSupplier arg0)
private void
b(BooleanSupplier arg0)
processUnloads(BooleanSupplier arg0)
method_20605(BooleanSupplier arg0)
m_ekgkxdez(BooleanSupplier arg0)
unloadChunks(BooleanSupplier shouldKeepTicking)
func_223155_b(BooleanSupplier arg0)
private void
a(long arg0, yo arg1)
scheduleUnload(long arg0, ChunkHolder arg1)
method_20458(long arg0, class_3193 arg1)
m_xqsmixbi(long arg0, C_gkderdjo arg1)
tryUnloadChunk(long pos, ChunkHolder arg1)
func_219212_a(long arg0, ChunkHolder arg1)
protected boolean
b()
promoteChunkMap()
method_17244()
m_xtsjwtbi()
updateHolderMap()
func_219245_b()
public CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder$ChunkLoadingFailure>>
a(yo arg0, chc arg1)
schedule(ChunkHolder arg0, ChunkStatus arg1)
method_17236(class_3193 arg0, class_2806 arg1)
m_nuqnfnbw(C_gkderdjo arg0, C_kogtzhzt arg1)
createChunkFuture(ChunkHolder arg0, ChunkStatus arg1)
func_219244_a(ChunkHolder arg0, ChunkStatus arg1)
private CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder$ChunkLoadingFailure>>
f(bph arg0)
scheduleChunkLoad(ChunkPos arg0)
method_20619(class_1923 arg0)
m_ftzrbjoo(C_ynrszrtu arg0)
loadChunk(ChunkPos pos)
func_223172_f(ChunkPos arg0)
private void
g(bph arg0)
markPositionReplaceable(ChunkPos arg0)
method_27054(class_1923 arg0)
m_mleuffzj(C_ynrszrtu arg0)
method_27054(ChunkPos arg0)
func_241089_g_(ChunkPos arg0)
private byte
a(bph arg0, chc$a arg1)
markPosition(ChunkPos arg0, ChunkStatus$ChunkType arg1)
method_27053(class_1923 arg0, class_2806$class_2808 arg1)
m_licqfdlz(C_ynrszrtu arg0, C_kogtzhzt$C_lcffkbeg arg1)
method_27053(ChunkPos arg0, ChunkStatus$ChunkType arg1)
func_241088_a_(ChunkPos arg0, ChunkStatus$Type arg1)
private CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder$ChunkLoadingFailure>>
b(yo arg0, chc arg1)
scheduleChunkGeneration(ChunkHolder arg0, ChunkStatus arg1)
method_20617(class_3193 arg0, class_2806 arg1)
m_ppfuhvxr(C_gkderdjo arg0, C_kogtzhzt arg1)
generateChunk(ChunkHolder arg0, ChunkStatus arg1)
func_223156_b(ChunkHolder arg0, ChunkStatus arg1)
protected void
c(bph arg0)
releaseLightTicket(ChunkPos arg0)
method_20441(class_1923 arg0)
m_hrlvjyna(C_ynrszrtu arg0)
releaseLightTicket(ChunkPos pos)
func_219209_c(ChunkPos arg0)
private ChunkStatus
a(chc arg0, int arg1)
getDependencyStatus(ChunkStatus arg0, int arg1)
method_17229(class_2806 arg0, int arg1)
m_xzgasiyg(C_kogtzhzt arg0, int arg1)
getRequiredStatusForGeneration(ChunkStatus centerChunkTargetStatus, int distance)
func_219205_a(ChunkStatus arg0, int arg1)
private CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder$ChunkLoadingFailure>>
c(yo arg0)
protoChunkToFullChunk(ChunkHolder arg0)
method_17226(class_3193 arg0)
m_qvhzrohv(C_gkderdjo arg0)
convertToFullChunk(ChunkHolder arg0)
func_219200_b(ChunkHolder arg0)
public CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder$ChunkLoadingFailure>>
a(yo arg0)
postProcess(ChunkHolder arg0)
method_17235(class_3193 arg0)
m_lgtfwenr(C_gkderdjo arg0)
createTickingFuture(ChunkHolder arg0)
func_219179_a(ChunkHolder arg0)
public CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder$ChunkLoadingFailure>>
b(yo arg0)
unpackTicks(ChunkHolder arg0)
method_20580(class_3193 arg0)
m_djdutneo(C_gkderdjo arg0)
createBorderFuture(ChunkHolder arg0)
func_222961_b(ChunkHolder arg0)
public int
c()
getTickingGenerated()
method_17253()
m_noyandst()
getTotalChunksLoadedCount()
func_219174_c()
private boolean
a(cgy arg0)
save(ChunkAccess arg0)
method_17228(class_2791 arg0)
m_hadjtdih(C_lwzmmmqr arg0)
save(Chunk arg0)
func_219229_a(IChunk arg0)
saveChunk(IChunkAccess arg0)
private boolean
h(bph arg0)
isExistingChunkFull(ChunkPos arg0)
method_27055(class_1923 arg0)
m_cbfkjkzy(C_ynrszrtu arg0)
method_27055(ChunkPos arg0)
func_241090_h_(ChunkPos arg0)
protected void
a(int arg0)
setViewDistance(int arg0)
method_17214(int arg0)
m_lyrmubsz(int arg0)
setViewDistance(int watchDistance)
func_219175_a(int arg0)
setViewDistance(int arg0)
protected void
a(ze arg0, bph arg1, ni<?>[] arg2, boolean arg3, boolean arg4)
updateChunkTracking(ServerPlayer arg0, ChunkPos arg1, Packet<?>[] arg2, boolean arg3, boolean arg4)
method_17241(class_3222 arg0, class_1923 arg1, class_2596<?>[] arg2, boolean arg3, boolean arg4)
m_uncqnsbt(C_mxrobsgg arg0, C_ynrszrtu arg1, C_zyjtrjrl<?>[] arg2, boolean arg3, boolean arg4)
sendWatchPackets(ServerPlayerEntity player, ChunkPos pos, Packet<?>[] packets, boolean withinMaxWatchDistance, boolean withinViewDistance)
func_219199_a(ServerPlayerEntity arg0, ChunkPos arg1, IPacket<?>[] arg2, boolean arg3, boolean arg4)
sendChunk(EntityPlayer arg0, ChunkCoordIntPair arg1, Packet<?>[] arg2, boolean arg3, boolean arg4)
public int
d()
size()
method_17260()
m_tubckkmf()
getLoadedChunkCount()
func_219194_d()
protected ChunkMap$DistanceManager
e()
getDistanceManager()
method_17263()
m_wczqgwje()
getTicketManager()
func_219246_e()
protected Iterable<ChunkHolder>
f()
getChunks()
method_17264()
m_mtihtfpz()
entryIterator()
func_223491_f()
void
a(Writer arg0)
dumpChunks(Writer arg0)
method_21619(Writer arg0)
m_lxukttpf(Writer arg0)
dump(Writer arg0)
func_225406_a(Writer arg0)
private static String
a(CompletableFuture<com.mojang.datafixers.util.Either<chj, yo$a>> arg0)
printFuture(CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder$ChunkLoadingFailure>> arg0)
method_21676(CompletableFuture<com.mojang.datafixers.util.Either<class_2818, class_3193$class_3724>> arg0)
m_tusokupf(CompletableFuture<com.mojang.datafixers.util.Either<C_hrdsvlkq, C_gkderdjo$C_mnhcarhk>> arg0)
getFutureStatus(CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk, ChunkHolder$Unloaded>> arg0)
func_225402_a(CompletableFuture<com.mojang.datafixers.util.Either<Chunk, ChunkHolder$IChunkLoadingError>> arg0)
private CompoundTag
i(bph arg0)
readChunk(ChunkPos arg0)
method_17979(class_1923 arg0)
m_tluosnso(C_ynrszrtu arg0)
getUpdatedChunkTag(ChunkPos pos)
func_219178_f(ChunkPos arg0)
readChunkData(ChunkCoordIntPair arg0)
boolean
d(bph arg0)
noPlayersCloseForSpawning(ChunkPos arg0)
method_18724(class_1923 arg0)
m_ydmffnoj(C_ynrszrtu arg0)
isTooFarFromPlayersToSpawnMobs(ChunkPos arg0)
func_219243_d(ChunkPos arg0)
isOutsideOfRange(ChunkCoordIntPair arg0)
private boolean
b(ze arg0)
skipPlayer(ServerPlayer arg0)
method_18722(class_3222 arg0)
m_uaxkqmvj(C_mxrobsgg arg0)
doesNotGenerateChunks(ServerPlayerEntity player)
func_219187_b(ServerPlayerEntity arg0)
void
a(ze arg0, boolean arg1)
updatePlayerStatus(ServerPlayer arg0, boolean arg1)
method_18714(class_3222 arg0, boolean arg1)
m_qcvnmgbx(C_mxrobsgg arg0, boolean arg1)
handlePlayerAddedOrRemoved(ServerPlayerEntity player, boolean added)
func_219234_a(ServerPlayerEntity arg0, boolean arg1)
private SectionPos
c(ze arg0)
updatePlayerPos(ServerPlayer arg0)
method_20726(class_3222 arg0)
m_czcetwxs(C_mxrobsgg arg0)
method_20726(ServerPlayerEntity arg0)
func_223489_c(ServerPlayerEntity arg0)
public void
a(ze arg0)
move(ServerPlayer arg0)
method_18713(class_3222 arg0)
m_pgazppma(C_mxrobsgg arg0)
updateCameraPosition(ServerPlayerEntity player)
func_219183_a(ServerPlayerEntity arg0)
movePlayer(EntityPlayer arg0)
public Stream<ServerPlayer>
a(bph arg0, boolean arg1)
getPlayers(ChunkPos arg0, boolean arg1)
method_17210(class_1923 arg0, boolean arg1)
m_xoihgpxx(C_ynrszrtu arg0, boolean arg1)
getPlayersWatchingChunk(ChunkPos arg0, boolean arg1)
func_219097_a(ChunkPos arg0, boolean arg1)
protected void
a(aom arg0)
addEntity(Entity arg0)
method_18701(class_1297 arg0)
m_vbcydxmf(C_astfners arg0)
loadEntity(Entity arg0)
func_219210_a(Entity arg0)
addEntity(Entity arg0)
protected void
b(aom arg0)
removeEntity(Entity arg0)
method_18716(class_1297 arg0)
m_fqdyjolg(C_astfners arg0)
unloadEntity(Entity arg0)
func_219231_b(Entity arg0)
removeEntity(Entity arg0)
protected void
g()
tick()
method_18727()
m_gknwalsf()
tickPlayerMovement()
func_219169_g()
protected void
a(aom arg0, ni<?> arg1)
broadcast(Entity arg0, Packet<?> arg1)
method_18702(class_1297 arg0, class_2596<?> arg1)
m_jjidpbzz(C_astfners arg0, C_zyjtrjrl<?> arg1)
sendToOtherNearbyPlayers(Entity entity, Packet<?> packet)
func_219222_a(Entity arg0, IPacket<?> arg1)
broadcast(Entity arg0, Packet<?> arg1)
protected void
b(aom arg0, ni<?> arg1)
broadcastAndSend(Entity arg0, Packet<?> arg1)
method_18717(class_1297 arg0, class_2596<?> arg1)
m_phranalj(C_astfners arg0, C_zyjtrjrl<?> arg1)
sendToNearbyPlayers(Entity entity, Packet<?> packet)
func_219225_b(Entity arg0, IPacket<?> arg1)
broadcastIncludingSelf(Entity arg0, Packet<?> arg1)
private void
a(ze arg0, ni<?>[] arg1, chj arg2)
playerLoadedChunk(ServerPlayer arg0, Packet<?>[] arg1, LevelChunk arg2)
method_18715(class_3222 arg0, class_2596<?>[] arg1, class_2818 arg2)
m_ntxmsmwm(C_mxrobsgg arg0, C_zyjtrjrl<?>[] arg1, C_hrdsvlkq arg2)
sendChunkDataPackets(ServerPlayerEntity player, Packet<?>[] packets, WorldChunk chunk)
func_219180_a(ServerPlayerEntity arg0, IPacket<?>[] arg1, Chunk arg2)
protected PoiManager
h()
getPoiManager()
method_19488()
m_ekbkuyqx()
getPointOfInterestStorage()
func_219189_h()
public CompletableFuture<Void>
a(chj arg0)
packTicks(LevelChunk arg0)
method_20576(class_2818 arg0)
m_qeentlyd(C_hrdsvlkq arg0)
method_20576(WorldChunk arg0)
func_222973_a(Chunk arg0)
public String
a(bph arg0)
getChunkDebugData(ChunkPos arg0)
method_23272(class_1923 arg0)
m_lwnasrxx(C_ynrszrtu arg0)
method_23272(ChunkPos arg0)
func_219170_a(ChunkPos arg0)