Package net.minecraft.server.level
Class ChunkHolder
java.lang.Object
net.minecraft.server.level.ChunkHolder
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interface(package private) static final classstatic interfacestatic interface
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final BitSetprivate final it.unimi.dsi.fastutil.shorts.ShortSet[]private static final List<ChunkStatus>private CompletableFuture<ChunkAccess>private final DebugBuffer<ChunkHolder.ChunkSaveDebug>(package private) LevelChunkprivate CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk,ChunkHolder.ChunkLoadingFailure>> private CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk,ChunkHolder.ChunkLoadingFailure>> private final AtomicReferenceArray<CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,ChunkHolder.ChunkLoadingFailure>>> private booleanprivate final LevelHeightAccessorprivate final LevelLightEngineprivate static final com.mojang.datafixers.util.Either<ChunkAccess,ChunkHolder.ChunkLoadingFailure> private intprivate final ChunkHolder.LevelChangeListenerprivate CompletableFuture<Void>private final ChunkHolder.PlayerProvider(package private) final ChunkPosprivate intprivate CompletableFuture<?>private final BitSetprivate intprivate CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk,ChunkHolder.ChunkLoadingFailure>> static final com.mojang.datafixers.util.Either<ChunkAccess,ChunkHolder.ChunkLoadingFailure> static final CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,ChunkHolder.ChunkLoadingFailure>> static final com.mojang.datafixers.util.Either<LevelChunk,ChunkHolder.ChunkLoadingFailure> private static final CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk,ChunkHolder.ChunkLoadingFailure>> private boolean
- 
Constructor SummaryConstructorsConstructorDescriptionChunkHolder(ChunkPos p_142986_, int p_142987_, LevelHeightAccessor p_142988_, LevelLightEngine p_142989_, ChunkHolder.LevelChangeListener p_142990_, ChunkHolder.PlayerProvider p_142991_) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddSaveDependency(String p_200417_, CompletableFuture<?> p_200418_) voidaddSendDependency(CompletableFuture<?> p_300440_) voidblockChanged(BlockPos p_140057_) private voidbroadcast(List<ServerPlayer> p_288998_, Packet<?> p_289013_) private voidbroadcastBlockEntity(List<ServerPlayer> p_288988_, Level p_289005_, BlockPos p_288981_) private voidbroadcastBlockEntityIfNeeded(List<ServerPlayer> p_288982_, Level p_289011_, BlockPos p_288969_, BlockState p_288973_) voidbroadcastChanges(LevelChunk p_140055_) private voiddemoteFullChunk(ChunkMap p_287599_, FullChunkStatus p_287649_) List<com.mojang.datafixers.util.Pair<ChunkStatus,CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder.ChunkLoadingFailure>>>> CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk,ChunkHolder.ChunkLoadingFailure>> CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk,ChunkHolder.ChunkLoadingFailure>> CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,ChunkHolder.ChunkLoadingFailure>> getFutureIfPresent(ChunkStatus p_140081_) CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,ChunkHolder.ChunkLoadingFailure>> getFutureIfPresentUnchecked(ChunkStatus p_140048_) CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,ChunkHolder.ChunkLoadingFailure>> getOrScheduleFuture(ChunkStatus p_140050_, ChunkMap p_140051_) getPos()intintCompletableFuture<com.mojang.datafixers.util.Either<LevelChunk,ChunkHolder.ChunkLoadingFailure>> voidvoidreplaceProtoChunk(ImposterProtoChunk p_140053_) private voidscheduleFullChunkPromotion(ChunkMap p_142999_, CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder.ChunkLoadingFailure>> p_143000_, Executor p_143001_, FullChunkStatus p_287621_) voidsectionLightChanged(LightLayer p_140037_, int p_140038_) private voidsetQueueLevel(int p_140087_) voidsetTicketLevel(int p_140028_) private voidupdateChunkToSave(CompletableFuture<? extends com.mojang.datafixers.util.Either<? extends ChunkAccess, ChunkHolder.ChunkLoadingFailure>> p_143018_, String p_143019_) protected voidupdateFutures(ChunkMap p_143004_, Executor p_143005_) boolean
- 
Field Details- 
UNLOADED_CHUNKpublic static final com.mojang.datafixers.util.Either<ChunkAccess,ChunkHolder.ChunkLoadingFailure> UNLOADED_CHUNK
- 
UNLOADED_CHUNK_FUTUREpublic static final CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,ChunkHolder.ChunkLoadingFailure>> UNLOADED_CHUNK_FUTURE
- 
UNLOADED_LEVEL_CHUNKpublic static final com.mojang.datafixers.util.Either<LevelChunk,ChunkHolder.ChunkLoadingFailure> UNLOADED_LEVEL_CHUNK
- 
NOT_DONE_YETprivate static final com.mojang.datafixers.util.Either<ChunkAccess,ChunkHolder.ChunkLoadingFailure> NOT_DONE_YET
- 
UNLOADED_LEVEL_CHUNK_FUTUREprivate static final CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk,ChunkHolder.ChunkLoadingFailure>> UNLOADED_LEVEL_CHUNK_FUTURE
- 
CHUNK_STATUSES
- 
futuresprivate final AtomicReferenceArray<CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,ChunkHolder.ChunkLoadingFailure>>> futures
- 
levelHeightAccessor
- 
fullChunkFutureprivate volatile CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk,ChunkHolder.ChunkLoadingFailure>> fullChunkFuture
- 
tickingChunkFutureprivate volatile CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk,ChunkHolder.ChunkLoadingFailure>> tickingChunkFuture
- 
entityTickingChunkFutureprivate volatile CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk,ChunkHolder.ChunkLoadingFailure>> entityTickingChunkFuture
- 
chunkToSave
- 
chunkToSaveHistory
- 
oldTicketLevelprivate int oldTicketLevel
- 
ticketLevelprivate int ticketLevel
- 
queueLevelprivate int queueLevel
- 
pos
- 
hasChangedSectionsprivate boolean hasChangedSections
- 
changedBlocksPerSectionprivate final it.unimi.dsi.fastutil.shorts.ShortSet[] changedBlocksPerSection
- 
blockChangedLightSectionFilter
- 
skyChangedLightSectionFilter
- 
lightEngine
- 
onLevelChange
- 
playerProvider
- 
wasAccessibleSinceLastSaveprivate boolean wasAccessibleSinceLastSave
- 
currentlyLoadingLevelChunk currentlyLoading
- 
pendingFullStateConfirmation
- 
sendSync
 
