net.minecraft.server.level

public class ServerChunkCache

extends ChunkSource

All mapped superinterfaces:

LightChunkGetter

aae
net.minecraft.server.level.ServerChunkCache
net.minecraft.class_3215
net.minecraft.server.world.ServerChunkManager
net.minecraft.world.server.ServerChunkProvider
net.minecraft.server.v1_16_R2.ChunkProviderServer

Field summary

Modifier and TypeField
private static final List<ChunkStatus>
b
CHUNK_STATUSES
field_13934
CHUNK_STATUSES
field_217239_c
private final DistanceManager
c
distanceManager
field_17252
ticketManager
field_217240_d
chunkMapDistance
private final ChunkGenerator
d
generator
field_13939
chunkGenerator
field_186029_c
chunkGenerator
private final ServerLevel
e
level
field_13945
world
field_73251_h
world
private final Thread
f
mainThread
field_17253
serverThread
field_217241_g
serverThread
private final ThreadedLevelLightEngine
g
lightEngine
field_13921
lightProvider
field_217242_h
lightEngine
private final ServerChunkCache$MainThreadExecutor
h
mainThreadProcessor
field_18809
mainThreadExecutor
field_217243_i
serverThreadQueue
public final ChunkMap
a
chunkMap
field_17254
threadedAnvilChunkStorage
field_217237_a
playerChunkMap
private final DimensionDataStorage
i
dataStorage
field_17708
persistentStateManager
field_217244_j
worldPersistentData
private long
j
lastInhabitedUpdate
field_13928
lastMobSpawningTime
field_217245_k
lastTickTime
private boolean
k
spawnEnemies
field_13929
spawnMonsters
field_217246_l
allowMonsters
private boolean
l
spawnFriendlies
field_13941
spawnAnimals
field_217247_m
allowAnimals
private final long[]
m
lastChunkPos
field_19335
chunkPosCache
field_222875_n
cachePos
private final ChunkStatus[]
n
lastChunkStatus
field_19336
chunkStatusCache
field_222876_o
cacheStatus
private final ChunkAccess[]
o
lastChunk
field_19337
chunkCache
field_222877_p
cacheChunk
private NaturalSpawner$SpawnState
p
lastSpawnState
field_24455
spawnEntry
field_241097_p_

Constructor summary

ModifierConstructor
public (ServerLevel arg0, LevelStorageSource$LevelStorageAccess arg1, com.mojang.datafixers.DataFixer dataFixer, StructureManager structureManager, Executor workerExecutor, ChunkGenerator chunkGenerator, int viewDistance, boolean arg7, ChunkProgressListener arg8, Supplier<DimensionDataStorage> arg9)

Method summary

