net.minecraft.server.level

public class ChunkHolder

extends GenerationChunkHolder

apz
net.minecraft.server.level.ChunkHolder
net.minecraft.class_3193
net.minecraft.server.world.ChunkHolder
net.minecraft.src.C_5422_
net.minecraft.server.level.PlayerChunk

Field summary

Modifier and TypeField
public static final ChunkResult<LevelChunk>
a
UNLOADED_LEVEL_CHUNK
field_16427
UNLOADED_WORLD_CHUNK
f_139997_
private static final CompletableFuture<ChunkResult<LevelChunk>>
e
UNLOADED_LEVEL_CHUNK_FUTURE
field_16429
UNLOADED_WORLD_CHUNK_FUTURE
f_139998_
private final LevelHeightAccessor
f
levelHeightAccessor
field_26929
world
f_142983_
private volatile CompletableFuture<ChunkResult<LevelChunk>>
g
fullChunkFuture
field_16431
accessibleFuture
f_140002_
private volatile CompletableFuture<ChunkResult<LevelChunk>>
h
tickingChunkFuture
field_19333
tickingFuture
f_140003_
private volatile CompletableFuture<ChunkResult<LevelChunk>>
i
entityTickingChunkFuture
field_13865
entityTickingFuture
f_140004_
private int
j
oldTicketLevel
field_16432
lastTickLevel
f_140006_
private int
k
ticketLevel
field_13862
level
f_140007_
private int
l
queueLevel
field_17208
completedLevel
f_140008_
private boolean
m
hasChangedSections
field_25803
pendingBlockUpdates
f_140010_
private final it.unimi.dsi.fastutil.shorts.ShortSet[]
n
changedBlocksPerSection
field_25804
blockUpdatesBySection
f_140011_
private final BitSet
o
blockChangedLightSectionFilter
field_13871
blockLightUpdateBits
f_140012_
private final BitSet
p
skyChangedLightSectionFilter
field_13870
skyLightUpdateBits
f_140013_
private final LevelLightEngine
q
lightEngine
field_13863
lightingProvider
f_140014_
private final ChunkHolder$LevelChangeListener
r
onLevelChange
field_17209
levelUpdateListener
f_140015_
private final ChunkHolder$PlayerProvider
s
playerProvider
field_17210
playersWatchingChunkProvider
f_140016_
private boolean
t
wasAccessibleSinceLastSave
field_19238
accessible
f_140017_
private CompletableFuture<?>
u
pendingFullStateConfirmation
field_26930
levelIncreaseFuture
f_142981_
private CompletableFuture<?>
v
sendSync
field_46085
postProcessingFuture
f_290310_
private CompletableFuture<?>
w
saveSync
field_51858
savingFuture
f_337350_

Constructor summary

ModifierConstructor
public (ChunkPos pos, int level, LevelHeightAccessor world, LevelLightEngine lightingProvider, ChunkHolder$LevelChangeListener levelUpdateListener, ChunkHolder$PlayerProvider playersWatchingChunkProvider)

Method summary

