Package net.minecraft.server.level
Class ChunkHolder
java.lang.Object
net.minecraft.server.level.GenerationChunkHolder
net.minecraft.server.level.ChunkHolder
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BitSet
private final it.unimi.dsi.fastutil.shorts.ShortSet[]
private CompletableFuture
<ChunkResult<LevelChunk>> private CompletableFuture
<ChunkResult<LevelChunk>> private boolean
private final LevelHeightAccessor
private final LevelLightEngine
private int
private final ChunkHolder.LevelChangeListener
private CompletableFuture
<?> private final ChunkHolder.PlayerProvider
private int
private CompletableFuture
<?> private CompletableFuture
<?> private final BitSet
private int
private CompletableFuture
<ChunkResult<LevelChunk>> static final ChunkResult
<LevelChunk> private static final CompletableFuture
<ChunkResult<LevelChunk>> private boolean
Fields inherited from class net.minecraft.server.level.GenerationChunkHolder
currentlyLoading, pos, UNLOADED_CHUNK, UNLOADED_CHUNK_FUTURE
-
Constructor Summary
ConstructorDescriptionChunkHolder
(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 void
addSaveDependency
(CompletableFuture<?> p_200418_) void
addSendDependency
(CompletableFuture<?> p_301235_) void
blockChanged
(BlockPos p_140057_) private void
broadcast
(List<ServerPlayer> p_288998_, Packet<?> p_289013_) private void
broadcastBlockEntity
(List<ServerPlayer> p_288988_, Level p_289005_, BlockPos p_288981_) private void
broadcastBlockEntityIfNeeded
(List<ServerPlayer> p_288982_, Level p_289011_, BlockPos p_288969_, BlockState p_288973_) void
broadcastChanges
(LevelChunk p_140055_) private void
demoteFullChunk
(ChunkMap p_287599_, FullChunkStatus p_287649_) int
int
boolean
void
private void
scheduleFullChunkPromotion
(ChunkMap p_142999_, CompletableFuture<ChunkResult<LevelChunk>> p_143000_, Executor p_143001_, FullChunkStatus p_287621_) void
sectionLightChanged
(LightLayer p_140037_, int p_140038_) private void
setQueueLevel
(int p_140087_) void
setTicketLevel
(int p_140028_) protected void
updateFutures
(ChunkMap p_143004_, Executor p_143005_) boolean
Methods 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:
getTicketLevel
in classGenerationChunkHolder
-
getQueueLevel
public int getQueueLevel()- Specified by:
getQueueLevel
in 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()
-