Modifier and TypeMethod
public ThreadedLevelLightEngine
a()
getLightEngine()
method_17293()
getLightingProvider()
func_212863_j_()
getLightEngine()
private ChunkHolder
a(long arg0)
getVisibleChunkIfPresent(long arg0)
method_14131(long arg0)
getChunkHolder(long pos)
func_217213_a(long arg0)
getChunk(long arg0)
public int
b()
getTickingGenerated()
method_17301()
getTotalChunksLoadedCount()
func_217229_b()
private void
a(long arg0, cft arg1, cfx arg2)
storeInCache(long arg0, ChunkAccess arg1, ChunkStatus arg2)
method_21738(long arg0, class_2791 arg1, class_2806 arg2)
putInCache(long pos, Chunk chunk, ChunkStatus status)
func_225315_a(long arg0, IChunk arg1, ChunkStatus arg2)
public ChunkAccess
a(int arg0, int arg1, cfx arg2, boolean arg3)
getChunk(int arg0, int arg1, ChunkStatus arg2, boolean arg3)
method_12121(int arg0, int arg1, class_2806 arg2, boolean arg3)
getChunk(int arg0, int arg1, ChunkStatus arg2, boolean arg3)
func_212849_a_(int arg0, int arg1, ChunkStatus arg2, boolean arg3)
getChunkAt(int arg0, int arg1, ChunkStatus arg2, boolean arg3)
public LevelChunk
a(int arg0, int arg1)
getChunkNow(int arg0, int arg1)
method_21730(int arg0, int arg1)
getWorldChunk(int arg0, int arg1)
func_225313_a(int arg0, int arg1)
private void
n()
clearCache()
method_20587()
initChunkCaches()
func_222869_l()
clearCache()
private CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder$ChunkLoadingFailure>>
c(int arg0, int arg1, cfx arg2, boolean arg3)
getChunkFutureMainThread(int arg0, int arg1, ChunkStatus arg2, boolean arg3)
method_14134(int arg0, int arg1, class_2806 arg2, boolean arg3)
getChunkFuture(int chunkX, int chunkZ, ChunkStatus leastStatus, boolean create)
func_217233_c(int arg0, int arg1, ChunkStatus arg2, boolean arg3)
getChunkFutureMainThread(int arg0, int arg1, ChunkStatus arg2, boolean arg3)
private boolean
a(zr arg0, int arg1)
chunkAbsent(ChunkHolder arg0, int arg1)
method_18752(class_3193 arg0, int arg1)
isMissingForLevel(ChunkHolder holder, int maxLevel)
func_217224_a(ChunkHolder arg0, int arg1)
public boolean
b(int arg0, int arg1)
hasChunk(int arg0, int arg1)
method_12123(int arg0, int arg1)
isChunkLoaded(int arg0, int arg1)
func_73149_a(int arg0, int arg1)
isLoaded(int arg0, int arg1)
public BlockGetter
c(int arg0, int arg1)
getChunkForLighting(int arg0, int arg1)
method_12246(int arg0, int arg1)
getChunk(int arg0, int arg1)
func_217202_b(int arg0, int arg1)
public Level
c()
getLevel()
method_16434()
getWorld()
func_212864_k_()
getWorld()
public boolean
d()
pollTask()
method_19492()
executeQueuedTasks()
func_217234_d()
runTasks()
private boolean
o()
runDistanceManagerUpdates()
method_16155()
tick()
func_217235_l()
tickDistanceManager()
public boolean
a(apx arg0)
isEntityTickingChunk(Entity arg0)
method_12125(class_1297 arg0)
shouldTickEntity(Entity arg0)
func_217204_a(Entity arg0)
public boolean
a(bra arg0)
isEntityTickingChunk(ChunkPos arg0)
method_20591(class_1923 arg0)
shouldTickChunk(ChunkPos arg0)
func_222865_a(ChunkPos arg0)
public boolean
a(fx arg0)
isTickingChunk(BlockPos arg0)
method_20529(class_2338 arg0)
shouldTickBlock(BlockPos arg0)
func_222866_a(BlockPos arg0)
private boolean
a(long arg0, Function<zr, CompletableFuture<com.mojang.datafixers.util.Either<cge, zr$a>>> arg1)
checkChunkFuture(long arg0, Function<ChunkHolder, CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder$ChunkLoadingFailure>>> arg1)
method_20585(long arg0, Function<class_3193, CompletableFuture<com.mojang.datafixers.util.Either<class_2818, class_3193$class_3724>>> arg1)
isFutureReady(long pos, Function<ChunkHolder, CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk, ChunkHolder$Unloaded>>> futureFunction)
func_222872_a(long arg0, Function<ChunkHolder, CompletableFuture<com.mojang.datafixers.util.Either<Chunk, ChunkHolder$IChunkLoadingError>>> arg1)
public void
a(boolean arg0)
save(boolean arg0)
method_17298(boolean arg0)
save(boolean flush)
func_217210_a(boolean arg0)
save(boolean arg0)
public void
close()
close()
close()
close()
close()
public void
a(BooleanSupplier arg0)
tick(BooleanSupplier arg0)
method_12127(BooleanSupplier arg0)
tick(BooleanSupplier shouldKeepTicking)
func_217207_a(BooleanSupplier arg0)
tick(BooleanSupplier arg0)
private void
p()
tickChunks()
method_14161()
tickChunks()
func_217220_m()
tickChunks()
private void
a(long arg0, Consumer<cge> arg1)
getFullChunk(long arg0, Consumer<LevelChunk> arg1)
method_27907(long arg0, Consumer<class_2818> arg1)
ifChunkLoaded(long pos, Consumer<WorldChunk> chunkConsumer)
func_241098_a_(long arg0, Consumer<Chunk> arg1)
public String
e()
gatherStats()
method_12122()
getDebugString()
func_73148_d()
getName()
public int
f()
getPendingTasksCount()
method_21694()
getPendingTasks()
func_225314_f()
public ChunkGenerator
g()
getGenerator()
method_12129()
getChunkGenerator()
func_201711_g()
getChunkGenerator()
public int
h()
getLoadedChunksCount()
method_14151()
getLoadedChunkCount()
func_73152_e()
public void
b(fx arg0)
blockChanged(BlockPos arg0)
method_14128(class_2338 arg0)
markForUpdate(BlockPos pos)
func_217217_a(BlockPos arg0)
flagDirty(BlockPosition arg0)
public void
a(bsc arg0, gp arg1)
onLightUpdate(LightLayer arg0, SectionPos arg1)
method_12247(class_1944 arg0, class_4076 arg1)
onLightUpdate(LightType arg0, ChunkSectionPos arg1)
func_217201_a(LightType arg0, SectionPos arg1)
public <T> void
a(aal<T> arg0, bra arg1, int arg2, T arg3)
addRegionTicket(TicketType<T> arg0, ChunkPos arg1, int arg2, T arg3)
method_17297(class_3230<T> arg0, class_1923 arg1, int arg2, T arg3)
addTicket(ChunkTicketType<T> ticketType, ChunkPos pos, int radius, T argument)
func_217228_a(TicketType<T> arg0, ChunkPos arg1, int arg2, T arg3)
addTicket(TicketType<T> arg0, ChunkCoordIntPair arg1, int arg2, T arg3)
public <T> void
b(aal<T> arg0, bra arg1, int arg2, T arg3)
removeRegionTicket(TicketType<T> arg0, ChunkPos arg1, int arg2, T arg3)
method_17300(class_3230<T> arg0, class_1923 arg1, int arg2, T arg3)
removeTicket(ChunkTicketType<T> ticketType, ChunkPos pos, int radius, T argument)
func_217222_b(TicketType<T> arg0, ChunkPos arg1, int arg2, T arg3)
removeTicket(TicketType<T> arg0, ChunkCoordIntPair arg1, int arg2, T arg3)
public void
a(bra arg0, boolean arg1)
updateChunkForced(ChunkPos arg0, boolean arg1)
method_12124(class_1923 arg0, boolean arg1)
setChunkForced(ChunkPos arg0, boolean arg1)
func_217206_a(ChunkPos arg0, boolean arg1)
public void
a(aah arg0)
move(ServerPlayer arg0)
method_14096(class_3222 arg0)
updateCameraPosition(ServerPlayerEntity player)
func_217221_a(ServerPlayerEntity arg0)
movePlayer(EntityPlayer arg0)
public void
b(apx arg0)
removeEntity(Entity arg0)
method_18753(class_1297 arg0)
unloadEntity(Entity arg0)
func_217226_b(Entity arg0)
removeEntity(Entity arg0)
public void
c(apx arg0)
addEntity(Entity arg0)
method_18755(class_1297 arg0)
loadEntity(Entity arg0)
func_217230_c(Entity arg0)
addEntity(Entity arg0)
public void
a(apx arg0, oj<?> arg1)
broadcastAndSend(Entity arg0, Packet<?> arg1)
method_18751(class_1297 arg0, class_2596<?> arg1)
sendToNearbyPlayers(Entity entity, Packet<?> packet)
func_217216_a(Entity arg0, IPacket<?> arg1)
broadcastIncludingSelf(Entity arg0, Packet<?> arg1)
public void
b(apx arg0, oj<?> arg1)
broadcast(Entity arg0, Packet<?> arg1)
method_18754(class_1297 arg0, class_2596<?> arg1)
sendToOtherNearbyPlayers(Entity arg0, Packet<?> arg1)
func_217218_b(Entity arg0, IPacket<?> arg1)
broadcast(Entity arg0, Packet<?> arg1)
public void
a(int arg0)
setViewDistance(int arg0)
method_14144(int arg0)
applyViewDistance(int watchDistance)
func_217219_a(int arg0)
setViewDistance(int arg0)
public void
a(boolean arg0, boolean arg1)
setSpawnSettings(boolean arg0, boolean arg1)
method_12128(boolean arg0, boolean arg1)
setMobSpawnOptions(boolean arg0, boolean arg1)
func_217203_a(boolean arg0, boolean arg1)
public DimensionDataStorage
i()
getDataStorage()
method_17981()
getPersistentStateManager()
func_217227_h()
getWorldPersistentData()
public PoiManager
j()
getPoiManager()
method_19493()
getPointOfInterestStorage()
func_217231_i()
public NaturalSpawner$SpawnState
k()
getLastSpawnState()
method_27908()
getSpawnInfo()
func_241101_k_()
public CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder$ChunkLoadingFailure>>
b(int arg0, int arg1, cfx arg2, boolean arg3)
getChunkFuture(int arg0, int arg1, ChunkStatus arg2, boolean arg3)
method_17299(int arg0, int arg1, class_2806 arg2, boolean arg3)
getChunkFutureSyncOnMainThread(int chunkX, int chunkZ, ChunkStatus leastStatus, boolean create)
func_217232_b(int arg0, int arg1, ChunkStatus arg2, boolean arg3)
public String
b(bra arg0)
getChunkDebugData(ChunkPos arg0)
method_23273(class_1923 arg0)
getChunkLoadingDebugInfo(ChunkPos arg0)
func_217208_a(ChunkPos arg0)