net.minecraft.server.level

public class ServerChunkCache

extends ChunkSource

All mapped superinterfaces:

LightChunkGetter

arl
net.minecraft.server.level.ServerChunkCache
net.minecraft.class_3215
net.minecraft.server.world.ServerChunkManager

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
b
LOGGER
field_52354
LOGGER
private final DistanceManager
c
distanceManager
field_17252
levelManager
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 final TicketStorage
i
ticketStorage
field_55594
ticketManager
private long
j
lastInhabitedUpdate
field_13928
lastTickTime
private boolean
k
spawnEnemies
field_13929
spawnMonsters
private boolean
l
spawnFriendlies
field_13941
spawnAnimals
private static final int
m
CACHE_SIZE
field_29766
CACHE_SIZE
private final long[]
n
lastChunkPos
field_19335
chunkPosCache
private final ChunkStatus[]
o
lastChunkStatus
field_19336
chunkStatusCache
private final ChunkAccess[]
p
lastChunk
field_19337
chunkCache
private final List<LevelChunk>
q
tickingChunks
field_52355
chunks
private final Set<ChunkHolder>
r
chunkHoldersToBroadcast
field_52356
chunksToBroadcastUpdate
private NaturalSpawner$SpawnState
s
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, ebl arg1, ecm 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, ecm 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
s()
clearCache()
method_20587()
initChunkCaches()
public CompletableFuture<ChunkResult<ChunkAccess>>
b(int arg0, int arg1, ecm 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, ecm 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(aqq 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
t()
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
u()
tickChunks()
method_14161()
tickChunks()
private void
a(bqj arg0)
broadcastChangedChunks(ProfilerFiller arg0)
method_61264(class_3695 arg0)
broadcastUpdates(Profiler profiler)
private void
a(List<ebv> arg0)
collectTickingChunks(List<LevelChunk> arg0)
method_61266(List<class_2818> arg0)
addChunksToTick(List<WorldChunk> chunks)
private void
a(bqj arg0, long arg1, List<ebv> 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<ebv> 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(iu arg0)
blockChanged(BlockPos arg0)
method_14128(class_2338 arg0)
markForUpdate(BlockPos pos)
public void
a(diy arg0, jx arg1)
onLightUpdate(LightLayer arg0, SectionPos arg1)
method_12247(class_1944 arg0, class_4076 arg1)
onLightUpdate(LightType arg0, ChunkSectionPos arg1)
public void
a(aru arg0, dhw arg1)
addTicket(Ticket arg0, ChunkPos arg1)
method_66008(class_3228 arg0, class_1923 arg1)
addTicket(ChunkTicket ticket, ChunkPos pos)
public void
a(arv arg0, dhw arg1, int arg2)
addTicketWithRadius(TicketType arg0, ChunkPos arg1, int arg2)
method_66009(class_3230 arg0, class_1923 arg1, int arg2)
addTicket(ChunkTicketType type, ChunkPos pos, int radius)
public void
b(arv arg0, dhw arg1, int arg2)
removeTicketWithRadius(TicketType arg0, ChunkPos arg1, int arg2)
method_66010(class_3230 arg0, class_1923 arg1, int arg2)
removeTicket(ChunkTicketType type, ChunkPos pos, int radius)
public boolean
a(dhw arg0, boolean arg1)
updateChunkForced(ChunkPos arg0, boolean arg1)
method_12124(class_1923 arg0, boolean arg1)
setChunkForced(ChunkPos arg0, boolean arg1)
public it.unimi.dsi.fastutil.longs.LongSet
k()
getForceLoadedChunks()
method_66011()
getForcedChunks()
public void
a(arp arg0)
move(ServerPlayer arg0)
method_14096(class_3222 arg0)
updatePosition(ServerPlayerEntity player)
public void
a(bwa arg0)
removeEntity(Entity arg0)
method_18753(class_1297 arg0)
unloadEntity(Entity entity)
public void
b(bwa arg0)
addEntity(Entity arg0)
method_18755(class_1297 arg0)
loadEntity(Entity entity)
public void
a(bwa arg0, zd<?> arg1)
broadcastAndSend(Entity arg0, Packet<?> arg1)
method_18751(class_1297 arg0, class_2596<?> arg1)
sendToNearbyPlayers(Entity entity, Packet<?> packet)
public void
b(bwa arg0, zd<?> 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(dhw arg0)
getChunkDebugData(ChunkPos arg0)
method_23273(class_1923 arg0)
getChunkLoadingDebugInfo(ChunkPos pos)
public DimensionDataStorage
l()
getDataStorage()
method_17981()
getPersistentStateManager()
public PoiManager
m()
getPoiManager()
method_19493()
getPointOfInterestStorage()
public ChunkScanAccess
n()
chunkScanner()
method_39777()
getChunkIoWorker()
public NaturalSpawner$SpawnState
o()
getLastSpawnState()
method_27908()
getSpawnInfo()
public void
p()
deactivateTicketsOnClosing()
method_66012()
shutdown()
public void
a(aqq arg0)
onChunkReadyToSend(ChunkHolder arg0)
method_65078(class_3193 arg0)
markForUpdate(ChunkHolder chunkHolder)