net.minecraft.server.level

public class ServerChunkCache

extends ChunkSource

All mapped superinterfaces:

LightChunkGetter

abp
net.minecraft.server.level.ServerChunkCache
net.minecraft.class_3215
net.minecraft.unmapped.C_ebcmvjwj
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
f_jwrjyshk
CHUNK_STATUSES
f_8326_
private final DistanceManager
c
distanceManager
field_17252
f_ydkjshsp
ticketManager
f_8327_
private final ChunkGenerator
d
generator
field_13939
f_aprugaev
chunkGenerator
f_8328_
final ServerLevel
e
level
field_13945
f_obcjuaxe
world
f_8329_
final Thread
f
mainThread
field_17253
f_qtzeurch
serverThread
f_8330_
final ThreadedLevelLightEngine
g
lightEngine
field_13921
f_wxlbdscx
lightProvider
f_8331_
private final ServerChunkCache$MainThreadExecutor
h
mainThreadProcessor
field_18809
f_ixxxjgez
mainThreadExecutor
f_8332_
public final ChunkMap
a
chunkMap
field_17254
f_sxcfajbf
threadedAnvilChunkStorage
f_8325_
private final DimensionDataStorage
i
dataStorage
field_17708
f_ihdjlbqp
persistentStateManager
f_8333_
private long
j
lastInhabitedUpdate
field_13928
f_znyjhajj
lastMobSpawningTime
f_8334_
private boolean
k
spawnEnemies
field_13929
f_cbgdxedp
spawnMonsters
f_8335_
private boolean
l
spawnFriendlies
field_13941
f_hmdmznvi
spawnAnimals
f_8336_
private static final int
m
CACHE_SIZE
field_29766
f_uopxyudo
field_29766
f_143226_
private final long[]
n
lastChunkPos
field_19335
f_gbssytzr
chunkPosCache
f_8337_
private final ChunkStatus[]
o
lastChunkStatus
field_19336
f_zqqnrbsq
chunkStatusCache
f_8338_
private final ChunkAccess[]
p
lastChunk
field_19337
f_wbdhtwhc
chunkCache
f_8339_
private NaturalSpawner$SpawnState
q
lastSpawnState
field_24455
f_ooqjqvki
spawnEntry
f_8340_

Constructor summary

ModifierConstructor
public (ServerLevel world, LevelStorageSource$LevelStorageAccess session, com.mojang.datafixers.DataFixer dataFixer, StructureManager structureManager, Executor workerExecutor, ChunkGenerator chunkGenerator, int viewDistance, boolean p_143236_, ChunkProgressListener worldGenerationProgressListener, ChunkStatusUpdateListener p_143238_, Supplier<DimensionDataStorage> arg10)

Method summary