- 
- 
Constructor Details- 
ChunkHolderpublic ChunkHolder(ChunkPos p_142986_, int p_142987_, LevelHeightAccessor p_142988_, LevelLightEngine p_142989_, ChunkHolder.LevelChangeListener p_142990_, ChunkHolder.PlayerProvider p_142991_) 
 
- 
- 
Method Details- 
getFutureIfPresentUncheckedpublic CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,ChunkHolder.ChunkLoadingFailure>> getFutureIfPresentUnchecked(ChunkStatus p_140048_) 
- 
getFutureIfPresentpublic CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,ChunkHolder.ChunkLoadingFailure>> getFutureIfPresent(ChunkStatus p_140081_) 
- 
getTickingChunkFuturepublic CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk,ChunkHolder.ChunkLoadingFailure>> getTickingChunkFuture()
- 
getEntityTickingChunkFuturepublic CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk,ChunkHolder.ChunkLoadingFailure>> getEntityTickingChunkFuture()
- 
getFullChunkFuturepublic CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk,ChunkHolder.ChunkLoadingFailure>> getFullChunkFuture()
- 
getTickingChunk
- 
getChunkSendSyncFuture
- 
getChunkToSend
- 
getFullChunk
- 
getLastAvailableStatus
- 
getLastAvailable
- 
getChunkToSave
- 
blockChanged
- 
sectionLightChanged
- 
broadcastChanges
- 
broadcastBlockEntityIfNeededprivate void broadcastBlockEntityIfNeeded(List<ServerPlayer> p_288982_, Level p_289011_, BlockPos p_288969_, BlockState p_288973_) 
- 
broadcastBlockEntityprivate void broadcastBlockEntity(List<ServerPlayer> p_288988_, Level p_289005_, BlockPos p_288981_) 
- 
broadcast
- 
getOrScheduleFuturepublic CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,ChunkHolder.ChunkLoadingFailure>> getOrScheduleFuture(ChunkStatus p_140050_, ChunkMap p_140051_) 
- 
addSaveDependency
- 
updateChunkToSaveprivate void updateChunkToSave(CompletableFuture<? extends com.mojang.datafixers.util.Either<? extends ChunkAccess, ChunkHolder.ChunkLoadingFailure>> p_143018_, String p_143019_) 
- 
addSendDependency
- 
getFullStatus
- 
getPos
- 
getTicketLevelpublic int getTicketLevel()
- 
getQueueLevelpublic int getQueueLevel()
- 
setQueueLevelprivate void setQueueLevel(int p_140087_) 
- 
setTicketLevelpublic void setTicketLevel(int p_140028_) 
- 
scheduleFullChunkPromotionprivate void scheduleFullChunkPromotion(ChunkMap p_142999_, CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder.ChunkLoadingFailure>> p_143000_, Executor p_143001_, FullChunkStatus p_287621_) 
- 
demoteFullChunk
- 
updateFutures
- 
wasAccessibleSinceLastSavepublic boolean wasAccessibleSinceLastSave()
- 
refreshAccessibilitypublic void refreshAccessibility()
- 
replaceProtoChunk
- 
getAllFuturespublic List<com.mojang.datafixers.util.Pair<ChunkStatus,CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, getAllFutures()ChunkHolder.ChunkLoadingFailure>>>> 
 
-