Class ChunkHolder

java.lang.Object
net.minecraft.world.chunk.AbstractChunkHolder
net.minecraft.server.world.ChunkHolder

public class ChunkHolder extends AbstractChunkHolder
Mappings:
Namespace Name
named net/minecraft/server/world/ChunkHolder
intermediary net/minecraft/class_3193
official apy
  • Field Details

    • UNLOADED_WORLD_CHUNK

      public static final OptionalChunk<WorldChunk> UNLOADED_WORLD_CHUNK
      Mappings:
      Namespace Name Mixin selector
      named UNLOADED_WORLD_CHUNK Lnet/minecraft/server/world/ChunkHolder;UNLOADED_WORLD_CHUNK:Lnet/minecraft/server/world/OptionalChunk;
      intermediary field_16427 Lnet/minecraft/class_3193;field_16427:Lnet/minecraft/class_9259;
      official a Lapy;a:Laqb;
    • UNLOADED_WORLD_CHUNK_FUTURE

      private static final CompletableFuture<OptionalChunk<WorldChunk>> UNLOADED_WORLD_CHUNK_FUTURE
      Mappings:
      Namespace Name Mixin selector
      named UNLOADED_WORLD_CHUNK_FUTURE Lnet/minecraft/server/world/ChunkHolder;UNLOADED_WORLD_CHUNK_FUTURE:Ljava/util/concurrent/CompletableFuture;
      intermediary field_16429 Lnet/minecraft/class_3193;field_16429:Ljava/util/concurrent/CompletableFuture;
      official e Lapy;e:Ljava/util/concurrent/CompletableFuture;
    • world

      private final HeightLimitView world
      Mappings:
      Namespace Name Mixin selector
      named world Lnet/minecraft/server/world/ChunkHolder;world:Lnet/minecraft/world/HeightLimitView;
      intermediary field_26929 Lnet/minecraft/class_3193;field_26929:Lnet/minecraft/class_5539;
      official f Lapy;f:Ldcw;
    • accessibleFuture

      private volatile CompletableFuture<OptionalChunk<WorldChunk>> accessibleFuture
      Mappings:
      Namespace Name Mixin selector
      named accessibleFuture Lnet/minecraft/server/world/ChunkHolder;accessibleFuture:Ljava/util/concurrent/CompletableFuture;
      intermediary field_16431 Lnet/minecraft/class_3193;field_16431:Ljava/util/concurrent/CompletableFuture;
      official g Lapy;g:Ljava/util/concurrent/CompletableFuture;
    • tickingFuture

      private volatile CompletableFuture<OptionalChunk<WorldChunk>> tickingFuture
      Mappings:
      Namespace Name Mixin selector
      named tickingFuture Lnet/minecraft/server/world/ChunkHolder;tickingFuture:Ljava/util/concurrent/CompletableFuture;
      intermediary field_19333 Lnet/minecraft/class_3193;field_19333:Ljava/util/concurrent/CompletableFuture;
      official h Lapy;h:Ljava/util/concurrent/CompletableFuture;
    • entityTickingFuture

      private volatile CompletableFuture<OptionalChunk<WorldChunk>> entityTickingFuture
      Mappings:
      Namespace Name Mixin selector
      named entityTickingFuture Lnet/minecraft/server/world/ChunkHolder;entityTickingFuture:Ljava/util/concurrent/CompletableFuture;
      intermediary field_13865 Lnet/minecraft/class_3193;field_13865:Ljava/util/concurrent/CompletableFuture;
      official i Lapy;i:Ljava/util/concurrent/CompletableFuture;
    • lastTickLevel

      private int lastTickLevel
      Mappings:
      Namespace Name Mixin selector
      named lastTickLevel Lnet/minecraft/server/world/ChunkHolder;lastTickLevel:I
      intermediary field_16432 Lnet/minecraft/class_3193;field_16432:I
      official j Lapy;j:I
    • level

      private int level
      Mappings:
      Namespace Name Mixin selector
      named level Lnet/minecraft/server/world/ChunkHolder;level:I
      intermediary field_13862 Lnet/minecraft/class_3193;field_13862:I
      official k Lapy;k:I
    • completedLevel

      private int completedLevel
      Mappings:
      Namespace Name Mixin selector
      named completedLevel Lnet/minecraft/server/world/ChunkHolder;completedLevel:I
      intermediary field_17208 Lnet/minecraft/class_3193;field_17208:I
      official l Lapy;l:I
    • pendingBlockUpdates

      private boolean pendingBlockUpdates
      Indicates that blockUpdatesBySection contains at least one entry.
      Mappings:
      Namespace Name Mixin selector
      named pendingBlockUpdates Lnet/minecraft/server/world/ChunkHolder;pendingBlockUpdates:Z
      intermediary field_25803 Lnet/minecraft/class_3193;field_25803:Z
      official m Lapy;m:Z
    • blockUpdatesBySection

      private final ShortSet[] blockUpdatesBySection
      Contains the packed chunk-local positions that have been marked for update by markForBlockUpdate(net.minecraft.util.math.BlockPos), grouped by their vertical chunk section.

      Entries for a section are null if the section has no positions marked for update.

      Mappings:
      Namespace Name Mixin selector
      named blockUpdatesBySection Lnet/minecraft/server/world/ChunkHolder;blockUpdatesBySection:[Lit/unimi/dsi/fastutil/shorts/ShortSet;
      intermediary field_25804 Lnet/minecraft/class_3193;field_25804:[Lit/unimi/dsi/fastutil/shorts/ShortSet;
      official n Lapy;n:[Lit/unimi/dsi/fastutil/shorts/ShortSet;
    • blockLightUpdateBits

      private final BitSet blockLightUpdateBits
      Mappings:
      Namespace Name Mixin selector
      named blockLightUpdateBits Lnet/minecraft/server/world/ChunkHolder;blockLightUpdateBits:Ljava/util/BitSet;
      intermediary field_13871 Lnet/minecraft/class_3193;field_13871:Ljava/util/BitSet;
      official o Lapy;o:Ljava/util/BitSet;
    • skyLightUpdateBits

      private final BitSet skyLightUpdateBits
      Mappings:
      Namespace Name Mixin selector
      named skyLightUpdateBits Lnet/minecraft/server/world/ChunkHolder;skyLightUpdateBits:Ljava/util/BitSet;
      intermediary field_13870 Lnet/minecraft/class_3193;field_13870:Ljava/util/BitSet;
      official p Lapy;p:Ljava/util/BitSet;
    • lightingProvider

      private final LightingProvider lightingProvider
      Mappings:
      Namespace Name Mixin selector
      named lightingProvider Lnet/minecraft/server/world/ChunkHolder;lightingProvider:Lnet/minecraft/world/chunk/light/LightingProvider;
      intermediary field_13863 Lnet/minecraft/class_3193;field_13863:Lnet/minecraft/class_3568;
      official q Lapy;q:Leon;
    • levelUpdateListener

      private final ChunkHolder.LevelUpdateListener levelUpdateListener
      Mappings:
      Namespace Name Mixin selector
      named levelUpdateListener Lnet/minecraft/server/world/ChunkHolder;levelUpdateListener:Lnet/minecraft/server/world/ChunkHolder$LevelUpdateListener;
      intermediary field_17209 Lnet/minecraft/class_3193;field_17209:Lnet/minecraft/class_3193$class_3896;
      official r Lapy;r:Lapy$a;
    • playersWatchingChunkProvider

      private final ChunkHolder.PlayersWatchingChunkProvider playersWatchingChunkProvider
      Mappings:
      Namespace Name Mixin selector
      named playersWatchingChunkProvider Lnet/minecraft/server/world/ChunkHolder;playersWatchingChunkProvider:Lnet/minecraft/server/world/ChunkHolder$PlayersWatchingChunkProvider;
      intermediary field_17210 Lnet/minecraft/class_3193;field_17210:Lnet/minecraft/class_3193$class_3897;
      official s Lapy;s:Lapy$b;
    • accessible

      private boolean accessible
      Mappings:
      Namespace Name Mixin selector
      named accessible Lnet/minecraft/server/world/ChunkHolder;accessible:Z
      intermediary field_19238 Lnet/minecraft/class_3193;field_19238:Z
      official t Lapy;t:Z
    • levelIncreaseFuture

      private CompletableFuture<?> levelIncreaseFuture
      Mappings:
      Namespace Name Mixin selector
      named levelIncreaseFuture Lnet/minecraft/server/world/ChunkHolder;levelIncreaseFuture:Ljava/util/concurrent/CompletableFuture;
      intermediary field_26930 Lnet/minecraft/class_3193;field_26930:Ljava/util/concurrent/CompletableFuture;
      official u Lapy;u:Ljava/util/concurrent/CompletableFuture;
    • postProcessingFuture

      private CompletableFuture<?> postProcessingFuture
      Mappings:
      Namespace Name Mixin selector
      named postProcessingFuture Lnet/minecraft/server/world/ChunkHolder;postProcessingFuture:Ljava/util/concurrent/CompletableFuture;
      intermediary field_46085 Lnet/minecraft/class_3193;field_46085:Ljava/util/concurrent/CompletableFuture;
      official v Lapy;v:Ljava/util/concurrent/CompletableFuture;
    • savingFuture

      private CompletableFuture<?> savingFuture
      Mappings:
      Namespace Name Mixin selector
      named savingFuture Lnet/minecraft/server/world/ChunkHolder;savingFuture:Ljava/util/concurrent/CompletableFuture;
      intermediary field_51858 Lnet/minecraft/class_3193;field_51858:Ljava/util/concurrent/CompletableFuture;
      official w Lapy;w:Ljava/util/concurrent/CompletableFuture;
  • Constructor Details

    • ChunkHolder

      public ChunkHolder(ChunkPos pos, int level, HeightLimitView world, LightingProvider lightingProvider, ChunkHolder.LevelUpdateListener levelUpdateListener, ChunkHolder.PlayersWatchingChunkProvider playersWatchingChunkProvider)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/server/world/ChunkHolder;<init>(Lnet/minecraft/util/math/ChunkPos;ILnet/minecraft/world/HeightLimitView;Lnet/minecraft/world/chunk/light/LightingProvider;Lnet/minecraft/server/world/ChunkHolder$LevelUpdateListener;Lnet/minecraft/server/world/ChunkHolder$PlayersWatchingChunkProvider;)V
      intermediary <init> Lnet/minecraft/class_3193;<init>(Lnet/minecraft/class_1923;ILnet/minecraft/class_5539;Lnet/minecraft/class_3568;Lnet/minecraft/class_3193$class_3896;Lnet/minecraft/class_3193$class_3897;)V
      official <init> Lapy;<init>(Ldcb;ILdcw;Leon;Lapy$a;Lapy$b;)V
  • Method Details

    • getTickingFuture

      public CompletableFuture<OptionalChunk<WorldChunk>> getTickingFuture()
      Mappings:
      Namespace Name Mixin selector
      named getTickingFuture Lnet/minecraft/server/world/ChunkHolder;getTickingFuture()Ljava/util/concurrent/CompletableFuture;
      intermediary method_16145 Lnet/minecraft/class_3193;method_16145()Ljava/util/concurrent/CompletableFuture;
      official a Lapy;a()Ljava/util/concurrent/CompletableFuture;
    • getEntityTickingFuture

      public CompletableFuture<OptionalChunk<WorldChunk>> getEntityTickingFuture()
      Mappings:
      Namespace Name Mixin selector
      named getEntityTickingFuture Lnet/minecraft/server/world/ChunkHolder;getEntityTickingFuture()Ljava/util/concurrent/CompletableFuture;
      intermediary method_14003 Lnet/minecraft/class_3193;method_14003()Ljava/util/concurrent/CompletableFuture;
      official b Lapy;b()Ljava/util/concurrent/CompletableFuture;
    • getAccessibleFuture

      public CompletableFuture<OptionalChunk<WorldChunk>> getAccessibleFuture()
      Mappings:
      Namespace Name Mixin selector
      named getAccessibleFuture Lnet/minecraft/server/world/ChunkHolder;getAccessibleFuture()Ljava/util/concurrent/CompletableFuture;
      intermediary method_20725 Lnet/minecraft/class_3193;method_20725()Ljava/util/concurrent/CompletableFuture;
      official c Lapy;c()Ljava/util/concurrent/CompletableFuture;
    • getWorldChunk

      @Nullable public @Nullable WorldChunk getWorldChunk()
      Mappings:
      Namespace Name Mixin selector
      named getWorldChunk Lnet/minecraft/server/world/ChunkHolder;getWorldChunk()Lnet/minecraft/world/chunk/WorldChunk;
      intermediary method_16144 Lnet/minecraft/class_3193;method_16144()Lnet/minecraft/class_2818;
      official d Lapy;d()Ldvg;
    • getPostProcessedChunk

      @Nullable public @Nullable WorldChunk getPostProcessedChunk()
      Mappings:
      Namespace Name Mixin selector
      named getPostProcessedChunk Lnet/minecraft/server/world/ChunkHolder;getPostProcessedChunk()Lnet/minecraft/world/chunk/WorldChunk;
      intermediary method_53682 Lnet/minecraft/class_3193;method_53682()Lnet/minecraft/class_2818;
      official e Lapy;e()Ldvg;
    • getPostProcessingFuture

      public CompletableFuture<?> getPostProcessingFuture()
      Mappings:
      Namespace Name Mixin selector
      named getPostProcessingFuture Lnet/minecraft/server/world/ChunkHolder;getPostProcessingFuture()Ljava/util/concurrent/CompletableFuture;
      intermediary method_53681 Lnet/minecraft/class_3193;method_53681()Ljava/util/concurrent/CompletableFuture;
      official f Lapy;f()Ljava/util/concurrent/CompletableFuture;
    • combinePostProcessingFuture

      public void combinePostProcessingFuture(CompletableFuture<?> postProcessingFuture)
      Mappings:
      Namespace Name Mixin selector
      named combinePostProcessingFuture Lnet/minecraft/server/world/ChunkHolder;combinePostProcessingFuture(Ljava/util/concurrent/CompletableFuture;)V
      intermediary method_53680 Lnet/minecraft/class_3193;method_53680(Ljava/util/concurrent/CompletableFuture;)V
      official a Lapy;a(Ljava/util/concurrent/CompletableFuture;)V
    • getSavingFuture

      public CompletableFuture<?> getSavingFuture()
      Mappings:
      Namespace Name Mixin selector
      named getSavingFuture Lnet/minecraft/server/world/ChunkHolder;getSavingFuture()Ljava/util/concurrent/CompletableFuture;
      intermediary method_14000 Lnet/minecraft/class_3193;method_14000()Ljava/util/concurrent/CompletableFuture;
      official g Lapy;g()Ljava/util/concurrent/CompletableFuture;
    • isSavable

      public boolean isSavable()
      Mappings:
      Namespace Name Mixin selector
      named isSavable Lnet/minecraft/server/world/ChunkHolder;isSavable()Z
      intermediary method_60436 Lnet/minecraft/class_3193;method_60436()Z
      official h Lapy;h()Z
    • combineSavingFuture

      private void combineSavingFuture(CompletableFuture<?> savingFuture)
      Mappings:
      Namespace Name Mixin selector
      named combineSavingFuture Lnet/minecraft/server/world/ChunkHolder;combineSavingFuture(Ljava/util/concurrent/CompletableFuture;)V
      intermediary method_39967 Lnet/minecraft/class_3193;method_39967(Ljava/util/concurrent/CompletableFuture;)V
      official b Lapy;b(Ljava/util/concurrent/CompletableFuture;)V
    • markForBlockUpdate

      public void markForBlockUpdate(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named markForBlockUpdate Lnet/minecraft/server/world/ChunkHolder;markForBlockUpdate(Lnet/minecraft/util/math/BlockPos;)V
      intermediary method_14002 Lnet/minecraft/class_3193;method_14002(Lnet/minecraft/class_2338;)V
      official a Lapy;a(Ljd;)V
    • markForLightUpdate

      public void markForLightUpdate(LightType lightType, int y)
      Parameters:
      y - chunk section y coordinate
      Mappings:
      Namespace Name Mixin selector
      named markForLightUpdate Lnet/minecraft/server/world/ChunkHolder;markForLightUpdate(Lnet/minecraft/world/LightType;I)V
      intermediary method_14012 Lnet/minecraft/class_3193;method_14012(Lnet/minecraft/class_1944;I)V
      official a Lapy;a(Lddd;I)V
    • flushUpdates

      public void flushUpdates(WorldChunk chunk)
      Mappings:
      Namespace Name Mixin selector
      named flushUpdates Lnet/minecraft/server/world/ChunkHolder;flushUpdates(Lnet/minecraft/world/chunk/WorldChunk;)V
      intermediary method_14006 Lnet/minecraft/class_3193;method_14006(Lnet/minecraft/class_2818;)V
      official a Lapy;a(Ldvg;)V
    • tryUpdateBlockEntityAt

      private void tryUpdateBlockEntityAt(List<ServerPlayerEntity> players, World world, BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      named tryUpdateBlockEntityAt Lnet/minecraft/server/world/ChunkHolder;tryUpdateBlockEntityAt(Ljava/util/List;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
      intermediary method_30311 Lnet/minecraft/class_3193;method_30311(Ljava/util/List;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      official a Lapy;a(Ljava/util/List;Ldcu;Ljd;Ldta;)V
    • sendBlockEntityUpdatePacket

      private void sendBlockEntityUpdatePacket(List<ServerPlayerEntity> players, World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named sendBlockEntityUpdatePacket Lnet/minecraft/server/world/ChunkHolder;sendBlockEntityUpdatePacket(Ljava/util/List;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
      intermediary method_14009 Lnet/minecraft/class_3193;method_14009(Ljava/util/List;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
      official a Lapy;a(Ljava/util/List;Ldcu;Ljd;)V
    • sendPacketToPlayers

      private void sendPacketToPlayers(List<ServerPlayerEntity> players, Packet<?> packet)
      Mappings:
      Namespace Name Mixin selector
      named sendPacketToPlayers Lnet/minecraft/server/world/ChunkHolder;sendPacketToPlayers(Ljava/util/List;Lnet/minecraft/network/packet/Packet;)V
      intermediary method_13992 Lnet/minecraft/class_3193;method_13992(Ljava/util/List;Lnet/minecraft/class_2596;)V
      official a Lapy;a(Ljava/util/List;Lzf;)V
    • getLevel

      public int getLevel()
      Specified by:
      getLevel in class AbstractChunkHolder
      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 int getCompletedLevel()
      Specified by:
      getCompletedLevel in class AbstractChunkHolder
      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
    • setCompletedLevel

      private void setCompletedLevel(int level)
      Mappings:
      Namespace Name Mixin selector
      named setCompletedLevel Lnet/minecraft/server/world/ChunkHolder;setCompletedLevel(I)V
      intermediary method_17207 Lnet/minecraft/class_3193;method_17207(I)V
      official b Lapy;b(I)V
    • setLevel

      public void setLevel(int level)
      Mappings:
      Namespace Name Mixin selector
      named setLevel Lnet/minecraft/server/world/ChunkHolder;setLevel(I)V
      intermediary method_15890 Lnet/minecraft/class_3193;method_15890(I)V
      official a Lapy;a(I)V
    • increaseLevel

      private void increaseLevel(ServerChunkLoadingManager chunkLoadingManager, CompletableFuture<OptionalChunk<WorldChunk>> chunkFuture, Executor executor, ChunkLevelType target)
      Mappings:
      Namespace Name Mixin selector
      named increaseLevel Lnet/minecraft/server/world/ChunkHolder;increaseLevel(Lnet/minecraft/server/world/ServerChunkLoadingManager;Ljava/util/concurrent/CompletableFuture;Ljava/util/concurrent/Executor;Lnet/minecraft/server/world/ChunkLevelType;)V
      intermediary method_31409 Lnet/minecraft/class_3193;method_31409(Lnet/minecraft/class_3898;Ljava/util/concurrent/CompletableFuture;Ljava/util/concurrent/Executor;Lnet/minecraft/class_3194;)V
      official a Lapy;a(Laqa;Ljava/util/concurrent/CompletableFuture;Ljava/util/concurrent/Executor;Laqk;)V
    • decreaseLevel

      private void decreaseLevel(ServerChunkLoadingManager chunkLoadingManager, ChunkLevelType target)
      Mappings:
      Namespace Name Mixin selector
      named decreaseLevel Lnet/minecraft/server/world/ChunkHolder;decreaseLevel(Lnet/minecraft/server/world/ServerChunkLoadingManager;Lnet/minecraft/server/world/ChunkLevelType;)V
      intermediary method_31408 Lnet/minecraft/class_3193;method_31408(Lnet/minecraft/class_3898;Lnet/minecraft/class_3194;)V
      official a Lapy;a(Laqa;Laqk;)V
    • updateFutures

      protected void updateFutures(ServerChunkLoadingManager chunkLoadingManager, Executor executor)
      Updates Futures indicating the expected loading state of the underlying chunk of this ChunkHolder. Note that the method merely makes actual loading process possible, but do not perform these actions.
      Mappings:
      Namespace Name Mixin selector
      named updateFutures Lnet/minecraft/server/world/ChunkHolder;updateFutures(Lnet/minecraft/server/world/ServerChunkLoadingManager;Ljava/util/concurrent/Executor;)V
      intermediary method_14007 Lnet/minecraft/class_3193;method_14007(Lnet/minecraft/class_3898;Ljava/util/concurrent/Executor;)V
      official a Lapy;a(Laqa;Ljava/util/concurrent/Executor;)V
    • isAccessible

      public boolean isAccessible()
      Mappings:
      Namespace Name Mixin selector
      named isAccessible Lnet/minecraft/server/world/ChunkHolder;isAccessible()Z
      intermediary method_20384 Lnet/minecraft/class_3193;method_20384()Z
      official k Lapy;k()Z
    • updateAccessibleStatus

      public void updateAccessibleStatus()
      Mappings:
      Namespace Name Mixin selector
      named updateAccessibleStatus Lnet/minecraft/server/world/ChunkHolder;updateAccessibleStatus()V
      intermediary method_20385 Lnet/minecraft/class_3193;method_20385()V
      official l Lapy;l()V