Modifier and TypeMethod
public CompletableFuture<ChunkResult<LevelChunk>>
a()
getTickingChunkFuture()
method_16145()
getTickingFuture()
m_140026_()
public CompletableFuture<ChunkResult<LevelChunk>>
b()
getEntityTickingChunkFuture()
method_14003()
getEntityTickingFuture()
m_140073_()
public CompletableFuture<ChunkResult<LevelChunk>>
c()
getFullChunkFuture()
method_20725()
getAccessibleFuture()
m_140082_()
public LevelChunk
d()
getTickingChunk()
method_16144()
getWorldChunk()
m_140085_()
public LevelChunk
e()
getChunkToSend()
method_53682()
getPostProcessedChunk()
m_295552_()
public CompletableFuture<?>
f()
getSendSyncFuture()
method_53681()
getPostProcessingFuture()
m_294134_()
public void
a(CompletableFuture<?> arg0)
addSendDependency(CompletableFuture<?> arg0)
method_53680(CompletableFuture<?> arg0)
combinePostProcessingFuture(CompletableFuture<?> postProcessingFuture)
m_295085_(CompletableFuture<?> arg0)
public CompletableFuture<?>
g()
getSaveSyncFuture()
method_14000()
getSavingFuture()
m_339472_()
public boolean
h()
isReadyForSaving()
method_60436()
isSavable()
m_339539_()
private void
b(CompletableFuture<?> arg0)
addSaveDependency(CompletableFuture<?> arg0)
method_39967(CompletableFuture<?> arg0)
combineSavingFuture(CompletableFuture<?> savingFuture)
m_200416_(CompletableFuture<?> arg0)
public void
a(jd arg0)
blockChanged(BlockPos arg0)
method_14002(class_2338 arg0)
markForBlockUpdate(BlockPos pos)
m_140056_(C_4675_ arg0)
public void
a(ddf arg0, int arg1)
sectionLightChanged(LightLayer arg0, int arg1)
method_14012(class_1944 arg0, int arg1)
markForLightUpdate(LightType lightType, int y)
m_140036_(C_1607_ p_140038_, int arg1)
public void
a(dvi arg0)
broadcastChanges(LevelChunk arg0)
method_14006(class_2818 arg0)
flushUpdates(WorldChunk chunk)
m_140054_(C_2137_ arg0)
private void
a(List<aqv> arg0, dcw arg1, jd arg2, dtc arg3)
broadcastBlockEntityIfNeeded(List<ServerPlayer> arg0, Level arg1, BlockPos arg2, BlockState arg3)
method_30311(List<class_3222> arg0, class_1937 arg1, class_2338 arg2, class_2680 arg3)
tryUpdateBlockEntityAt(List<ServerPlayerEntity> players, World world, BlockPos pos, BlockState state)
m_288224_(List<C_13_> p_289011_, C_1596_ p_288969_, C_4675_ p_288973_, C_2064_ arg3)
private void
a(List<aqv> arg0, dcw arg1, jd arg2)
broadcastBlockEntity(List<ServerPlayer> arg0, Level arg1, BlockPos arg2)
method_14009(List<class_3222> arg0, class_1937 arg1, class_2338 arg2)
sendBlockEntityUpdatePacket(List<ServerPlayerEntity> players, World world, BlockPos pos)
m_288223_(List<C_13_> p_289005_, C_1596_ p_288981_, C_4675_ arg2)
private void
a(List<aqv> arg0, zg<?> arg1)
broadcast(List<ServerPlayer> arg0, Packet<?> arg1)
method_13992(List<class_3222> arg0, class_2596<?> arg1)
sendPacketToPlayers(List<ServerPlayerEntity> players, Packet<?> packet)
m_288202_(List<C_13_> p_289013_, C_5028_<?> arg1)
public int
i()
getTicketLevel()
method_14005()
getLevel()
m_140093_()
public int
j()
getQueueLevel()
method_17208()
getCompletedLevel()
m_140094_()
private void
b(int arg0)
setQueueLevel(int arg0)
method_17207(int arg0)
setCompletedLevel(int level)
m_140086_(int arg0)
public void
a(int arg0)
setTicketLevel(int arg0)
method_15890(int arg0)
setLevel(int level)
m_140027_(int arg0)
private void
a(aqb arg0, CompletableFuture<aqc<dvi>> arg1, Executor arg2, aql arg3)
scheduleFullChunkPromotion(ChunkMap arg0, CompletableFuture<ChunkResult<LevelChunk>> arg1, Executor arg2, FullChunkStatus arg3)
method_31409(class_3898 arg0, CompletableFuture<class_9259<class_2818>> arg1, Executor arg2, class_3194 arg3)
increaseLevel(ServerChunkLoadingManager chunkLoadingManager, CompletableFuture<OptionalChunk<WorldChunk>> chunkFuture, Executor executor, ChunkLevelType target)
m_142998_(C_5429_ p_143000_, CompletableFuture<C_313292_<C_2137_>> p_143001_, Executor p_287621_, C_286921_ arg3)
private void
a(aqb arg0, aql arg1)
demoteFullChunk(ChunkMap arg0, FullChunkStatus arg1)
method_31408(class_3898 arg0, class_3194 arg1)
decreaseLevel(ServerChunkLoadingManager chunkLoadingManager, ChunkLevelType target)
m_287189_(C_5429_ p_287649_, C_286921_ arg1)
protected void
a(aqb arg0, Executor arg1)
updateFutures(ChunkMap arg0, Executor arg1)
method_14007(class_3898 arg0, Executor arg1)
updateFutures(ServerChunkLoadingManager chunkLoadingManager, Executor executor)
m_143003_(C_5429_ p_143005_, Executor arg1)
public boolean
k()
wasAccessibleSinceLastSave()
method_20384()
isAccessible()
m_140095_()
public void
l()
refreshAccessibility()
method_20385()
updateAccessibleStatus()
m_140096_()