net.minecraft.server.level

public class ServerChunkCache

extends ChunkSource

All mapped superinterfaces:

LightChunkGetter

xb
net.minecraft.server.level.ServerChunkCache
net.minecraft.class_3215
net.minecraft.server.world.ServerChunkManager
net.minecraft.world.server.ServerChunkProvider
net.minecraft.server.v1_15_R1.ChunkProviderServer

Field summary

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

Constructor summary

ModifierConstructor
public (ServerLevel arg0, File arg1, com.mojang.datafixers.DataFixer arg2, StructureManager arg3, Executor workerExecutor, ChunkGenerator<?> arg5, int arg6, ChunkProgressListener arg7, Supplier<DimensionDataStorage> arg8)

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, bzv arg1, cab arg2)
storeInCache(long arg0, ChunkAccess arg1, ChunkStatus arg2)
method_21738(long arg0, class_2791 arg1, class_2806 arg2)
func_225315_a(long arg0, IChunk arg1, ChunkStatus arg2)
public ChunkAccess
a(int arg0, int arg1, cab 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
m()
clearCache()
method_20587()
initChunkCaches()
func_222869_l()
clearCache()
private CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder$ChunkLoadingFailure>>
c(int arg0, int arg1, cab 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(wo 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
n()
runDistanceManagerUpdates()
method_16155()
tick()
func_217235_l()
tickDistanceManager()
public boolean
a(akn arg0)
isEntityTickingChunk(Entity arg0)
method_12125(class_1297 arg0)
shouldTickEntity(Entity arg0)
func_217204_a(Entity arg0)
public boolean
a(bje arg0)
isEntityTickingChunk(ChunkPos arg0)
method_20591(class_1923 arg0)
shouldTickChunk(ChunkPos arg0)
func_222865_a(ChunkPos arg0)
public boolean
a(fk arg0)
isTickingChunk(BlockPos arg0)
method_20529(class_2338 arg0)
shouldTickBlock(BlockPos arg0)
func_222866_a(BlockPos arg0)
public boolean
b(akn arg0)
isInAccessibleChunk(Entity arg0)
method_20727(class_1297 arg0)
func_223435_b(Entity arg0)
private boolean
a(long arg0, Function<wo, CompletableFuture<com.mojang.datafixers.util.Either<cai, wo$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)
method_20585(long pos, Function<ChunkHolder, CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk, ChunkHolder$Unloaded>>> arg1)
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()
public void
a(BooleanSupplier arg0)
tick(BooleanSupplier arg0)
method_12127(BooleanSupplier arg0)
tick(BooleanSupplier arg0)
func_217207_a(BooleanSupplier arg0)
tick(BooleanSupplier arg0)
private void
o()
tickChunks()
method_14161()
tickChunks()
func_217220_m()
tickChunks()
public String
e()
gatherStats()
method_12122()
getDebugString()
func_73148_d()
getName()
public int
f()
getPendingTasksCount()
method_21694()
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(fk arg0)
blockChanged(BlockPos arg0)
method_14128(class_2338 arg0)
markForUpdate(BlockPos pos)
func_217217_a(BlockPos arg0)
flagDirty(BlockPosition arg0)
public void
a(bkc arg0, gd 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(xi<T> arg0, bje 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> arg0, ChunkPos arg1, int arg2, T arg3)
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(xi<T> arg0, bje 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> arg0, ChunkPos arg1, int arg2, T arg3)
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(bje 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(xe arg0)
move(ServerPlayer arg0)
method_14096(class_3222 arg0)
updateCameraPosition(ServerPlayerEntity player)
func_217221_a(ServerPlayerEntity arg0)
movePlayer(EntityPlayer arg0)
public void
c(akn arg0)
removeEntity(Entity arg0)
method_18753(class_1297 arg0)
unloadEntity(Entity arg0)
func_217226_b(Entity arg0)
removeEntity(Entity arg0)
public void
d(akn arg0)
addEntity(Entity arg0)
method_18755(class_1297 arg0)
loadEntity(Entity arg0)
func_217230_c(Entity arg0)
addEntity(Entity arg0)
public void
a(akn arg0, lt<?> 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(akn arg0, lt<?> 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 CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder$ChunkLoadingFailure>>
b(int arg0, int arg1, cab 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(bje arg0)
getChunkDebugData(ChunkPos arg0)
method_23273(class_1923 arg0)
func_217208_a(ChunkPos arg0)