net.minecraft.server.level

public class ServerChunkCache

extends ChunkSource

All mapped superinterfaces:

LightChunkGetter

aqs
net.minecraft.server.level.ServerChunkCache
net.minecraft.class_3215
net.minecraft.server.world.ServerChunkManager
net.minecraft.src.C_8_
net.minecraft.server.level.ChunkProviderServer

Field summary

Modifier and TypeField
private static final List<ChunkStatus>
b
CHUNK_STATUSES
field_13934
CHUNK_STATUSES
f_8326_
private final DistanceManager
c
distanceManager
field_17252
ticketManager
f_8327_
final ServerLevel
d
level
field_13945
world
f_8329_
final Thread
e
mainThread
field_17253
serverThread
f_8330_
final ThreadedLevelLightEngine
f
lightEngine
field_13921
lightingProvider
f_8331_
private final ServerChunkCache$MainThreadExecutor
g
mainThreadProcessor
field_18809
mainThreadExecutor
f_8332_
public final ChunkMap
a
chunkMap
field_17254
chunkLoadingManager
f_8325_
private final DimensionDataStorage
h
dataStorage
field_17708
persistentStateManager
f_8333_
private long
i
lastInhabitedUpdate
field_13928
lastMobSpawningTime
f_8334_
private boolean
j
spawnEnemies
field_13929
spawnMonsters
f_8335_
private boolean
k
spawnFriendlies
field_13941
spawnAnimals
f_8336_
private static final int
l
CACHE_SIZE
field_29766
CACHE_SIZE
f_143226_
private final long[]
m
lastChunkPos
field_19335
chunkPosCache
f_8337_
private final ChunkStatus[]
n
lastChunkStatus
field_19336
chunkStatusCache
f_8338_
private final ChunkAccess[]
o
lastChunk
field_19337
chunkCache
f_8339_
private NaturalSpawner$SpawnState
p
lastSpawnState
field_24455
spawnInfo
f_8340_

Constructor summary

ModifierConstructor
public (ServerLevel world, LevelStorageSource$LevelStorageAccess session, com.mojang.datafixers.DataFixer dataFixer, StructureTemplateManager structureTemplateManager, Executor workerExecutor, ChunkGenerator chunkGenerator, int viewDistance, int simulationDistance, boolean dsync, ChunkProgressListener worldGenerationProgressListener, ChunkStatusUpdateListener chunkStatusChangeListener, Supplier<DimensionDataStorage> persistentStateManagerFactory)

Method summary

