net.minecraft.server.level

public class ChunkMap

extends ChunkStorage implements ChunkHolder$PlayerProvider

All mapped superinterfaces:

ChunkHolder$PlayerProvider

zs
net.minecraft.server.level.ChunkMap
net.minecraft.class_3898
net.minecraft.server.world.ThreadedAnvilChunkStorage
net.minecraft.world.server.ChunkManager
net.minecraft.server.v1_16_R3.PlayerChunkMap

Field summary

Modifier and TypeField
private static final org.apache.logging.log4j.Logger
c
LOGGER
field_17212
LOGGER
field_219250_d
public static final int
a
MAX_CHUNK_DISTANCE
field_18239
MAX_LEVEL
field_219249_a
GOLDEN_TICKET
private final it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<ChunkHolder>
d
updatingChunkMap
field_17213
currentChunkHolders
field_219251_e
updatingChunks
private volatile it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<ChunkHolder>
e
visibleChunkMap
field_17220
chunkHolders
field_219252_f
visibleChunks
private final it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<ChunkHolder>
f
pendingUnloads
field_18807
chunksToUnload
field_219253_g
pendingUnload
private final it.unimi.dsi.fastutil.longs.LongSet
g
entitiesInLevel
field_18307
loadedChunks
field_219254_h
loadedChunks
private final ServerLevel
h
level
field_17214
world
field_219255_i
world
private final ThreadedLevelLightEngine
i
lightEngine
field_17215
serverLightingProvider
field_219256_j
lightEngine
private final BlockableEventLoop<Runnable>
j
mainThreadExecutor
field_17216
mainThreadExecutor
field_219257_k
executor
private final ChunkGenerator
k
generator
field_17218
chunkGenerator
field_219258_l
chunkGenerator
private final Supplier<DimensionDataStorage>
l
overworldDataStorage
field_17705
persistentStateManagerFactory
field_219259_m
private final PoiManager
m
poiManager
field_18808
pointOfInterestStorage
field_219260_n
private final it.unimi.dsi.fastutil.longs.LongSet
n
toDrop
field_17221
unloadedChunks
field_219261_o
unloadQueue
private boolean
o
modified
field_17222
chunkHolderListDirty
field_219262_p
updatingChunksModified
private final ChunkTaskPriorityQueueSorter
p
queueSorter
field_17223
chunkTaskPrioritySystem
field_219263_q
private final ProcessorHandle<ChunkTaskPriorityQueueSorter$Message<Runnable>>
q
worldgenMailbox
field_17224
worldGenExecutor
field_219264_r
mailboxWorldGen
private final ProcessorHandle<ChunkTaskPriorityQueueSorter$Message<Runnable>>
r
mainThreadMailbox
field_17226
mainExecutor
field_219265_s
mailboxMain
private final ChunkProgressListener
s
progressListener
field_17442
worldGenerationProgressListener
field_219266_t
worldLoadListener
private final ChunkMap$DistanceManager
t
distanceManager
field_17228
ticketManager
field_219267_u
chunkDistanceManager
private final AtomicInteger
u
tickingGenerated
field_17230
totalChunksLoadedCount
field_219268_v
private final StructureManager
v
structureManager
field_17706
structureManager
field_219269_w
definedStructureManager
private final File
w
storageFolder
field_17707
saveDir
field_219270_x
private final PlayerMap
x
playerMap
field_18241
playerChunkWatchingManager
field_219271_y
playerMap
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<ChunkMap$TrackedEntity>
y
entityMap
field_18242
entityTrackers
field_219272_z
trackedEntities
private final it.unimi.dsi.fastutil.longs.Long2ByteMap
z
chunkTypeCache
field_23786
chunkToType
field_241087_z_
private final Queue<Runnable>
A
unloadQueue
field_19343
unloadTaskQueue
field_223181_A
private int
B
viewDistance
field_18243
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(brd arg0, aqa arg1)
euclideanDistanceSquared(ChunkPos arg0, Entity arg1)
method_18704(class_1923 arg0, class_1297 arg1)
getSquaredDistance(ChunkPos pos, Entity entity)
func_219217_a(ChunkPos arg0, Entity arg1)
private static int
b(brd arg0, aah arg1, boolean arg2)
checkerboardDistance(ChunkPos arg0, ServerPlayer arg1, boolean arg2)
method_18719(class_1923 arg0, class_3222 arg1, boolean arg2)
getChebyshevDistance(ChunkPos pos, ServerPlayerEntity player, boolean useWatchedPosition)
func_219215_b(ChunkPos arg0, ServerPlayerEntity arg1, boolean arg2)
private static int
a(brd arg0, int arg1, int arg2)
checkerboardDistance(ChunkPos arg0, int arg1, int arg2)
method_18703(class_1923 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()
getLightProvider()
func_219207_a()
protected ChunkHolder
a(long arg0)
getUpdatingChunkIfPresent(long arg0)
method_17255(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)
getChunkHolder(long pos)
func_219219_b(long arg0)
getVisibleChunk(long arg0)
protected IntSupplier
c(long arg0)
getChunkQueueLevel(long arg0)
method_17604(long arg0)
getCompletedLevelSupplier(long pos)
func_219191_c(long arg0)
private CompletableFuture<com.mojang.datafixers.util.Either<List<ChunkAccess>, ChunkHolder$ChunkLoadingFailure>>
a(brd arg0, int arg1, IntFunction<cga> arg2)
getChunkRangeFuture(ChunkPos arg0, int arg1, IntFunction<ChunkStatus> arg2)
method_17220(class_1923 arg0, int arg1, IntFunction<class_2806> arg2)
getRegion(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(brd arg0)
getEntityTickingRangeFuture(ChunkPos arg0)
method_17247(class_1923 arg0)
makeChunkEntitiesTickable(ChunkPos pos)
func_219188_b(ChunkPos arg0)
private ChunkHolder
a(long arg0, int arg1, zr arg2, int arg3)
updateChunkScheduling(long arg0, int arg1, ChunkHolder arg2, int arg3)
method_17217(long arg0, int arg1, class_3193 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)
save(boolean flush)
func_219177_a(boolean arg0)
save(boolean arg0)
protected void
a(BooleanSupplier arg0)
tick(BooleanSupplier arg0)
method_17233(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)
unloadChunks(BooleanSupplier shouldKeepTicking)
func_223155_b(BooleanSupplier arg0)
private void
a(long arg0, zr arg1)
scheduleUnload(long arg0, ChunkHolder arg1)
method_20458(long arg0, class_3193 arg1)
tryUnloadChunk(long pos, ChunkHolder arg1)
func_219212_a(long arg0, ChunkHolder arg1)
protected boolean
b()
promoteChunkMap()
method_17244()
updateHolderMap()
func_219245_b()
public CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder$ChunkLoadingFailure>>
a(zr arg0, cga arg1)
schedule(ChunkHolder arg0, ChunkStatus arg1)
method_17236(class_3193 arg0, class_2806 arg1)
getChunk(ChunkHolder holder, ChunkStatus requiredStatus)
func_219244_a(ChunkHolder arg0, ChunkStatus arg1)
private CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder$ChunkLoadingFailure>>
f(brd arg0)
scheduleChunkLoad(ChunkPos arg0)
method_20619(class_1923 arg0)
loadChunk(ChunkPos pos)
func_223172_f(ChunkPos arg0)
private void
g(brd arg0)
markPositionReplaceable(ChunkPos arg0)
method_27054(class_1923 arg0)
method_27054(ChunkPos arg0)
func_241089_g_(ChunkPos arg0)
private byte
a(brd arg0, cga$a arg1)
markPosition(ChunkPos arg0, ChunkStatus$ChunkType arg1)
method_27053(class_1923 arg0, class_2806$class_2808 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(zr arg0, cga arg1)
scheduleChunkGeneration(ChunkHolder arg0, ChunkStatus arg1)
method_20617(class_3193 arg0, class_2806 arg1)
upgradeChunk(ChunkHolder holder, ChunkStatus requiredStatus)
func_223156_b(ChunkHolder arg0, ChunkStatus arg1)
protected void
c(brd arg0)
releaseLightTicket(ChunkPos arg0)
method_20441(class_1923 arg0)
releaseLightTicket(ChunkPos pos)
func_219209_c(ChunkPos arg0)
private ChunkStatus
a(cga arg0, int arg1)
getDependencyStatus(ChunkStatus arg0, int arg1)
method_17229(class_2806 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(zr arg0)
protoChunkToFullChunk(ChunkHolder arg0)
method_17226(class_3193 arg0)
convertToFullChunk(ChunkHolder arg0)
func_219200_b(ChunkHolder arg0)
public CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder$ChunkLoadingFailure>>
a(zr arg0)
postProcess(ChunkHolder arg0)
method_17235(class_3193 arg0)
makeChunkTickable(ChunkHolder holder)
func_219179_a(ChunkHolder arg0)
public CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder$ChunkLoadingFailure>>
b(zr arg0)
unpackTicks(ChunkHolder arg0)
method_20580(class_3193 arg0)
makeChunkAccessible(ChunkHolder holder)
func_222961_b(ChunkHolder arg0)
public int
c()
getTickingGenerated()
method_17253()
getTotalChunksLoadedCount()
func_219174_c()
private boolean
a(cfw arg0)
save(ChunkAccess arg0)
method_17228(class_2791 arg0)
save(Chunk chunk)
func_219229_a(IChunk arg0)
saveChunk(IChunkAccess arg0)
private boolean
h(brd arg0)
isExistingChunkFull(ChunkPos arg0)
method_27055(class_1923 arg0)
method_27055(ChunkPos arg0)
func_241090_h_(ChunkPos arg0)
protected void
a(int arg0)
setViewDistance(int arg0)
method_17214(int arg0)
setViewDistance(int watchDistance)
func_219175_a(int arg0)
setViewDistance(int arg0)
protected void
a(aah arg0, brd arg1, oj<?>[] 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)
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()
getLoadedChunkCount()
func_219194_d()
protected ChunkMap$DistanceManager
e()
getDistanceManager()
method_17263()
getTicketManager()
func_219246_e()
protected Iterable<ChunkHolder>
f()
getChunks()
method_17264()
entryIterator()
func_223491_f()
void
a(Writer arg0)
dumpChunks(Writer arg0)
method_21619(Writer arg0)
dump(Writer arg0)
func_225406_a(Writer arg0)
private static String
a(CompletableFuture<com.mojang.datafixers.util.Either<cgh, zr$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)
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(brd arg0)
readChunk(ChunkPos arg0)
method_17979(class_1923 arg0)
getUpdatedChunkNbt(ChunkPos pos)
func_219178_f(ChunkPos arg0)
readChunkData(ChunkCoordIntPair arg0)
boolean
d(brd arg0)
noPlayersCloseForSpawning(ChunkPos arg0)
method_18724(class_1923 arg0)
isTooFarFromPlayersToSpawnMobs(ChunkPos arg0)
func_219243_d(ChunkPos arg0)
isOutsideOfRange(ChunkCoordIntPair arg0)
private boolean
b(aah arg0)
skipPlayer(ServerPlayer arg0)
method_18722(class_3222 arg0)
doesNotGenerateChunks(ServerPlayerEntity player)
func_219187_b(ServerPlayerEntity arg0)
void
a(aah arg0, boolean arg1)
updatePlayerStatus(ServerPlayer arg0, boolean arg1)
method_18714(class_3222 arg0, boolean arg1)
handlePlayerAddedOrRemoved(ServerPlayerEntity player, boolean added)
func_219234_a(ServerPlayerEntity arg0, boolean arg1)
private SectionPos
c(aah arg0)
updatePlayerPos(ServerPlayer arg0)
method_20726(class_3222 arg0)
method_20726(ServerPlayerEntity arg0)
func_223489_c(ServerPlayerEntity arg0)
public void
a(aah arg0)
move(ServerPlayer arg0)
method_18713(class_3222 arg0)
updatePosition(ServerPlayerEntity player)
func_219183_a(ServerPlayerEntity arg0)
movePlayer(EntityPlayer arg0)
public Stream<ServerPlayer>
a(brd arg0, boolean arg1)
getPlayers(ChunkPos arg0, boolean arg1)
method_17210(class_1923 arg0, boolean arg1)
getPlayersWatchingChunk(ChunkPos arg0, boolean arg1)
func_219097_a(ChunkPos arg0, boolean arg1)
protected void
a(aqa arg0)
addEntity(Entity arg0)
method_18701(class_1297 arg0)
loadEntity(Entity arg0)
func_219210_a(Entity arg0)
addEntity(Entity arg0)
protected void
b(aqa arg0)
removeEntity(Entity arg0)
method_18716(class_1297 arg0)
unloadEntity(Entity arg0)
func_219231_b(Entity arg0)
removeEntity(Entity arg0)
protected void
g()
tick()
method_18727()
tickEntityMovement()
func_219169_g()
protected void
a(aqa arg0, oj<?> arg1)
broadcast(Entity arg0, Packet<?> arg1)
method_18702(class_1297 arg0, class_2596<?> arg1)
sendToOtherNearbyPlayers(Entity entity, Packet<?> packet)
func_219222_a(Entity arg0, IPacket<?> arg1)
broadcast(Entity arg0, Packet<?> arg1)
protected void
b(aqa arg0, oj<?> arg1)
broadcastAndSend(Entity arg0, Packet<?> arg1)
method_18717(class_1297 arg0, class_2596<?> arg1)
sendToNearbyPlayers(Entity entity, Packet<?> packet)
func_219225_b(Entity arg0, IPacket<?> arg1)
broadcastIncludingSelf(Entity arg0, Packet<?> arg1)
private void
a(aah arg0, oj<?>[] arg1, cgh arg2)
playerLoadedChunk(ServerPlayer arg0, Packet<?>[] arg1, LevelChunk arg2)
method_18715(class_3222 arg0, class_2596<?>[] arg1, class_2818 arg2)
sendChunkDataPackets(ServerPlayerEntity player, Packet<?>[] packets, WorldChunk chunk)
func_219180_a(ServerPlayerEntity arg0, IPacket<?>[] arg1, Chunk arg2)
protected PoiManager
h()
getPoiManager()
method_19488()
getPointOfInterestStorage()
func_219189_h()
public CompletableFuture<Void>
a(cgh arg0)
packTicks(LevelChunk arg0)
method_20576(class_2818 arg0)
enableTickSchedulers(WorldChunk arg0)
func_222973_a(Chunk arg0)
public String
a(brd arg0)
getChunkDebugData(ChunkPos arg0)
method_23272(class_1923 arg0)
getChunkLoadingDebugInfo(ChunkPos arg0)
func_219170_a(ChunkPos arg0)