Class AbstractChunkHolder

java.lang.Object
net.minecraft.world.chunk.AbstractChunkHolder
Direct Known Subclasses:
ChunkHolder

public abstract class AbstractChunkHolder extends Object
Mappings:
Namespace Name
named net/minecraft/world/chunk/AbstractChunkHolder
intermediary net/minecraft/class_9761
official aqn
  • Field Details

    • STATUSES

      private static final List<ChunkStatus> STATUSES
      Mappings:
      Namespace Name Mixin selector
      named STATUSES Lnet/minecraft/world/chunk/AbstractChunkHolder;STATUSES:Ljava/util/List;
      intermediary field_51865 Lnet/minecraft/class_9761;field_51865:Ljava/util/List;
      official a Laqn;a:Ljava/util/List;
    • NOT_DONE

      private static final OptionalChunk<Chunk> NOT_DONE
      Mappings:
      Namespace Name Mixin selector
      named NOT_DONE Lnet/minecraft/world/chunk/AbstractChunkHolder;NOT_DONE:Lnet/minecraft/server/world/OptionalChunk;
      intermediary field_51869 Lnet/minecraft/class_9761;field_51869:Lnet/minecraft/class_9259;
      official e Laqn;e:Laqc;
    • UNLOADED

      public static final OptionalChunk<Chunk> UNLOADED
      Mappings:
      Namespace Name Mixin selector
      named UNLOADED Lnet/minecraft/world/chunk/AbstractChunkHolder;UNLOADED:Lnet/minecraft/server/world/OptionalChunk;
      intermediary field_51866 Lnet/minecraft/class_9761;field_51866:Lnet/minecraft/class_9259;
      official b Laqn;b:Laqc;
    • UNLOADED_FUTURE

      public static final CompletableFuture<OptionalChunk<Chunk>> UNLOADED_FUTURE
      Mappings:
      Namespace Name Mixin selector
      named UNLOADED_FUTURE Lnet/minecraft/world/chunk/AbstractChunkHolder;UNLOADED_FUTURE:Ljava/util/concurrent/CompletableFuture;
      intermediary field_51867 Lnet/minecraft/class_9761;field_51867:Ljava/util/concurrent/CompletableFuture;
      official c Laqn;c:Ljava/util/concurrent/CompletableFuture;
    • pos

      protected final ChunkPos pos
      Mappings:
      Namespace Name Mixin selector
      named pos Lnet/minecraft/world/chunk/AbstractChunkHolder;pos:Lnet/minecraft/util/math/ChunkPos;
      intermediary field_51868 Lnet/minecraft/class_9761;field_51868:Lnet/minecraft/class_1923;
      official d Laqn;d:Ldcd;
    • status

      @Nullable private volatile @Nullable ChunkStatus status
      Mappings:
      Namespace Name Mixin selector
      named status Lnet/minecraft/world/chunk/AbstractChunkHolder;status:Lnet/minecraft/world/chunk/ChunkStatus;
      intermediary field_51870 Lnet/minecraft/class_9761;field_51870:Lnet/minecraft/class_2806;
      official f Laqn;f:Ldvz;
    • currentStatus

      private final AtomicReference<ChunkStatus> currentStatus
      Mappings:
      Namespace Name Mixin selector
      named currentStatus Lnet/minecraft/world/chunk/AbstractChunkHolder;currentStatus:Ljava/util/concurrent/atomic/AtomicReference;
      intermediary field_51871 Lnet/minecraft/class_9761;field_51871:Ljava/util/concurrent/atomic/AtomicReference;
      official g Laqn;g:Ljava/util/concurrent/atomic/AtomicReference;
    • chunkFuturesByStatus

      private final AtomicReferenceArray<CompletableFuture<OptionalChunk<Chunk>>> chunkFuturesByStatus
      Mappings:
      Namespace Name Mixin selector
      named chunkFuturesByStatus Lnet/minecraft/world/chunk/AbstractChunkHolder;chunkFuturesByStatus:Ljava/util/concurrent/atomic/AtomicReferenceArray;
      intermediary field_51872 Lnet/minecraft/class_9761;field_51872:Ljava/util/concurrent/atomic/AtomicReferenceArray;
      official h Laqn;h:Ljava/util/concurrent/atomic/AtomicReferenceArray;
    • chunkLoader

      private final AtomicReference<ChunkLoader> chunkLoader
      Mappings:
      Namespace Name Mixin selector
      named chunkLoader Lnet/minecraft/world/chunk/AbstractChunkHolder;chunkLoader:Ljava/util/concurrent/atomic/AtomicReference;
      intermediary field_51873 Lnet/minecraft/class_9761;field_51873:Ljava/util/concurrent/atomic/AtomicReference;
      official i Laqn;i:Ljava/util/concurrent/atomic/AtomicReference;
    • refCount

      private final AtomicInteger refCount
      Mappings:
      Namespace Name Mixin selector
      named refCount Lnet/minecraft/world/chunk/AbstractChunkHolder;refCount:Ljava/util/concurrent/atomic/AtomicInteger;
      intermediary field_51874 Lnet/minecraft/class_9761;field_51874:Ljava/util/concurrent/atomic/AtomicInteger;
      official j Laqn;j:Ljava/util/concurrent/atomic/AtomicInteger;
  • Constructor Details

    • AbstractChunkHolder

      public AbstractChunkHolder(ChunkPos pos)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/chunk/AbstractChunkHolder;<init>(Lnet/minecraft/util/math/ChunkPos;)V
      intermediary <init> Lnet/minecraft/class_9761;<init>(Lnet/minecraft/class_1923;)V
      official <init> Laqn;<init>(Ldcd;)V
  • Method Details

    • load

      public CompletableFuture<OptionalChunk<Chunk>> load(ChunkStatus requestedStatus, ServerChunkLoadingManager chunkLoadingManager)
      Mappings:
      Namespace Name Mixin selector
      named load Lnet/minecraft/world/chunk/AbstractChunkHolder;load(Lnet/minecraft/world/chunk/ChunkStatus;Lnet/minecraft/server/world/ServerChunkLoadingManager;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_60458 Lnet/minecraft/class_9761;method_60458(Lnet/minecraft/class_2806;Lnet/minecraft/class_3898;)Ljava/util/concurrent/CompletableFuture;
      official a Laqn;a(Ldvz;Laqb;)Ljava/util/concurrent/CompletableFuture;
    • generate

      Mappings:
      Namespace Name Mixin selector
      named generate Lnet/minecraft/world/chunk/AbstractChunkHolder;generate(Lnet/minecraft/world/chunk/ChunkGenerationStep;Lnet/minecraft/world/ChunkLoadingManager;Lnet/minecraft/util/collection/BoundedRegionArray;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_60461 Lnet/minecraft/class_9761;method_60461(Lnet/minecraft/class_9770;Lnet/minecraft/class_9760;Lnet/minecraft/class_9762;)Ljava/util/concurrent/CompletableFuture;
      official a Laqn;a(Ldwc;Laqm;Lazi;)Ljava/util/concurrent/CompletableFuture;
    • updateStatus

      protected void updateStatus(ServerChunkLoadingManager chunkLoadingManager)
      Mappings:
      Namespace Name Mixin selector
      named updateStatus Lnet/minecraft/world/chunk/AbstractChunkHolder;updateStatus(Lnet/minecraft/server/world/ServerChunkLoadingManager;)V
      intermediary method_60454 Lnet/minecraft/class_9761;method_60454(Lnet/minecraft/class_3898;)V
      official a Laqn;a(Laqb;)V
    • replaceWith

      public void replaceWith(WrapperProtoChunk chunk)
      Mappings:
      Namespace Name Mixin selector
      named replaceWith Lnet/minecraft/world/chunk/AbstractChunkHolder;replaceWith(Lnet/minecraft/world/chunk/WrapperProtoChunk;)V
      intermediary method_60456 Lnet/minecraft/class_9761;method_60456(Lnet/minecraft/class_2821;)V
      official a Laqn;a(Ldvh;)V
    • clearLoader

      void clearLoader(ChunkLoader loader)
      Mappings:
      Namespace Name Mixin selector
      named clearLoader Lnet/minecraft/world/chunk/AbstractChunkHolder;clearLoader(Lnet/minecraft/world/chunk/ChunkLoader;)V
      intermediary method_60453 Lnet/minecraft/class_9761;method_60453(Lnet/minecraft/class_9759;)V
      official a Laqn;a(Lapy;)V
    • createLoader

      private void createLoader(ServerChunkLoadingManager chunkLoadingManager, @Nullable @Nullable ChunkStatus requestedStatus)
      Mappings:
      Namespace Name Mixin selector
      named createLoader Lnet/minecraft/world/chunk/AbstractChunkHolder;createLoader(Lnet/minecraft/server/world/ServerChunkLoadingManager;Lnet/minecraft/world/chunk/ChunkStatus;)V
      intermediary method_60455 Lnet/minecraft/class_9761;method_60455(Lnet/minecraft/class_3898;Lnet/minecraft/class_2806;)V
      official a Laqn;a(Laqb;Ldvz;)V
    • getOrCreateFuture

      private CompletableFuture<OptionalChunk<Chunk>> getOrCreateFuture(ChunkStatus status)
      Mappings:
      Namespace Name Mixin selector
      named getOrCreateFuture Lnet/minecraft/world/chunk/AbstractChunkHolder;getOrCreateFuture(Lnet/minecraft/world/chunk/ChunkStatus;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_60464 Lnet/minecraft/class_9761;method_60464(Lnet/minecraft/class_2806;)Ljava/util/concurrent/CompletableFuture;
      official c Laqn;c(Ldvz;)Ljava/util/concurrent/CompletableFuture;
    • unload

      private void unload(@Nullable @Nullable ChunkStatus from, ChunkStatus to)
      Mappings:
      Namespace Name Mixin selector
      named unload Lnet/minecraft/world/chunk/AbstractChunkHolder;unload(Lnet/minecraft/world/chunk/ChunkStatus;Lnet/minecraft/world/chunk/ChunkStatus;)V
      intermediary method_60460 Lnet/minecraft/class_9761;method_60460(Lnet/minecraft/class_2806;Lnet/minecraft/class_2806;)V
      official a Laqn;a(Ldvz;Ldvz;)V
    • unload

      private void unload(int statusIndex, CompletableFuture<OptionalChunk<Chunk>> previousFuture)
      Mappings:
      Namespace Name Mixin selector
      named unload Lnet/minecraft/world/chunk/AbstractChunkHolder;unload(ILjava/util/concurrent/CompletableFuture;)V
      intermediary method_60452 Lnet/minecraft/class_9761;method_60452(ILjava/util/concurrent/CompletableFuture;)V
      official a Laqn;a(ILjava/util/concurrent/CompletableFuture;)V
    • completeChunkFuture

      private void completeChunkFuture(ChunkStatus status, Chunk chunk)
      Mappings:
      Namespace Name Mixin selector
      named completeChunkFuture Lnet/minecraft/world/chunk/AbstractChunkHolder;completeChunkFuture(Lnet/minecraft/world/chunk/ChunkStatus;Lnet/minecraft/world/chunk/Chunk;)V
      intermediary method_60459 Lnet/minecraft/class_9761;method_60459(Lnet/minecraft/class_2806;Lnet/minecraft/class_2791;)V
      official a Laqn;a(Ldvz;Lduy;)V
    • getMaxPendingStatus

      @Nullable private @Nullable ChunkStatus getMaxPendingStatus(@Nullable @Nullable ChunkStatus checkUpperBound)
      Mappings:
      Namespace Name Mixin selector
      named getMaxPendingStatus Lnet/minecraft/world/chunk/AbstractChunkHolder;getMaxPendingStatus(Lnet/minecraft/world/chunk/ChunkStatus;)Lnet/minecraft/world/chunk/ChunkStatus;
      intermediary method_60465 Lnet/minecraft/class_9761;method_60465(Lnet/minecraft/class_2806;)Lnet/minecraft/class_2806;
      official d Laqn;d(Ldvz;)Ldvz;
    • progressStatus

      private boolean progressStatus(ChunkStatus nextStatus)
      Progresses to nextStatus if that is actually the next status for the current status. Does nothing if nextStatus is the same as the current status (or earlier).
      Returns:
      whether the progress was made
      Throws:
      IllegalStateException - when skipping intermediate statuses between the current and nextStatus
      Mappings:
      Namespace Name Mixin selector
      named progressStatus Lnet/minecraft/world/chunk/AbstractChunkHolder;progressStatus(Lnet/minecraft/world/chunk/ChunkStatus;)Z
      intermediary method_60466 Lnet/minecraft/class_9761;method_60466(Lnet/minecraft/class_2806;)Z
      official e Laqn;e(Ldvz;)Z
    • cannotBeLoaded

      private boolean cannotBeLoaded(ChunkStatus status)
      Mappings:
      Namespace Name Mixin selector
      named cannotBeLoaded Lnet/minecraft/world/chunk/AbstractChunkHolder;cannotBeLoaded(Lnet/minecraft/world/chunk/ChunkStatus;)Z
      intermediary method_60467 Lnet/minecraft/class_9761;method_60467(Lnet/minecraft/class_2806;)Z
      official f Laqn;f(Ldvz;)Z
    • incrementRefCount

      public void incrementRefCount()
      Mappings:
      Namespace Name Mixin selector
      named incrementRefCount Lnet/minecraft/world/chunk/AbstractChunkHolder;incrementRefCount()V
      intermediary method_60468 Lnet/minecraft/class_9761;method_60468()V
      official m Laqn;m()V
    • decrementRefCount

      public void decrementRefCount()
      Mappings:
      Namespace Name Mixin selector
      named decrementRefCount Lnet/minecraft/world/chunk/AbstractChunkHolder;decrementRefCount()V
      intermediary method_60469 Lnet/minecraft/class_9761;method_60469()V
      official n Laqn;n()V
    • getRefCount

      public int getRefCount()
      Mappings:
      Namespace Name Mixin selector
      named getRefCount Lnet/minecraft/world/chunk/AbstractChunkHolder;getRefCount()I
      intermediary method_60470 Lnet/minecraft/class_9761;method_60470()I
      official o Laqn;o()I
    • getUncheckedOrNull

      @Nullable public @Nullable Chunk getUncheckedOrNull(ChunkStatus requestedStatus)
      Mappings:
      Namespace Name Mixin selector
      named getUncheckedOrNull Lnet/minecraft/world/chunk/AbstractChunkHolder;getUncheckedOrNull(Lnet/minecraft/world/chunk/ChunkStatus;)Lnet/minecraft/world/chunk/Chunk;
      intermediary method_60457 Lnet/minecraft/class_9761;method_60457(Lnet/minecraft/class_2806;)Lnet/minecraft/class_2791;
      official a Laqn;a(Ldvz;)Lduy;
    • getOrNull

      @Nullable public @Nullable Chunk getOrNull(ChunkStatus requestedStatus)
      Mappings:
      Namespace Name Mixin selector
      named getOrNull Lnet/minecraft/world/chunk/AbstractChunkHolder;getOrNull(Lnet/minecraft/world/chunk/ChunkStatus;)Lnet/minecraft/world/chunk/Chunk;
      intermediary method_60463 Lnet/minecraft/class_9761;method_60463(Lnet/minecraft/class_2806;)Lnet/minecraft/class_2791;
      official b Laqn;b(Ldvz;)Lduy;
    • getLatest

      @Nullable public @Nullable Chunk getLatest()
      Mappings:
      Namespace Name Mixin selector
      named getLatest Lnet/minecraft/world/chunk/AbstractChunkHolder;getLatest()Lnet/minecraft/world/chunk/Chunk;
      intermediary method_60471 Lnet/minecraft/class_9761;method_60471()Lnet/minecraft/class_2791;
      official p Laqn;p()Lduy;
    • getActualStatus

      @Nullable public @Nullable ChunkStatus getActualStatus()
      Mappings:
      Namespace Name Mixin selector
      named getActualStatus Lnet/minecraft/world/chunk/AbstractChunkHolder;getActualStatus()Lnet/minecraft/world/chunk/ChunkStatus;
      intermediary method_60472 Lnet/minecraft/class_9761;method_60472()Lnet/minecraft/class_2806;
      official q Laqn;q()Ldvz;
    • getPos

      public ChunkPos getPos()
      Mappings:
      Namespace Name Mixin selector
      named getPos Lnet/minecraft/world/chunk/AbstractChunkHolder;getPos()Lnet/minecraft/util/math/ChunkPos;
      intermediary method_60473 Lnet/minecraft/class_9761;method_60473()Lnet/minecraft/class_1923;
      official r Laqn;r()Ldcd;
    • getLevelType

      public ChunkLevelType getLevelType()
      Mappings:
      Namespace Name Mixin selector
      named getLevelType Lnet/minecraft/world/chunk/AbstractChunkHolder;getLevelType()Lnet/minecraft/server/world/ChunkLevelType;
      intermediary method_60474 Lnet/minecraft/class_9761;method_60474()Lnet/minecraft/class_3194;
      official s Laqn;s()Laql;
    • getLevel

      public abstract int getLevel()
      Mappings:
      Namespace Name Mixin selector
      named getLevel Lnet/minecraft/world/chunk/AbstractChunkHolder;getLevel()I
      intermediary method_14005 Lnet/minecraft/class_9761;method_14005()I
      official i Laqn;i()I
    • getCompletedLevel

      public abstract int getCompletedLevel()
      Mappings:
      Namespace Name Mixin selector
      named getCompletedLevel Lnet/minecraft/world/chunk/AbstractChunkHolder;getCompletedLevel()I
      intermediary method_17208 Lnet/minecraft/class_9761;method_17208()I
      official j Laqn;j()I
    • enumerateFutures

      public List<com.mojang.datafixers.util.Pair<ChunkStatus,CompletableFuture<OptionalChunk<Chunk>>>> enumerateFutures()
      Mappings:
      Namespace Name Mixin selector
      named enumerateFutures Lnet/minecraft/world/chunk/AbstractChunkHolder;enumerateFutures()Ljava/util/List;
      intermediary method_60475 Lnet/minecraft/class_9761;method_60475()Ljava/util/List;
      official t Laqn;t()Ljava/util/List;
    • getLatestStatus

      @Nullable public @Nullable ChunkStatus getLatestStatus()
      Mappings:
      Namespace Name Mixin selector
      named getLatestStatus Lnet/minecraft/world/chunk/AbstractChunkHolder;getLatestStatus()Lnet/minecraft/world/chunk/ChunkStatus;
      intermediary method_60476 Lnet/minecraft/class_9761;method_60476()Lnet/minecraft/class_2806;
      official u Laqn;u()Ldvz;