net.minecraft.server.level

public class ServerChunkCache

extends ChunkSource

All mapped superinterfaces:

LightChunkGetter

ara
net.minecraft.server.level.ServerChunkCache
net.minecraft.class_3215
net.minecraft.unmapped.C_ebcmvjwj
net.minecraft.server.world.ServerChunkManager
net.minecraft.server.world.ServerChunkManager
net.minecraft.src.C_8_
net.minecraft.server.level.ChunkProviderServer

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
b
LOGGER
field_52354
f_etjmmzam
LOGGER
LOGGER
f_348128_
private final DistanceManager
c
distanceManager
field_17252
f_ydkjshsp
ticketManager
ticketManager
f_8327_
private final ServerLevel
d
level
field_13945
f_obcjuaxe
world
world
f_8329_
final Thread
e
mainThread
field_17253
f_qtzeurch
serverThread
serverThread
f_8330_
final ThreadedLevelLightEngine
f
lightEngine
field_13921
f_wxlbdscx
lightingProvider
lightingProvider
f_8331_
private final ServerChunkCache$MainThreadExecutor
g
mainThreadProcessor
field_18809
f_ixxxjgez
mainThreadExecutor
mainThreadExecutor
f_8332_
public final ChunkMap
a
chunkMap
field_17254
f_sxcfajbf
chunkLoadingManager
delegate
f_8325_
private final DimensionDataStorage
h
dataStorage
field_17708
f_ihdjlbqp
persistentStateManager
persistentStateManager
f_8333_
private long
i
lastInhabitedUpdate
field_13928
f_znyjhajj
lastTickTime
lastMobSpawningTime
f_8334_
private boolean
j
spawnEnemies
field_13929
f_cbgdxedp
spawnMonsters
spawnMonsters
f_8335_
private boolean
k
spawnFriendlies
field_13941
f_hmdmznvi
spawnAnimals
spawnAnimals
f_8336_
private static final int
l
CACHE_SIZE
field_29766
f_uopxyudo
CACHE_SIZE
CACHE_SIZE
f_143226_
private final long[]
m
lastChunkPos
field_19335
f_gbssytzr
chunkPosCache
chunkPosCache
f_8337_
private final ChunkStatus[]
n
lastChunkStatus
field_19336
f_zqqnrbsq
chunkStatusCache
chunkStatusCache
f_8338_
private final ChunkAccess[]
o
lastChunk
field_19337
f_wbdhtwhc
chunkCache
chunkCache
f_8339_
private final List<LevelChunk>
p
tickingChunks
field_52355
f_ecvyblnm
chunks
f_348546_
private final Set<ChunkHolder>
q
chunkHoldersToBroadcast
field_52356
f_zopiprox
chunksToBroadcastUpdate
f_347385_
private NaturalSpawner$SpawnState
r
lastSpawnState
field_24455
f_ooqjqvki
spawnInfo
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()
m_jvjvyasi()
getLightingProvider()
getLightingProvider()
m_7827_()
private ChunkHolder
b(long arg0)
getVisibleChunkIfPresent(long arg0)
method_14131(long arg0)
m_ilfskcor(long arg0)
getChunkHolder(long pos)
getChunkHolder(long pos)
m_8364_(long arg0)
public int
b()
getTickingGenerated()
method_17301()
m_reddmdwx()
getTotalChunksLoadedCount()
getTotalChunksLoadedCount()
m_8427_()
private void
a(long arg0, dyt arg1, dzu arg2)
storeInCache(long arg0, ChunkAccess arg1, ChunkStatus arg2)
method_21738(long arg0, class_2791 arg1, class_2806 arg2)
m_yvjnruii(long arg0, C_lwzmmmqr arg1, C_kogtzhzt arg2)
putInCache(long pos, Chunk chunk, ChunkStatus status)
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, dzu arg2, boolean arg3)
getChunk(int arg0, int arg1, ChunkStatus arg2, boolean arg3)
method_12121(int arg0, int arg1, class_2806 arg2, boolean arg3)
m_hwywidsl(int arg0, int arg1, C_kogtzhzt arg2, boolean arg3)
getChunk(int arg0, int arg1, ChunkStatus 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)
m_vajkroic(int arg0, int arg1)
getWorldChunk(int arg0, int arg1)
getWorldChunk(int arg0, int arg1)
m_7131_(int p_8358_, int arg1)
private void
r()
clearCache()
method_20587()
m_aoyxjkpt()
initChunkCaches()
initChunkCaches()
m_8488_()
public CompletableFuture<ChunkResult<ChunkAccess>>
b(int arg0, int arg1, dzu arg2, boolean arg3)
getChunkFuture(int arg0, int arg1, ChunkStatus arg2, boolean arg3)
method_17299(int arg0, int arg1, class_2806 arg2, boolean arg3)
m_jgyqtgrc(int arg0, int arg1, C_kogtzhzt arg2, boolean arg3)
getChunkFutureSyncOnMainThread(int chunkX, int chunkZ, ChunkStatus leastStatus, boolean create)
getChunkFutureSyncOnMainThread(int x, int z, 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, dzu arg2, boolean arg3)
getChunkFutureMainThread(int arg0, int arg1, ChunkStatus arg2, boolean arg3)
method_14134(int arg0, int arg1, class_2806 arg2, boolean arg3)
m_hsnsljxf(int arg0, int arg1, C_kogtzhzt arg2, boolean arg3)
getChunkFuture(int chunkX, int chunkZ, ChunkStatus leastStatus, boolean create)
getChunkFuture(int x, int z, ChunkStatus leastStatus, boolean create)
m_8456_(int p_8458_, int p_334479_, C_313554_ p_8460_, boolean arg3)
private boolean
a(aqg arg0, int arg1)
chunkAbsent(ChunkHolder arg0, int arg1)
method_18752(class_3193 arg0, int arg1)
m_fphgxitc(C_gkderdjo arg0, int arg1)
isMissingForLevel(ChunkHolder holder, int maxLevel)
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)
m_taszfhsc(int arg0, int arg1)
isChunkLoaded(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)
m_mvdyojzw(int arg0, int arg1)
getChunk(int arg0, int arg1)
getChunk(int arg0, int arg1)
m_6196_(int p_8455_, int arg1)
public Level
c()
getLevel()
method_16434()
m_vzyywxzi()
getWorld()
getWorld()
m_7653_()
public boolean
d()
pollTask()
method_19492()
m_qiooziqr()
executeQueuedTasks()
executeQueuedTasks()
m_8466_()
boolean
s()
runDistanceManagerUpdates()
method_16155()
m_nymxeyxj()
updateChunks()
tick()
m_8489_()
public boolean
a(long arg0)
isPositionTicking(long arg0)
method_37114(long arg0)
m_epauxdtp(long arg0)
isTickingFutureReady(long pos)
isTickingFutureReady(long pos)
m_143239_(long arg0)
public void
a(boolean arg0)
save(boolean arg0)
method_17298(boolean arg0)
m_dyvlbydm(boolean arg0)
save(boolean flush)
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)
m_ygtguwfv(BooleanSupplier arg0, boolean arg1)
tick(BooleanSupplier arg0, boolean arg1)
tick(BooleanSupplier arg0, boolean arg1)
m_201698_(BooleanSupplier p_201914_, boolean arg1)
private void
t()
tickChunks()
method_14161()
m_pbsddogt()
tickChunks()
tickChunks()
m_8490_()
private void
a(bou arg0)
broadcastChangedChunks(ProfilerFiller arg0)
method_61264(class_3695 arg0)
m_dwccdjvk(C_eslcbfsq arg0)
broadcastUpdates(Profiler profiler)
m_dwccdjvk(Profiler profiler)
m_356610_(C_442_ arg0)
private void
a(List<dzd> arg0)
collectTickingChunks(List<LevelChunk> arg0)
method_61266(List<class_2818> arg0)
m_fshppiss(List<C_hrdsvlkq> arg0)
addChunksToTick(List<WorldChunk> chunks)
m_355953_(List<C_2137_> arg0)
private void
a(bou arg0, long arg1, List<dzd> arg2)
tickChunks(ProfilerFiller arg0, long arg1, List<LevelChunk> arg2)
method_61265(class_3695 arg0, long arg1, List<class_2818> arg2)
m_ywyiiuyu(C_eslcbfsq arg0, long arg1, List<C_hrdsvlkq> arg2)
tickChunks(Profiler profiler, long timeDelta, List<WorldChunk> chunks)
spawnAndTickChunks(Profiler profiler, long arg1, List<WorldChunk> arg2)
m_356839_(C_442_ p_362313_, long p_366274_, List<C_2137_> arg2)
private void
a(long arg0, Consumer<dzd> arg1)
getFullChunk(long arg0, Consumer<LevelChunk> arg1)
method_27907(long arg0, Consumer<class_2818> arg1)
m_kpypddik(long arg0, Consumer<C_hrdsvlkq> arg1)
ifChunkLoaded(long pos, Consumer<WorldChunk> chunkConsumer)
ifChunkLoaded(long pos, Consumer<WorldChunk> chunkConsumer)
m_8370_(long p_8372_, Consumer<C_2137_> arg1)
public String
e()
gatherStats()
method_12122()
m_mhpjzrja()
getDebugString()
getDebugString()
m_6754_()
public int
f()
getPendingTasksCount()
method_21694()
m_iuemgshl()
getPendingTasks()
getPendingTasks()
m_8480_()
public ChunkGenerator
g()
getGenerator()
method_12129()
m_pqlghyyn()
getChunkGenerator()
getChunkGenerator()
m_8481_()
public ChunkGeneratorStructureState
h()
getGeneratorState()
method_46642()
m_arxeyeod()
getStructurePlacementCalculator()
getConcentricRingPlacementCalculator()
m_255415_()
public RandomState
i()
randomState()
method_41248()
m_pwwgckxh()
getNoiseConfig()
getRandomState()
m_214994_()
public int
j()
getLoadedChunksCount()
method_14151()
m_dnkngmin()
getLoadedChunkCount()
getLoadedChunkCount()
m_8482_()
public void
a(ji arg0)
blockChanged(BlockPos arg0)
method_14128(class_2338 arg0)
m_kyogxysq(C_hynzadkk arg0)
markForUpdate(BlockPos pos)
markForUpdate(BlockPos pos)
m_8450_(C_4675_ arg0)
public void
a(dgs arg0, kk arg1)
onLightUpdate(LightLayer arg0, SectionPos arg1)
method_12247(class_1944 arg0, class_4076 arg1)
m_gfdmyksh(C_fhvlmqtw arg0, C_zubvmeye arg1)
onLightUpdate(LightType arg0, ChunkSectionPos arg1)
onLightUpdate(LightType arg0, ChunkSectionPos arg1)
m_6506_(C_1607_ p_8404_, C_4710_ arg1)
public <T> void
a(arj<T> arg0, dfp 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)
m_udxevgvw(C_cuxhrvln<T> arg0, C_ynrszrtu arg1, int arg2, T arg3)
addTicket(ChunkTicketType<T> ticketType, ChunkPos pos, int radius, T argument)
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(arj<T> arg0, dfp 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)
m_txwjwdvi(C_cuxhrvln<T> arg0, C_ynrszrtu arg1, int arg2, T arg3)
removeTicket(ChunkTicketType<T> ticketType, ChunkPos pos, int radius, T argument)
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(dfp arg0, boolean arg1)
updateChunkForced(ChunkPos arg0, boolean arg1)
method_12124(class_1923 arg0, boolean arg1)
m_iknbhnav(C_ynrszrtu arg0, boolean arg1)
setChunkForced(ChunkPos arg0, boolean arg1)
setChunkForced(ChunkPos arg0, boolean arg1)
m_6692_(C_1560_ p_8401_, boolean arg1)
public void
a(are arg0)
move(ServerPlayer arg0)
method_14096(class_3222 arg0)
m_oxbkyszn(C_mxrobsgg arg0)
updatePosition(ServerPlayerEntity player)
updatePosition(ServerPlayerEntity player)
m_8385_(C_13_ arg0)
public void
a(bum arg0)
removeEntity(Entity arg0)
method_18753(class_1297 arg0)
m_yxbwpive(C_astfners arg0)
unloadEntity(Entity entity)
unloadEntity(Entity entity)
m_8443_(C_507_ arg0)
public void
b(bum arg0)
addEntity(Entity arg0)
method_18755(class_1297 arg0)
m_dbjrpnkk(C_astfners arg0)
loadEntity(Entity entity)
loadEntity(Entity entity)
m_8463_(C_507_ arg0)
public void
a(bum arg0, yw<?> arg1)
broadcastAndSend(Entity arg0, Packet<?> arg1)
method_18751(class_1297 arg0, class_2596<?> arg1)
m_ygtjllyp(C_astfners arg0, C_zyjtrjrl<?> arg1)
sendToNearbyPlayers(Entity entity, Packet<?> packet)
sendToNearbyPlayers(Entity entity, Packet<?> packet)
m_8394_(C_507_ p_8396_, C_5028_<?> arg1)
public void
b(bum arg0, yw<?> arg1)
broadcast(Entity arg0, Packet<?> arg1)
method_18754(class_1297 arg0, class_2596<?> arg1)
m_mdptitzk(C_astfners arg0, C_zyjtrjrl<?> arg1)
sendToOtherNearbyPlayers(Entity entity, Packet<?> packet)
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)
m_aspyldja(int arg0)
applyViewDistance(int watchDistance)
applyViewDistance(int watchDistance)
m_8354_(int arg0)
public void
b(int arg0)
setSimulationDistance(int arg0)
method_38634(int arg0)
m_rmnvrkhr(int arg0)
applySimulationDistance(int simulationDistance)
applySimulationDistance(int simulationDistance)
m_184026_(int arg0)
public void
b(boolean arg0)
setSpawnSettings(boolean arg0)
method_12128(boolean arg0)
m_gspauptw(boolean arg0)
setMobSpawnOptions(boolean arg0)
setMobSpawnOptions(boolean arg0)
m_8424_(boolean arg0)
public String
a(dfp arg0)
getChunkDebugData(ChunkPos arg0)
method_23273(class_1923 arg0)
m_lfwksham(C_ynrszrtu arg0)
getChunkLoadingDebugInfo(ChunkPos pos)
getChunkLoadingDebugInfo(ChunkPos pos)
m_8448_(C_1560_ arg0)
public DimensionDataStorage
k()
getDataStorage()
method_17981()
m_rhpijjnc()
getPersistentStateManager()
getPersistentStateManager()
m_8483_()
public PoiManager
l()
getPoiManager()
method_19493()
m_kzjxxowq()
getPointOfInterestStorage()
getPointOfInterestStorage()
m_8484_()
public ChunkScanAccess
m()
chunkScanner()
method_39777()
m_xxonvyvn()
getChunkIoWorker()
getChunkNbtScanner()
m_196555_()
public NaturalSpawner$SpawnState
n()
getLastSpawnState()
method_27908()
m_pcqpeovk()
getSpawnInfo()
getSpawnInfo()
m_8485_()
public void
o()
removeTicketsOnClosing()
method_39997()
m_tklvdsiw()
removePersistentTickets()
removePersistentTickets()
m_201915_()
public void
a(aqg arg0)
onChunkReadyToSend(ChunkHolder arg0)
method_65078(class_3193 arg0)
m_lkcgzhgs(C_gkderdjo arg0)
markForUpdate(ChunkHolder chunkHolder)
m_370241_(C_5422_ arg0)