Class EntityChunkDataAccess

java.lang.Object
net.minecraft.world.storage.EntityChunkDataAccess
All Implemented Interfaces:
AutoCloseable, ChunkDataAccess<Entity>

public class EntityChunkDataAccess extends Object implements ChunkDataAccess<Entity>
Mappings:
Namespace Name
named net/minecraft/world/storage/EntityChunkDataAccess
intermediary net/minecraft/class_5565
official eba
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/world/storage/EntityChunkDataAccess;LOGGER:Lorg/slf4j/Logger;
      intermediary field_27232 Lnet/minecraft/class_5565;field_27232:Lorg/slf4j/Logger;
      official a Leba;a:Lorg/slf4j/Logger;
    • ENTITIES_KEY

      private static final String ENTITIES_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ENTITIES_KEY Lnet/minecraft/world/storage/EntityChunkDataAccess;ENTITIES_KEY:Ljava/lang/String;
      intermediary field_31414 Lnet/minecraft/class_5565;field_31414:Ljava/lang/String;
      official b Leba;b:Ljava/lang/String;
    • POSITION_KEY

      private static final String POSITION_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named POSITION_KEY Lnet/minecraft/world/storage/EntityChunkDataAccess;POSITION_KEY:Ljava/lang/String;
      intermediary field_31415 Lnet/minecraft/class_5565;field_31415:Ljava/lang/String;
      official c Leba;c:Ljava/lang/String;
    • world

      private final ServerWorld world
      Mappings:
      Namespace Name Mixin selector
      named world Lnet/minecraft/world/storage/EntityChunkDataAccess;world:Lnet/minecraft/server/world/ServerWorld;
      intermediary field_27233 Lnet/minecraft/class_5565;field_27233:Lnet/minecraft/class_3218;
      official d Leba;d:Lash;
    • storage

      private final ChunkPosKeyedStorage storage
      Mappings:
      Namespace Name Mixin selector
      named storage Lnet/minecraft/world/storage/EntityChunkDataAccess;storage:Lnet/minecraft/world/storage/ChunkPosKeyedStorage;
      intermediary field_48747 Lnet/minecraft/class_5565;field_48747:Lnet/minecraft/class_9172;
      official e Leba;e:Lebl;
    • emptyChunks

      private final LongSet emptyChunks
      Mappings:
      Namespace Name Mixin selector
      named emptyChunks Lnet/minecraft/world/storage/EntityChunkDataAccess;emptyChunks:Lit/unimi/dsi/fastutil/longs/LongSet;
      intermediary field_27235 Lnet/minecraft/class_5565;field_27235:Lit/unimi/dsi/fastutil/longs/LongSet;
      official f Leba;f:Lit/unimi/dsi/fastutil/longs/LongSet;
    • taskExecutor

      private final SimpleConsecutiveExecutor taskExecutor
      Mappings:
      Namespace Name Mixin selector
      named taskExecutor Lnet/minecraft/world/storage/EntityChunkDataAccess;taskExecutor:Lnet/minecraft/util/thread/SimpleConsecutiveExecutor;
      intermediary field_34056 Lnet/minecraft/class_5565;field_34056:Lnet/minecraft/class_10176;
      official g Leba;g:Lbry;
  • Constructor Details

    • EntityChunkDataAccess

      public EntityChunkDataAccess(ChunkPosKeyedStorage storage, ServerWorld world, Executor executor)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/storage/EntityChunkDataAccess;<init>(Lnet/minecraft/world/storage/ChunkPosKeyedStorage;Lnet/minecraft/server/world/ServerWorld;Ljava/util/concurrent/Executor;)V
      intermediary <init> Lnet/minecraft/class_5565;<init>(Lnet/minecraft/class_9172;Lnet/minecraft/class_3218;Ljava/util/concurrent/Executor;)V
      official <init> Leba;<init>(Lebl;Lash;Ljava/util/concurrent/Executor;)V
  • Method Details

    • readChunkData

      public CompletableFuture<ChunkDataList<Entity>> readChunkData(ChunkPos pos)
      Specified by:
      readChunkData in interface ChunkDataAccess<Entity>
      Mappings:
      Namespace Name Mixin selector
      named readChunkData Lnet/minecraft/world/storage/ChunkDataAccess;readChunkData(Lnet/minecraft/util/math/ChunkPos;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_31759 Lnet/minecraft/class_5571;method_31759(Lnet/minecraft/class_1923;)Ljava/util/concurrent/CompletableFuture;
      official a Leca;a(Ldgn;)Ljava/util/concurrent/CompletableFuture;
    • getChunkPos

      private static ChunkPos getChunkPos(NbtCompound chunkNbt)
      Mappings:
      Namespace Name Mixin selector
      named getChunkPos Lnet/minecraft/world/storage/EntityChunkDataAccess;getChunkPos(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/util/math/ChunkPos;
      intermediary method_31736 Lnet/minecraft/class_5565;method_31736(Lnet/minecraft/class_2487;)Lnet/minecraft/class_1923;
      official a Leba;a(Lux;)Ldgn;
    • putChunkPos

      private static void putChunkPos(NbtCompound chunkNbt, ChunkPos pos)
      Mappings:
      Namespace Name Mixin selector
      named putChunkPos Lnet/minecraft/world/storage/EntityChunkDataAccess;putChunkPos(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/util/math/ChunkPos;)V
      intermediary method_31733 Lnet/minecraft/class_5565;method_31733(Lnet/minecraft/class_2487;Lnet/minecraft/class_1923;)V
      official a Leba;a(Lux;Ldgn;)V
    • emptyDataList

      private static ChunkDataList<Entity> emptyDataList(ChunkPos pos)
      Mappings:
      Namespace Name Mixin selector
      named emptyDataList Lnet/minecraft/world/storage/EntityChunkDataAccess;emptyDataList(Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/world/storage/ChunkDataList;
      intermediary method_31735 Lnet/minecraft/class_5565;method_31735(Lnet/minecraft/class_1923;)Lnet/minecraft/class_5566;
      official b Leba;b(Ldgn;)Lebv;
    • writeChunkData

      public void writeChunkData(ChunkDataList<Entity> dataList)
      Specified by:
      writeChunkData in interface ChunkDataAccess<Entity>
      Mappings:
      Namespace Name Mixin selector
      named writeChunkData Lnet/minecraft/world/storage/ChunkDataAccess;writeChunkData(Lnet/minecraft/world/storage/ChunkDataList;)V
      intermediary method_31760 Lnet/minecraft/class_5571;method_31760(Lnet/minecraft/class_5566;)V
      official a Leca;a(Lebv;)V
    • handleSaveFailure

      private void handleSaveFailure(CompletableFuture<?> future, ChunkPos pos)
      Mappings:
      Namespace Name Mixin selector
      named handleSaveFailure Lnet/minecraft/world/storage/EntityChunkDataAccess;handleSaveFailure(Ljava/util/concurrent/CompletableFuture;Lnet/minecraft/util/math/ChunkPos;)V
      intermediary method_61001 Lnet/minecraft/class_5565;method_61001(Ljava/util/concurrent/CompletableFuture;Lnet/minecraft/class_1923;)V
      official a Leba;a(Ljava/util/concurrent/CompletableFuture;Ldgn;)V
    • handleLoadFailure

      private void handleLoadFailure(CompletableFuture<?> future, ChunkPos pos)
      Mappings:
      Namespace Name Mixin selector
      named handleLoadFailure Lnet/minecraft/world/storage/EntityChunkDataAccess;handleLoadFailure(Ljava/util/concurrent/CompletableFuture;Lnet/minecraft/util/math/ChunkPos;)V
      intermediary method_61003 Lnet/minecraft/class_5565;method_61003(Ljava/util/concurrent/CompletableFuture;Lnet/minecraft/class_1923;)V
      official b Leba;b(Ljava/util/concurrent/CompletableFuture;Ldgn;)V
    • awaitAll

      public void awaitAll(boolean sync)
      Specified by:
      awaitAll in interface ChunkDataAccess<Entity>
      Mappings:
      Namespace Name Mixin selector
      named awaitAll Lnet/minecraft/world/storage/ChunkDataAccess;awaitAll(Z)V
      intermediary method_31758 Lnet/minecraft/class_5571;method_31758(Z)V
      official a Leca;a(Z)V
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface ChunkDataAccess<Entity>
      Throws:
      IOException