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 aqm
  • 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 Laqm;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 Laqm;e:Laqb;
    • 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 Laqm;b:Laqb;
    • 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 Laqm;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 Laqm;d:Ldcb;
    • 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 Laqm;f:Ldvx;
    • 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 Laqm;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 Laqm;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 Laqm;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 Laqm;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> Laqm;<init>(Ldcb;)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 Laqm;a(Ldvx;Laqa;)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 Laqm;a(Ldwa;Laql;Lazh;)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 Laqm;a(Laqa;)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 Laqm;a(Ldvf;)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 Laqm;a(Lapx;)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 Laqm;a(Laqa;Ldvx;)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 Laqm;c(Ldvx;)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 Laqm;a(Ldvx;Ldvx;)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 Laqm;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 Laqm;a(Ldvx;Lduw;)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 Laqm;d(Ldvx;)Ldvx;
    • 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 Laqm;e(Ldvx;)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 Laqm;f(Ldvx;)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 Laqm;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 Laqm;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 Laqm;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 Laqm;a(Ldvx;)Lduw;
    • 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 Laqm;b(Ldvx;)Lduw;
    • 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 Laqm;p()Lduw;
    • 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 Laqm;q()Ldvx;
    • 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 Laqm;r()Ldcb;
    • 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 Laqm;s()Laqk;
    • 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 Laqm;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 Laqm;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 Laqm;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 Laqm;u()Ldvx;