Modifier and TypeMethod
public ThreadedLevelLightEngine
a()
getLightEngine()
method_17293()
m_jvjvyasi()
getLightingProvider()
m_7827_()
getLightEngine()
private ChunkHolder
b(long arg0)
getVisibleChunkIfPresent(long arg0)
method_14131(long arg0)
m_ilfskcor(long arg0)
getChunkHolder(long pos)
m_8364_(long arg0)
getChunk(long arg0)
public int
b()
getTickingGenerated()
method_17301()
m_reddmdwx()
getTotalChunksLoadedCount()
m_8427_()
private void
a(long arg0, cml arg1, cmp 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)
m_8366_(long p_8368_, C_2116_ arg1, C_2126_ arg2)
public ChunkAccess
a(int arg0, int arg1, cmp arg2, boolean arg3)
getChunk(int arg0, int arg1, ChunkStatus arg2, boolean arg3)
method_12121(int arg0, int arg1, class_2806 arg2, boolean arg3)
m_frqbiuca(int arg0, int arg1, C_kogtzhzt arg2, boolean arg3)
getChunk(int arg0, int arg1, ChunkStatus arg2, boolean arg3)
m_7587_(int p_8361_, int p_8362_, C_2126_ p_8363_, 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)
m_vajkroic(int arg0, int arg1)
getWorldChunk(int arg0, int arg1)
m_7131_(int p_8358_, int arg1)
private void
n()
clearCache()
method_20587()
m_aoyxjkpt()
initChunkCaches()
m_8488_()
clearCache()
public CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder$ChunkLoadingFailure>>
b(int arg0, int arg1, cmp 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)
m_8431_(int p_8433_, int p_8434_, C_2126_ p_8435_, boolean arg3)
private CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder$ChunkLoadingFailure>>
c(int arg0, int arg1, cmp 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)
m_8456_(int p_8458_, int p_8459_, C_2126_ p_8460_, boolean arg3)
getChunkFutureMainThread(int arg0, int arg1, ChunkStatus arg2, boolean arg3)
private boolean
a(abd 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)
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)
m_5563_(int p_8430_, 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)
m_mvdyojzw(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()
m_7653_()
getWorld()
public boolean
d()
pollTask()
method_19492()
m_qiooziqr()
executeQueuedTasks()
m_8466_()
runTasks()
boolean
o()
runDistanceManagerUpdates()
method_16155()
m_nymxeyxj()
tick()
m_8489_()
tickDistanceManager()
public boolean
a(long arg0)
isPositionTicking(long arg0)
method_37114(long arg0)
m_epauxdtp(long arg0)
method_37114(long arg0)
m_143239_(long arg0)
private boolean
a(long arg0, Function<abd, CompletableFuture<com.mojang.datafixers.util.Either<cmw, abd$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)
m_jzrcuvgn(long arg0, Function<C_gkderdjo, CompletableFuture<com.mojang.datafixers.util.Either<C_hrdsvlkq, C_gkderdjo$C_mnhcarhk>>> arg1)
isFutureReady(long pos, Function<ChunkHolder, CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk, ChunkHolder$Unloaded>>> futureFunction)
m_8373_(long p_8375_, Function<C_5422_, CompletableFuture<com.mojang.datafixers.util.Either<C_2137_, C_5422_$C_5424_>>> arg1)
public void
a(boolean arg0)
save(boolean arg0)
method_17298(boolean arg0)
m_dyvlbydm(boolean arg0)
save(boolean flush)
m_8419_(boolean arg0)
save(boolean arg0)
public void
close()
close()
close()
public void
a(BooleanSupplier arg0)
tick(BooleanSupplier arg0)
method_12127(BooleanSupplier arg0)
m_ygtguwfv(BooleanSupplier arg0)
tick(BooleanSupplier arg0)
m_142483_(BooleanSupplier arg0)
tick(BooleanSupplier arg0)
private void
p()
tickChunks()
method_14161()
m_krolkpuz()
tickChunks()
m_8490_()
tickChunks()
private void
a(long arg0, Consumer<cmw> 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)
m_8370_(long p_8372_, Consumer<C_2137_> arg1)
public String
e()
gatherStats()
method_12122()
m_mhpjzrja()
getDebugString()
m_6754_()
getName()
public int
f()
getPendingTasksCount()
method_21694()
m_iuemgshl()
getPendingTasks()
m_8480_()
public ChunkGenerator
g()
getGenerator()
method_12129()
m_pqlghyyn()
getChunkGenerator()
m_8481_()
getChunkGenerator()
public int
h()
getLoadedChunksCount()
method_14151()
m_dnkngmin()
getLoadedChunkCount()
m_142061_()
public void
a(gg arg0)
blockChanged(BlockPos arg0)
method_14128(class_2338 arg0)
m_kyogxysq(C_hynzadkk arg0)
markForUpdate(BlockPos pos)
m_8450_(C_4675_ arg0)
flagDirty(BlockPosition arg0)
public void
a(bwy arg0, gz 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)
m_6506_(C_1607_ p_8404_, C_4710_ arg1)
public <T> void
a(abw<T> arg0, bvu 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)
m_8387_(C_18_<T> p_8389_, C_1560_ p_8390_, int p_8391_, T arg3)
addTicket(TicketType<T> arg0, ChunkCoordIntPair arg1, int arg2, T arg3)
public <T> void
b(abw<T> arg0, bvu 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)
m_8438_(C_18_<T> p_8440_, C_1560_ p_8441_, int p_8442_, T arg3)
removeTicket(TicketType<T> arg0, ChunkCoordIntPair arg1, int arg2, T arg3)
public void
a(bvu 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)
m_6692_(C_1560_ p_8401_, boolean arg1)
public void
a(abs arg0)
move(ServerPlayer arg0)
method_14096(class_3222 arg0)
m_oxbkyszn(C_mxrobsgg arg0)
updatePosition(ServerPlayerEntity player)
m_8385_(C_13_ arg0)
movePlayer(EntityPlayer arg0)
public void
a(atf arg0)
removeEntity(Entity arg0)
method_18753(class_1297 arg0)
m_yxbwpive(C_astfners arg0)
unloadEntity(Entity entity)
m_8443_(C_507_ arg0)
removeEntity(Entity arg0)
public void
b(atf arg0)
addEntity(Entity arg0)
method_18755(class_1297 arg0)
m_dbjrpnkk(C_astfners arg0)
loadEntity(Entity entity)
m_8463_(C_507_ arg0)
addEntity(Entity arg0)
public void
a(atf arg0, pk<?> 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)
m_8394_(C_507_ p_8396_, C_5028_<?> arg1)
broadcastIncludingSelf(Entity arg0, Packet<?> arg1)
public void
b(atf arg0, pk<?> 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)
m_8445_(C_507_ p_8447_, C_5028_<?> arg1)
broadcast(Entity arg0, Packet<?> arg1)
public void
a(int arg0)
setViewDistance(int arg0)
method_14144(int arg0)
m_aspyldja(int arg0)
applyViewDistance(int watchDistance)
m_8354_(int arg0)
setViewDistance(int arg0)
public void
a(boolean arg0, boolean arg1)
setSpawnSettings(boolean arg0, boolean arg1)
method_12128(boolean arg0, boolean arg1)
m_gspauptw(boolean arg0, boolean arg1)
setMobSpawnOptions(boolean arg0, boolean arg1)
m_6707_(boolean p_8426_, boolean arg1)
public String
a(bvu arg0)
getChunkDebugData(ChunkPos arg0)
method_23273(class_1923 arg0)
m_lfwksham(C_ynrszrtu arg0)
getChunkLoadingDebugInfo(ChunkPos pos)
m_8448_(C_1560_ arg0)
public DimensionDataStorage
i()
getDataStorage()
method_17981()
m_rhpijjnc()
getPersistentStateManager()
m_8483_()
getWorldPersistentData()
public PoiManager
j()
getPoiManager()
method_19493()
m_kzjxxowq()
getPointOfInterestStorage()
m_8484_()
public NaturalSpawner$SpawnState
k()
getLastSpawnState()
method_27908()
m_pcqpeovk()
getSpawnInfo()
m_8485_()