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.server.world.ServerChunkManager
net.minecraft.server.level.ChunkProviderServer

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
b
LOGGER
field_52354
LOGGER
private final DistanceManager
c
distanceManager
field_17252
ticketManager
private final ServerLevel
d
level
field_13945
world
final Thread
e
mainThread
field_17253
serverThread
final ThreadedLevelLightEngine
f
lightEngine
field_13921
lightingProvider
private final ServerChunkCache$MainThreadExecutor
g
mainThreadProcessor
field_18809
mainThreadExecutor
public final ChunkMap
a
chunkMap
field_17254
chunkLoadingManager
private final DimensionDataStorage
h
dataStorage
field_17708
persistentStateManager
private long
i
lastInhabitedUpdate
field_13928
lastTickTime
private boolean
j
spawnEnemies
field_13929
spawnMonsters
private boolean
k
spawnFriendlies
field_13941
spawnAnimals
private static final int
l
CACHE_SIZE
field_29766
CACHE_SIZE
private final long[]
m
lastChunkPos
field_19335
chunkPosCache
private final ChunkStatus[]
n
lastChunkStatus
field_19336
chunkStatusCache
private final ChunkAccess[]
o
lastChunk
field_19337
chunkCache
private final List<LevelChunk>
p
tickingChunks
field_52355
chunks
private final Set<ChunkHolder>
q
chunkHoldersToBroadcast
field_52356
chunksToBroadcastUpdate
private NaturalSpawner$SpawnState
r
lastSpawnState
field_24455
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()
getLightingProvider()
private ChunkHolder
b(long arg0)
getVisibleChunkIfPresent(long arg0)
method_14131(long arg0)
getChunkHolder(long pos)
public int
b()
getTickingGenerated()
method_17301()
getTotalChunksLoadedCount()
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)
putInCache(long pos, Chunk chunk, ChunkStatus status)
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)
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)
getWorldChunk(int arg0, int arg1)
private void
r()
clearCache()
method_20587()
initChunkCaches()
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)
getChunkFutureSyncOnMainThread(int chunkX, int chunkZ, ChunkStatus leastStatus, boolean create)
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)
getChunkFuture(int chunkX, int chunkZ, ChunkStatus leastStatus, boolean create)
private boolean
a(aqg arg0, int arg1)
chunkAbsent(ChunkHolder arg0, int arg1)
method_18752(class_3193 arg0, int arg1)
isMissingForLevel(ChunkHolder holder, int maxLevel)
public boolean
b(int arg0, int arg1)
hasChunk(int arg0, int arg1)
method_12123(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)
getChunk(int arg0, int arg1)
public Level
c()
getLevel()
method_16434()
getWorld()
public boolean
d()
pollTask()
method_19492()
executeQueuedTasks()
boolean
s()
runDistanceManagerUpdates()
method_16155()
updateChunks()
public boolean
a(long arg0)
isPositionTicking(long arg0)
method_37114(long arg0)
isTickingFutureReady(long pos)
public void
a(boolean arg0)
save(boolean arg0)
method_17298(boolean arg0)
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)
tick(BooleanSupplier arg0, boolean arg1)
private void
t()
tickChunks()
method_14161()
tickChunks()
private void
a(bou arg0)
broadcastChangedChunks(ProfilerFiller arg0)
method_61264(class_3695 arg0)
broadcastUpdates(Profiler profiler)
private void
a(List<dzd> arg0)
collectTickingChunks(List<LevelChunk> arg0)
method_61266(List<class_2818> arg0)
addChunksToTick(List<WorldChunk> chunks)
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)
tickChunks(Profiler profiler, long timeDelta, List<WorldChunk> chunks)
private void
a(long arg0, Consumer<dzd> arg1)
getFullChunk(long arg0, Consumer<LevelChunk> arg1)
method_27907(long arg0, Consumer<class_2818> arg1)
ifChunkLoaded(long pos, Consumer<WorldChunk> chunkConsumer)
public String
e()
gatherStats()
method_12122()
getDebugString()
public int
f()
getPendingTasksCount()
method_21694()
getPendingTasks()
public ChunkGenerator
g()
getGenerator()
method_12129()
getChunkGenerator()
public ChunkGeneratorStructureState
h()
getGeneratorState()
method_46642()
getStructurePlacementCalculator()
public RandomState
i()
randomState()
method_41248()
getNoiseConfig()
public int
j()
getLoadedChunksCount()
method_14151()
getLoadedChunkCount()
public void
a(ji arg0)
blockChanged(BlockPos arg0)
method_14128(class_2338 arg0)
markForUpdate(BlockPos pos)
public void
a(dgs arg0, kk arg1)
onLightUpdate(LightLayer arg0, SectionPos arg1)
method_12247(class_1944 arg0, class_4076 arg1)
onLightUpdate(LightType arg0, ChunkSectionPos 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)
addTicket(ChunkTicketType<T> ticketType, ChunkPos pos, int radius, T argument)
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)
removeTicket(ChunkTicketType<T> ticketType, ChunkPos pos, int radius, T argument)
public void
a(dfp arg0, boolean arg1)
updateChunkForced(ChunkPos arg0, boolean arg1)
method_12124(class_1923 arg0, boolean arg1)
setChunkForced(ChunkPos arg0, boolean arg1)
public void
a(are arg0)
move(ServerPlayer arg0)
method_14096(class_3222 arg0)
updatePosition(ServerPlayerEntity player)
public void
a(bum arg0)
removeEntity(Entity arg0)
method_18753(class_1297 arg0)
unloadEntity(Entity entity)
public void
b(bum arg0)
addEntity(Entity arg0)
method_18755(class_1297 arg0)
loadEntity(Entity entity)
public void
a(bum arg0, yw<?> arg1)
broadcastAndSend(Entity arg0, Packet<?> arg1)
method_18751(class_1297 arg0, class_2596<?> arg1)
sendToNearbyPlayers(Entity entity, Packet<?> packet)
public void
b(bum arg0, yw<?> arg1)
broadcast(Entity arg0, Packet<?> arg1)
method_18754(class_1297 arg0, class_2596<?> arg1)
sendToOtherNearbyPlayers(Entity entity, Packet<?> packet)
public void
a(int arg0)
setViewDistance(int arg0)
method_14144(int arg0)
applyViewDistance(int watchDistance)
public void
b(int arg0)
setSimulationDistance(int arg0)
method_38634(int arg0)
applySimulationDistance(int simulationDistance)
public void
b(boolean arg0)
setSpawnSettings(boolean arg0)
method_12128(boolean arg0)
setMobSpawnOptions(boolean arg0)
public String
a(dfp arg0)
getChunkDebugData(ChunkPos arg0)
method_23273(class_1923 arg0)
getChunkLoadingDebugInfo(ChunkPos pos)
public DimensionDataStorage
k()
getDataStorage()
method_17981()
getPersistentStateManager()
public PoiManager
l()
getPoiManager()
method_19493()
getPointOfInterestStorage()
public ChunkScanAccess
m()
chunkScanner()
method_39777()
getChunkIoWorker()
public NaturalSpawner$SpawnState
n()
getLastSpawnState()
method_27908()
getSpawnInfo()
public void
o()
removeTicketsOnClosing()
method_39997()
removePersistentTickets()
public void
a(aqg arg0)
onChunkReadyToSend(ChunkHolder arg0)
method_65078(class_3193 arg0)
markForUpdate(ChunkHolder chunkHolder)