net.minecraft.server.level

public class ServerChunkCache

extends ChunkSource

All mapped superinterfaces:

LightChunkGetter

arn
net.minecraft.server.level.ServerChunkCache
net.minecraft.class_3215
net.minecraft.unmapped.C_ebcmvjwj
net.minecraft.server.world.ServerChunkManager
net.minecraft.server.world.ServerChunkManager

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
b
LOGGER
field_52354
f_etjmmzam
LOGGER
LOGGER
private final DistanceManager
c
distanceManager
field_17252
f_ydkjshsp
levelManager
ticketManager
private final ServerLevel
d
level
field_13945
f_obcjuaxe
world
world
final Thread
e
mainThread
field_17253
f_qtzeurch
serverThread
serverThread
final ThreadedLevelLightEngine
f
lightEngine
field_13921
f_wxlbdscx
lightingProvider
lightingProvider
private final ServerChunkCache$MainThreadExecutor
g
mainThreadProcessor
field_18809
f_ixxxjgez
mainThreadExecutor
mainThreadExecutor
public final ChunkMap
a
chunkMap
field_17254
f_sxcfajbf
chunkLoadingManager
delegate
private final DimensionDataStorage
h
dataStorage
field_17708
f_ihdjlbqp
persistentStateManager
persistentStateManager
private final TicketStorage
i
ticketStorage
field_55594
f_hpvpfzqq
ticketManager
private long
j
lastInhabitedUpdate
field_13928
f_znyjhajj
lastTickTime
lastMobSpawningTime
private boolean
k
spawnEnemies
field_13929
f_cbgdxedp
spawnMonsters
spawnMonsters
private boolean
l
spawnFriendlies
field_13941
f_hmdmznvi
spawnAnimals
spawnAnimals
private static final int
m
CACHE_SIZE
field_29766
f_uopxyudo
CACHE_SIZE
CACHE_SIZE
private final long[]
n
lastChunkPos
field_19335
f_gbssytzr
chunkPosCache
chunkPosCache
private final ChunkStatus[]
o
lastChunkStatus
field_19336
f_zqqnrbsq
chunkStatusCache
chunkStatusCache
private final ChunkAccess[]
p
lastChunk
field_19337
f_wbdhtwhc
chunkCache
chunkCache
private final List<LevelChunk>
q
spawningChunks
field_56524
f_tmrvukwe
spawningChunks
private final Set<ChunkHolder>
r
chunkHoldersToBroadcast
field_52356
f_zopiprox
chunksToBroadcastUpdate
private NaturalSpawner$SpawnState
s
lastSpawnState
field_24455
f_ooqjqvki
spawnInfo
spawnInfo

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()
private ChunkHolder
b(long arg0)
getVisibleChunkIfPresent(long arg0)
method_14131(long arg0)
m_ilfskcor(long arg0)
getChunkHolder(long pos)
getChunkHolder(long pos)
public int
b()
getTickingGenerated()
method_17301()
m_reddmdwx()
getTotalChunksLoadedCount()
getTotalChunksLoadedCount()
private void
a(long arg0, ece arg1, edf 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)
public ChunkAccess
a(int arg0, int arg1, edf 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)
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)
private void
s()
clearCache()
method_20587()
m_aoyxjkpt()
initChunkCaches()
initChunkCaches()
public CompletableFuture<ChunkResult<ChunkAccess>>
b(int arg0, int arg1, edf 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)
private CompletableFuture<ChunkResult<ChunkAccess>>
c(int arg0, int arg1, edf 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)
private boolean
a(aqs 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)
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)
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)
public Level
c()
getLevel()
method_16434()
m_vzyywxzi()
getWorld()
getWorld()
public boolean
d()
pollTask()
method_19492()
m_qiooziqr()
executeQueuedTasks()
executeQueuedTasks()
boolean
t()
runDistanceManagerUpdates()
method_16155()
m_nymxeyxj()
updateChunks()
tick()
public boolean
a(long arg0)
isPositionTicking(long arg0)
method_37114(long arg0)
m_epauxdtp(long arg0)
isTickingFutureReady(long pos)
isTickingFutureReady(long pos)
public void
a(boolean arg0)
save(boolean arg0)
method_17298(boolean arg0)
m_dyvlbydm(boolean arg0)
save(boolean flush)
save(boolean flush)
public void
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)
private void
u()
tickChunks()
method_14161()
m_pbsddogt()
tickChunks()
tickChunks()
private void
a(bqo arg0)
broadcastChangedChunks(ProfilerFiller arg0)
method_61264(class_3695 arg0)
m_dwccdjvk(C_eslcbfsq arg0)
broadcastUpdates(Profiler profiler)
m_dwccdjvk(Profiler profiler)
private void
a(bqo arg0, long arg1)
tickChunks(ProfilerFiller arg0, long arg1)
method_61265(class_3695 arg0, long arg1)
m_vvxzhqqb(C_eslcbfsq arg0, long arg1)
tickChunks(Profiler profiler, long timeDelta)
m_vvxzhqqb(Profiler profiler, long arg1)
private void
a(eco arg0, long arg1, List<bxh> arg2, djl$d arg3)
tickSpawningChunk(LevelChunk arg0, long arg1, List<MobCategory> arg2, NaturalSpawner$SpawnState arg3)
method_67502(class_2818 arg0, long arg1, List<class_1311> arg2, class_1948$class_5262 arg3)
m_rqlacgox(C_hrdsvlkq arg0, long arg1, List<C_ormqdxci> arg2, C_rvfygodd$C_tsgfqxij arg3)
tickSpawningChunk(WorldChunk chunk, long timeDelta, List<SpawnGroup> spawnableGroups, SpawnHelper$Info info)
private void
a(long arg0, Consumer<eco> 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)
public String
e()
gatherStats()
method_12122()
m_mhpjzrja()
getDebugString()
getDebugString()
public int
f()
getPendingTasksCount()
method_21694()
m_iuemgshl()
getPendingTasks()
getPendingTasks()
public ChunkGenerator
g()
getGenerator()
method_12129()
m_pqlghyyn()
getChunkGenerator()
getChunkGenerator()
public ChunkGeneratorStructureState
h()
getGeneratorState()
method_46642()
m_arxeyeod()
getStructurePlacementCalculator()
getConcentricRingPlacementCalculator()
public RandomState
i()
randomState()
method_41248()
m_pwwgckxh()
getNoiseConfig()
getRandomState()
public int
j()
getLoadedChunksCount()
method_14151()
m_dnkngmin()
getLoadedChunkCount()
getLoadedChunkCount()
public void
a(iu arg0)
blockChanged(BlockPos arg0)
method_14128(class_2338 arg0)
m_kyogxysq(C_hynzadkk arg0)
markForUpdate(BlockPos pos)
markForUpdate(BlockPos pos)
public void
a(djj arg0, jx 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)
public void
a(arw arg0, dih arg1)
addTicket(Ticket arg0, ChunkPos arg1)
method_66008(class_3228 arg0, class_1923 arg1)
m_ynefnpxl(C_sstigolf arg0, C_ynrszrtu arg1)
addTicket(ChunkTicket ticket, ChunkPos pos)
public void
a(arx arg0, dih arg1, int arg2)
addTicketWithRadius(TicketType arg0, ChunkPos arg1, int arg2)
method_66009(class_3230 arg0, class_1923 arg1, int arg2)
m_zhhtgueh(C_cuxhrvln arg0, C_ynrszrtu arg1, int arg2)
addTicket(ChunkTicketType type, ChunkPos pos, int radius)
m_zhhtgueh(ChunkTicketType type, ChunkPos arg1, int arg2)
public void
b(arx arg0, dih arg1, int arg2)
removeTicketWithRadius(TicketType arg0, ChunkPos arg1, int arg2)
method_66010(class_3230 arg0, class_1923 arg1, int arg2)
m_oqdsbdjr(C_cuxhrvln arg0, C_ynrszrtu arg1, int arg2)
removeTicket(ChunkTicketType type, ChunkPos pos, int radius)
m_oqdsbdjr(ChunkTicketType type, ChunkPos arg1, int arg2)
public boolean
a(dih 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)
public it.unimi.dsi.fastutil.longs.LongSet
k()
getForceLoadedChunks()
method_66011()
m_dsfcordq()
getForcedChunks()
public void
a(arr arg0)
move(ServerPlayer arg0)
method_14096(class_3222 arg0)
m_oxbkyszn(C_mxrobsgg arg0)
updatePosition(ServerPlayerEntity player)
updatePosition(ServerPlayerEntity player)
public void
a(bwf arg0)
removeEntity(Entity arg0)
method_18753(class_1297 arg0)
m_yxbwpive(C_astfners arg0)
unloadEntity(Entity entity)
unloadEntity(Entity entity)
public void
b(bwf arg0)
addEntity(Entity arg0)
method_18755(class_1297 arg0)
m_dbjrpnkk(C_astfners arg0)
loadEntity(Entity entity)
loadEntity(Entity entity)
public void
a(bwf arg0, zf<?> 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)
public void
b(bwf arg0, zf<?> 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)
public void
a(int arg0)
setViewDistance(int arg0)
method_14144(int arg0)
m_aspyldja(int arg0)
applyViewDistance(int watchDistance)
applyViewDistance(int watchDistance)
public void
b(int arg0)
setSimulationDistance(int arg0)
method_38634(int arg0)
m_rmnvrkhr(int arg0)
applySimulationDistance(int simulationDistance)
applySimulationDistance(int simulationDistance)
public void
b(boolean arg0)
setSpawnSettings(boolean arg0)
method_12128(boolean arg0)
m_gspauptw(boolean arg0)
setMobSpawnOptions(boolean arg0)
setMobSpawnOptions(boolean arg0)
public String
a(dih arg0)
getChunkDebugData(ChunkPos arg0)
method_23273(class_1923 arg0)
m_lfwksham(C_ynrszrtu arg0)
getChunkLoadingDebugInfo(ChunkPos pos)
getChunkLoadingDebugInfo(ChunkPos pos)
public DimensionDataStorage
l()
getDataStorage()
method_17981()
m_rhpijjnc()
getPersistentStateManager()
getPersistentStateManager()
public PoiManager
m()
getPoiManager()
method_19493()
m_kzjxxowq()
getPointOfInterestStorage()
getPointOfInterestStorage()
public ChunkScanAccess
n()
chunkScanner()
method_39777()
m_xxonvyvn()
getChunkIoWorker()
getChunkNbtScanner()
public NaturalSpawner$SpawnState
o()
getLastSpawnState()
method_27908()
m_pcqpeovk()
getSpawnInfo()
getSpawnInfo()
public void
p()
deactivateTicketsOnClosing()
method_66012()
m_ujqjeiyp()
shutdown()
public void
a(aqs arg0)
onChunkReadyToSend(ChunkHolder arg0)
method_65078(class_3193 arg0)
m_lkcgzhgs(C_gkderdjo arg0)
markForUpdate(ChunkHolder chunkHolder)