Modifier and TypeMethod
public ThreadedLevelLightEngine
a()
getLightEngine()
method_17293()
getLightingProvider()
m_7827_()
private ChunkHolder
b(long arg0)
getVisibleChunkIfPresent(long arg0)
method_14131(long arg0)
getChunkHolder(long pos)
m_8364_(long arg0)
public int
b()
getTickingGenerated()
method_17301()
getTotalChunksLoadedCount()
m_8427_()
private void
a(long arg0, duy arg1, dvz 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)
m_8366_(long p_8368_, C_2116_ arg1, C_313554_ arg2)
public ChunkAccess
a(int arg0, int arg1, dvz 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)
m_7587_(int p_8361_, int p_334940_, C_313554_ p_8363_, 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)
m_7131_(int p_8358_, int arg1)
private void
r()
clearCache()
method_20587()
initChunkCaches()
m_8488_()
public CompletableFuture<ChunkResult<ChunkAccess>>
b(int arg0, int arg1, dvz 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)
m_8431_(int p_8433_, int p_329681_, C_313554_ p_8435_, boolean arg3)
private CompletableFuture<ChunkResult<ChunkAccess>>
c(int arg0, int arg1, dvz 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)
m_8456_(int p_8458_, int p_334479_, C_313554_ p_8460_, boolean arg3)
private boolean
a(apz arg0, int arg1)
chunkAbsent(ChunkHolder arg0, int arg1)
method_18752(class_3193 arg0, int arg1)
isMissingForLevel(ChunkHolder holder, int maxLevel)
m_8416_(C_5422_ p_8418_, 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)
m_5563_(int p_8430_, int arg1)
public LightChunk
c(int arg0, int arg1)
getChunkForLighting(int arg0, int arg1)
method_12246(int arg0, int arg1)
getChunk(int arg0, int arg1)
m_6196_(int p_8455_, int arg1)
public Level
c()
getLevel()
method_16434()
getWorld()
m_7653_()
public boolean
d()
pollTask()
method_19492()
executeQueuedTasks()
m_8466_()
boolean
s()
runDistanceManagerUpdates()
method_16155()
updateChunks()
m_8489_()
public boolean
a(long arg0)
isPositionTicking(long arg0)
method_37114(long arg0)
isTickingFutureReady(long pos)
m_143239_(long arg0)
public void
a(boolean arg0)
save(boolean arg0)
method_17298(boolean arg0)
save(boolean flush)
m_8419_(boolean arg0)
public void
close()
close()
close()
public void
a(BooleanSupplier arg0, boolean arg1)
tick(BooleanSupplier arg0, boolean arg1)
method_12127(BooleanSupplier arg0, boolean arg1)
tick(BooleanSupplier arg0, boolean arg1)
m_201698_(BooleanSupplier p_201914_, boolean arg1)
private void
t()
tickChunks()
method_14161()
tickChunks()
m_8490_()
private void
a(long arg0, Consumer<dvi> arg1)
getFullChunk(long arg0, Consumer<LevelChunk> arg1)
method_27907(long arg0, Consumer<class_2818> arg1)
ifChunkLoaded(long pos, Consumer<WorldChunk> chunkConsumer)
m_8370_(long p_8372_, Consumer<C_2137_> arg1)
public String
e()
gatherStats()
method_12122()
getDebugString()
m_6754_()
public int
f()
getPendingTasksCount()
method_21694()
getPendingTasks()
m_8480_()
public ChunkGenerator
g()
getGenerator()
method_12129()
getChunkGenerator()
m_8481_()
public ChunkGeneratorStructureState
h()
getGeneratorState()
method_46642()
getStructurePlacementCalculator()
m_255415_()
public RandomState
i()
randomState()
method_41248()
getNoiseConfig()
m_214994_()
public int
j()
getLoadedChunksCount()
method_14151()
getLoadedChunkCount()
m_8482_()
public void
a(jd arg0)
blockChanged(BlockPos arg0)
method_14128(class_2338 arg0)
markForUpdate(BlockPos pos)
m_8450_(C_4675_ arg0)
public void
a(ddf arg0, kf arg1)
onLightUpdate(LightLayer arg0, SectionPos arg1)
method_12247(class_1944 arg0, class_4076 arg1)
onLightUpdate(LightType arg0, ChunkSectionPos arg1)
m_6506_(C_1607_ p_8404_, C_4710_ arg1)
public <T> void
a(aqz<T> arg0, dcd 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)
m_8387_(C_18_<T> p_8389_, C_1560_ p_8390_, int p_8391_, T arg3)
public <T> void
b(aqz<T> arg0, dcd 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)
m_8438_(C_18_<T> p_8440_, C_1560_ p_8441_, int p_8442_, T arg3)
public void
a(dcd arg0, boolean arg1)
updateChunkForced(ChunkPos arg0, boolean arg1)
method_12124(class_1923 arg0, boolean arg1)
setChunkForced(ChunkPos arg0, boolean arg1)
m_6692_(C_1560_ p_8401_, boolean arg1)
public void
a(aqv arg0)
move(ServerPlayer arg0)
method_14096(class_3222 arg0)
updatePosition(ServerPlayerEntity player)
m_8385_(C_13_ arg0)
public void
a(bsr arg0)
removeEntity(Entity arg0)
method_18753(class_1297 arg0)
unloadEntity(Entity entity)
m_8443_(C_507_ arg0)
public void
b(bsr arg0)
addEntity(Entity arg0)
method_18755(class_1297 arg0)
loadEntity(Entity entity)
m_8463_(C_507_ arg0)
public void
a(bsr arg0, zg<?> arg1)
broadcastAndSend(Entity arg0, Packet<?> arg1)
method_18751(class_1297 arg0, class_2596<?> arg1)
sendToNearbyPlayers(Entity entity, Packet<?> packet)
m_8394_(C_507_ p_8396_, C_5028_<?> arg1)
public void
b(bsr arg0, zg<?> arg1)
broadcast(Entity arg0, Packet<?> arg1)
method_18754(class_1297 arg0, class_2596<?> arg1)
sendToOtherNearbyPlayers(Entity entity, Packet<?> packet)
m_8445_(C_507_ p_8447_, C_5028_<?> arg1)
public void
a(int arg0)
setViewDistance(int arg0)
method_14144(int arg0)
applyViewDistance(int watchDistance)
m_8354_(int arg0)
public void
b(int arg0)
setSimulationDistance(int arg0)
method_38634(int arg0)
applySimulationDistance(int simulationDistance)
m_184026_(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)
m_6707_(boolean p_8426_, boolean arg1)
public String
a(dcd arg0)
getChunkDebugData(ChunkPos arg0)
method_23273(class_1923 arg0)
getChunkLoadingDebugInfo(ChunkPos pos)
m_8448_(C_1560_ arg0)
public DimensionDataStorage
k()
getDataStorage()
method_17981()
getPersistentStateManager()
m_8483_()
public PoiManager
l()
getPoiManager()
method_19493()
getPointOfInterestStorage()
m_8484_()
public ChunkScanAccess
m()
chunkScanner()
method_39777()
getChunkIoWorker()
m_196555_()
public NaturalSpawner$SpawnState
n()
getLastSpawnState()
method_27908()
getSpawnInfo()
m_8485_()
public void
o()
removeTicketsOnClosing()
method_39997()
removePersistentTickets()
m_201915_()