Package net.minecraft.server.level
Class ChunkHolder
java.lang.Object
net.minecraft.server.level.GenerationChunkHolder
net.minecraft.server.level.ChunkHolder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BitSetprivate final it.unimi.dsi.fastutil.shorts.ShortSet[]private CompletableFuture<ChunkResult<LevelChunk>> private CompletableFuture<ChunkResult<LevelChunk>> private booleanprivate final LevelHeightAccessorprivate final LevelLightEngineprivate intprivate final ChunkHolder.LevelChangeListenerprivate CompletableFuture<?> private final ChunkHolder.PlayerProviderprivate intprivate CompletableFuture<?> private CompletableFuture<?> private final BitSetprivate intprivate CompletableFuture<ChunkResult<LevelChunk>> static final ChunkResult<LevelChunk> private static final CompletableFuture<ChunkResult<LevelChunk>> private booleanFields inherited from class net.minecraft.server.level.GenerationChunkHolder
currentlyLoading, pos, UNLOADED_CHUNK, UNLOADED_CHUNK_FUTURE -
Constructor Summary
ConstructorsConstructorDescriptionChunkHolder(ChunkPos p_142986_, int p_142987_, LevelHeightAccessor p_142988_, LevelLightEngine p_142989_, ChunkHolder.LevelChangeListener p_142990_, ChunkHolder.PlayerProvider p_142991_) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddSaveDependency(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_) intintbooleanvoidprivate voidscheduleFullChunkPromotion(ChunkMap p_142999_, CompletableFuture<ChunkResult<LevelChunk>> p_143000_, Executor p_143001_, FullChunkStatus p_287621_) voidsectionLightChanged(LightLayer p_140037_, int p_140038_) private voidsetQueueLevel(int p_140087_) voidsetTicketLevel(int p_140028_) protected voidupdateFutures(ChunkMap p_143004_, Executor p_143005_) booleanMethods inherited from class net.minecraft.server.level.GenerationChunkHolder
applyStep, decreaseGenerationRefCount, getAllFutures, getChunkIfPresent, getChunkIfPresentUnchecked, getFullStatus, getGenerationRefCount, getLatestChunk, getLatestStatus, getPersistedStatus, getPos, increaseGenerationRefCount, removeTask, replaceProtoChunk, scheduleChunkGenerationTask, updateHighestAllowedStatus
-
Field Details
-
UNLOADED_LEVEL_CHUNK
-
UNLOADED_LEVEL_CHUNK_FUTURE
-
levelHeightAccessor
-
fullChunkFuture
-
tickingChunkFuture
-
entityTickingChunkFuture
-
oldTicketLevel
private int oldTicketLevel -
ticketLevel
private int ticketLevel -
queueLevel
private int queueLevel -
hasChangedSections
private boolean hasChangedSections -
changedBlocksPerSection
private final it.unimi.dsi.fastutil.shorts.ShortSet[] changedBlocksPerSection -
blockChangedLightSectionFilter
-
skyChangedLightSectionFilter
-
lightEngine
-
onLevelChange
-
playerProvider
-
wasAccessibleSinceLastSave
private boolean wasAccessibleSinceLastSave -
pendingFullStateConfirmation
-
sendSync
-
saveSync
-
-
Constructor Details
-
ChunkHolder
public ChunkHolder(ChunkPos p_142986_, int p_142987_, LevelHeightAccessor p_142988_, LevelLightEngine p_142989_, ChunkHolder.LevelChangeListener p_142990_, ChunkHolder.PlayerProvider p_142991_)
-
-
Method Details
-
getTickingChunkFuture
-
getEntityTickingChunkFuture
-
getFullChunkFuture
-
getTickingChunk
-
getChunkToSend
-
getSendSyncFuture
-
addSendDependency
-
getSaveSyncFuture
-
isReadyForSaving
public boolean isReadyForSaving() -
addSaveDependency
-
blockChanged
-
sectionLightChanged
-
broadcastChanges
-
broadcastBlockEntityIfNeeded
private void broadcastBlockEntityIfNeeded(List<ServerPlayer> p_288982_, Level p_289011_, BlockPos p_288969_, BlockState p_288973_) -
broadcastBlockEntity
private void broadcastBlockEntity(List<ServerPlayer> p_288988_, Level p_289005_, BlockPos p_288981_) -
broadcast
-
getTicketLevel
public int getTicketLevel()- Specified by:
getTicketLevelin classGenerationChunkHolder
-
getQueueLevel
public int getQueueLevel()- Specified by:
getQueueLevelin classGenerationChunkHolder
-
setQueueLevel
private void setQueueLevel(int p_140087_) -
setTicketLevel
public void setTicketLevel(int p_140028_) -
scheduleFullChunkPromotion
private void scheduleFullChunkPromotion(ChunkMap p_142999_, CompletableFuture<ChunkResult<LevelChunk>> p_143000_, Executor p_143001_, FullChunkStatus p_287621_) -
demoteFullChunk
-
updateFutures
-
wasAccessibleSinceLastSave
public boolean wasAccessibleSinceLastSave() -
refreshAccessibility
public void refreshAccessibility()
-