类 ChunkHolder
java.lang.Object
net.minecraft.server.level.ChunkHolder
-
嵌套类概要
嵌套类修饰符和类型类说明static interface
(专用程序包) static final class
static interface
static interface
-
字段概要
字段修饰符和类型字段说明private final BitSet
private final it.unimi.dsi.fastutil.shorts.ShortSet[]
private static final List<ChunkStatus>
private CompletableFuture<ChunkAccess>
private final DebugBuffer<ChunkHolder.ChunkSaveDebug>
(专用程序包) LevelChunk
private 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 boolean
private final LevelHeightAccessor
private final LevelLightEngine
private static final com.mojang.datafixers.util.Either<ChunkAccess,
ChunkHolder.ChunkLoadingFailure> private int
private final ChunkHolder.LevelChangeListener
private CompletableFuture<Void>
private final ChunkHolder.PlayerProvider
(专用程序包) final ChunkPos
private int
private final BitSet
private int
private 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
-
构造器概要
构造器构造器说明ChunkHolder
(ChunkPos pPos, int pTicketLevel, LevelHeightAccessor pLevelHeightAccessor, LevelLightEngine pLightEngine, ChunkHolder.LevelChangeListener pOnLevelChange, ChunkHolder.PlayerProvider pPlayerProvider) -
方法概要
修饰符和类型方法说明protected void
addSaveDependency
(String pSource, CompletableFuture<?> pFuture) void
blockChanged
(BlockPos pPos) private void
broadcast
(List<ServerPlayer> pPlayers, Packet<?> pPacket) private void
broadcastBlockEntity
(List<ServerPlayer> pPlayers, Level pLevel, BlockPos pPox) private void
broadcastBlockEntityIfNeeded
(List<ServerPlayer> pPlayers, Level pLevel, BlockPos pPos, BlockState pState) void
broadcastChanges
(LevelChunk pChunk) private void
demoteFullChunk
(ChunkMap pChunkMap, FullChunkStatus pFullChunkStatus) 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 pChunkStatus) CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,
ChunkHolder.ChunkLoadingFailure>> getFutureIfPresentUnchecked
(ChunkStatus pChunkStatus) CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,
ChunkHolder.ChunkLoadingFailure>> getOrScheduleFuture
(ChunkStatus pStatus, ChunkMap pMap) getPos()
int
int
CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk,
ChunkHolder.ChunkLoadingFailure>> void
void
replaceProtoChunk
(ImposterProtoChunk pImposter) private void
scheduleFullChunkPromotion
(ChunkMap pChunkMap, CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder.ChunkLoadingFailure>> pFuture, Executor pExecutor, FullChunkStatus pFullChunkStatus) void
sectionLightChanged
(LightLayer pType, int pSectionY) private void
setQueueLevel
(int p_140087_) void
setTicketLevel
(int pLevel) private void
updateChunkToSave
(CompletableFuture<? extends com.mojang.datafixers.util.Either<? extends ChunkAccess, ChunkHolder.ChunkLoadingFailure>> pFeature, String pSource) protected void
updateFutures
(ChunkMap pChunkMap, Executor pExecutor) boolean
-
字段详细资料
-
UNLOADED_CHUNK
public static final com.mojang.datafixers.util.Either<ChunkAccess,ChunkHolder.ChunkLoadingFailure> UNLOADED_CHUNK -
UNLOADED_CHUNK_FUTURE
public static final CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,ChunkHolder.ChunkLoadingFailure>> UNLOADED_CHUNK_FUTURE -
UNLOADED_LEVEL_CHUNK
public static final com.mojang.datafixers.util.Either<LevelChunk,ChunkHolder.ChunkLoadingFailure> UNLOADED_LEVEL_CHUNK -
NOT_DONE_YET
private static final com.mojang.datafixers.util.Either<ChunkAccess,ChunkHolder.ChunkLoadingFailure> NOT_DONE_YET -
UNLOADED_LEVEL_CHUNK_FUTURE
private static final CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk,ChunkHolder.ChunkLoadingFailure>> UNLOADED_LEVEL_CHUNK_FUTURE -
CHUNK_STATUSES
-
futures
private final AtomicReferenceArray<CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,ChunkHolder.ChunkLoadingFailure>>> futures -
levelHeightAccessor
-
fullChunkFuture
private volatile CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk,ChunkHolder.ChunkLoadingFailure>> fullChunkFuture -
tickingChunkFuture
private volatile CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk,ChunkHolder.ChunkLoadingFailure>> tickingChunkFuture -
entityTickingChunkFuture
private volatile CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk,ChunkHolder.ChunkLoadingFailure>> entityTickingChunkFuture -
chunkToSave
-
chunkToSaveHistory
-
oldTicketLevel
private int oldTicketLevel -
ticketLevel
private int ticketLevel -
queueLevel
private int queueLevel -
pos
-
hasChangedSections
private boolean hasChangedSections -
changedBlocksPerSection
private final it.unimi.dsi.fastutil.shorts.ShortSet[] changedBlocksPerSection -
blockChangedLightSectionFilter
-
skyChangedLightSectionFilter
-
lightEngine
-
onLevelChange
-
playerProvider
-
wasAccessibleSinceLastSave
private boolean wasAccessibleSinceLastSave -
currentlyLoading
LevelChunk currentlyLoading -
pendingFullStateConfirmation
-
-
构造器详细资料
-
ChunkHolder
public ChunkHolder(ChunkPos pPos, int pTicketLevel, LevelHeightAccessor pLevelHeightAccessor, LevelLightEngine pLightEngine, ChunkHolder.LevelChangeListener pOnLevelChange, ChunkHolder.PlayerProvider pPlayerProvider)
-
-
方法详细资料
-
getFutureIfPresentUnchecked
public CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,ChunkHolder.ChunkLoadingFailure>> getFutureIfPresentUnchecked(ChunkStatus pChunkStatus) -
getFutureIfPresent
public CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,ChunkHolder.ChunkLoadingFailure>> getFutureIfPresent(ChunkStatus pChunkStatus) -
getTickingChunkFuture
public CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk,ChunkHolder.ChunkLoadingFailure>> getTickingChunkFuture() -
getEntityTickingChunkFuture
public CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk,ChunkHolder.ChunkLoadingFailure>> getEntityTickingChunkFuture() -
getFullChunkFuture
public CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk,ChunkHolder.ChunkLoadingFailure>> getFullChunkFuture() -
getTickingChunk
-
getFullChunk
-
getLastAvailableStatus
-
getLastAvailable
-
getChunkToSave
-
blockChanged
-
sectionLightChanged
-
broadcastChanges
-
broadcastBlockEntityIfNeeded
private void broadcastBlockEntityIfNeeded(List<ServerPlayer> pPlayers, Level pLevel, BlockPos pPos, BlockState pState) -
broadcastBlockEntity
-
broadcast
-
getOrScheduleFuture
public CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,ChunkHolder.ChunkLoadingFailure>> getOrScheduleFuture(ChunkStatus pStatus, ChunkMap pMap) -
addSaveDependency
-
updateChunkToSave
private void updateChunkToSave(CompletableFuture<? extends com.mojang.datafixers.util.Either<? extends ChunkAccess, ChunkHolder.ChunkLoadingFailure>> pFeature, String pSource) -
getFullStatus
-
getPos
-
getTicketLevel
public int getTicketLevel() -
getQueueLevel
public int getQueueLevel() -
setQueueLevel
private void setQueueLevel(int p_140087_) -
setTicketLevel
public void setTicketLevel(int pLevel) -
scheduleFullChunkPromotion
private void scheduleFullChunkPromotion(ChunkMap pChunkMap, CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder.ChunkLoadingFailure>> pFuture, Executor pExecutor, FullChunkStatus pFullChunkStatus) -
demoteFullChunk
-
updateFutures
-
wasAccessibleSinceLastSave
public boolean wasAccessibleSinceLastSave() -
refreshAccessibility
public void refreshAccessibility() -
replaceProtoChunk
-
getAllFutures
public List<com.mojang.datafixers.util.Pair<ChunkStatus,CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, getAllFutures()ChunkHolder.ChunkLoadingFailure>>>>
-