Class ChunkHolder


  • public class ChunkHolder
    extends java.lang.Object
    • Field Detail

      • UNLOADED_CHUNK_FUTURE

        public static final java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,​ChunkHolder.IChunkLoadingError>> UNLOADED_CHUNK_FUTURE
      • UNLOADED_LEVEL_CHUNK_FUTURE

        private static final java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<Chunk,​ChunkHolder.IChunkLoadingError>> UNLOADED_LEVEL_CHUNK_FUTURE
      • CHUNK_STATUSES

        private static final java.util.List<ChunkStatus> CHUNK_STATUSES
      • futures

        private final java.util.concurrent.atomic.AtomicReferenceArray<java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,​ChunkHolder.IChunkLoadingError>>> futures
      • entityTickingChunkFuture

        private volatile java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<Chunk,​ChunkHolder.IChunkLoadingError>> entityTickingChunkFuture
      • chunkToSave

        private java.util.concurrent.CompletableFuture<IChunk> chunkToSave
      • 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

        private int blockChangedLightSectionFilter
      • skyChangedLightSectionFilter

        private int skyChangedLightSectionFilter
      • wasAccessibleSinceLastSave

        private boolean wasAccessibleSinceLastSave
      • resendLight

        private boolean resendLight
      • currentlyLoading

        Chunk currentlyLoading
    • Method Detail

      • getEntityTickingChunkFuture

        public java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<Chunk,​ChunkHolder.IChunkLoadingError>> getEntityTickingChunkFuture()
      • getTickingChunk

        @Nullable
        public Chunk getTickingChunk()
      • getLastAvailableStatus

        @Nullable
        public ChunkStatus getLastAvailableStatus()
      • getLastAvailable

        @Nullable
        public IChunk getLastAvailable()
      • getChunkToSave

        public java.util.concurrent.CompletableFuture<IChunk> getChunkToSave()
      • blockChanged

        public void blockChanged​(BlockPos p_244386_1_)
      • sectionLightChanged

        public void sectionLightChanged​(LightType p_219280_1_,
                                        int p_219280_2_)
      • broadcastChanges

        public void broadcastChanges​(Chunk p_219274_1_)
      • broadcastBlockEntityIfNeeded

        private void broadcastBlockEntityIfNeeded​(World p_244385_1_,
                                                  BlockPos p_244385_2_,
                                                  BlockState p_244385_3_)
      • broadcastBlockEntity

        private void broadcastBlockEntity​(World p_219305_1_,
                                          BlockPos p_219305_2_)
      • broadcast

        private void broadcast​(IPacket<?> p_219293_1_,
                               boolean p_219293_2_)
      • updateChunkToSave

        private void updateChunkToSave​(java.util.concurrent.CompletableFuture<? extends com.mojang.datafixers.util.Either<? extends IChunk,​ChunkHolder.IChunkLoadingError>> p_219284_1_)
      • getTicketLevel

        public int getTicketLevel()
      • getQueueLevel

        public int getQueueLevel()
      • setQueueLevel

        private void setQueueLevel​(int p_219275_1_)
      • setTicketLevel

        public void setTicketLevel​(int p_219292_1_)
      • updateFutures

        protected void updateFutures​(ChunkManager p_219291_1_)
      • getStatus

        public static ChunkStatus getStatus​(int p_219278_0_)
      • wasAccessibleSinceLastSave

        public boolean wasAccessibleSinceLastSave()
      • refreshAccessibility

        public void refreshAccessibility()