Class ThreadedAnvilChunkStorage

java.lang.Object
net.minecraft.world.chunk.ThreadedAnvilChunkStorage
All Implemented Interfaces:
FileIoCallback, ChunkStorage

public class ThreadedAnvilChunkStorage extends Object implements ChunkStorage, FileIoCallback
Mappings:
Namespace Name
official anj
intermediary net/minecraft/class_1205
named net/minecraft/world/chunk/ThreadedAnvilChunkStorage
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Lanj;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_7509 Lnet/minecraft/class_1205;field_7509:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/world/chunk/ThreadedAnvilChunkStorage;LOGGER:Lorg/apache/logging/log4j/Logger;
    • chunksToSave

      private Map<ChunkPos,NbtCompound> chunksToSave
      Mappings:
      Namespace Name Mixin selector
      official b Lanj;b:Ljava/util/Map;
      intermediary field_9957 Lnet/minecraft/class_1205;field_9957:Ljava/util/Map;
      named chunksToSave Lnet/minecraft/world/chunk/ThreadedAnvilChunkStorage;chunksToSave:Ljava/util/Map;
    • chunksBeingSaved

      private Set<ChunkPos> chunksBeingSaved
      Mappings:
      Namespace Name Mixin selector
      official c Lanj;c:Ljava/util/Set;
      intermediary field_4780 Lnet/minecraft/class_1205;field_4780:Ljava/util/Set;
      named chunksBeingSaved Lnet/minecraft/world/chunk/ThreadedAnvilChunkStorage;chunksBeingSaved:Ljava/util/Set;
    • saveLocation

      private final File saveLocation
      Mappings:
      Namespace Name Mixin selector
      official d Lanj;d:Ljava/io/File;
      intermediary field_4782 Lnet/minecraft/class_1205;field_4782:Ljava/io/File;
      named saveLocation Lnet/minecraft/world/chunk/ThreadedAnvilChunkStorage;saveLocation:Ljava/io/File;
    • isSaving

      private boolean isSaving
      Mappings:
      Namespace Name Mixin selector
      official e Lanj;e:Z
      intermediary field_9958 Lnet/minecraft/class_1205;field_9958:Z
      named isSaving Lnet/minecraft/world/chunk/ThreadedAnvilChunkStorage;isSaving:Z
  • Constructor Details

    • ThreadedAnvilChunkStorage

      public ThreadedAnvilChunkStorage(File saveLocation)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lanj;<init>(Ljava/io/File;)V
      intermediary <init> Lnet/minecraft/class_1205;<init>(Ljava/io/File;)V
      named <init> Lnet/minecraft/world/chunk/ThreadedAnvilChunkStorage;<init>(Ljava/io/File;)V
  • Method Details

    • loadChunk

      public Chunk loadChunk(World world, int x, int z) throws IOException
      Specified by:
      loadChunk in interface ChunkStorage
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Land;a(Ladm;II)Lamy;
      intermediary method_3951 Lnet/minecraft/class_1199;method_3951(Lnet/minecraft/class_1150;II)Lnet/minecraft/class_1196;
      named loadChunk Lnet/minecraft/world/chunk/ChunkStorage;loadChunk(Lnet/minecraft/world/World;II)Lnet/minecraft/world/chunk/Chunk;
    • validateChunk

      protected Chunk validateChunk(World world, int chunkX, int chunkZ, NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Lanj;a(Ladm;IILdn;)Lamy;
      intermediary method_3972 Lnet/minecraft/class_1205;method_3972(Lnet/minecraft/class_1150;IILnet/minecraft/class_322;)Lnet/minecraft/class_1196;
      named validateChunk Lnet/minecraft/world/chunk/ThreadedAnvilChunkStorage;validateChunk(Lnet/minecraft/world/World;IILnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/world/chunk/Chunk;
    • writeChunk

      public void writeChunk(World world, Chunk chunk) throws IOException, WorldSaveException
      Specified by:
      writeChunk in interface ChunkStorage
      Throws:
      IOException
      WorldSaveException
      Mappings:
      Namespace Name Mixin selector
      official a Land;a(Ladm;Lamy;)V
      intermediary method_3952 Lnet/minecraft/class_1199;method_3952(Lnet/minecraft/class_1150;Lnet/minecraft/class_1196;)V
      named writeChunk Lnet/minecraft/world/chunk/ChunkStorage;writeChunk(Lnet/minecraft/world/World;Lnet/minecraft/world/chunk/Chunk;)V
    • registerChunkChecker

      protected void registerChunkChecker(ChunkPos pos, NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Lanj;a(Ladg;Ldn;)V
      intermediary method_3971 Lnet/minecraft/class_1205;method_3971(Lnet/minecraft/class_1146;Lnet/minecraft/class_322;)V
      named registerChunkChecker Lnet/minecraft/world/chunk/ThreadedAnvilChunkStorage;registerChunkChecker(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/nbt/NbtCompound;)V
    • saveNextChunk

      public boolean saveNextChunk()
      Specified by:
      saveNextChunk in interface FileIoCallback
      Mappings:
      Namespace Name Mixin selector
      official c Laud;c()Z
      intermediary method_276 Lnet/minecraft/class_108;method_276()Z
      named saveNextChunk Lnet/minecraft/util/FileIoCallback;saveNextChunk()Z
    • write

      private void write(ChunkPos chunkPos, NbtCompound nbt) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Lanj;b(Ladg;Ldn;)V
      intermediary method_9173 Lnet/minecraft/class_1205;method_9173(Lnet/minecraft/class_1146;Lnet/minecraft/class_322;)V
      named write Lnet/minecraft/world/chunk/ThreadedAnvilChunkStorage;write(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/nbt/NbtCompound;)V
    • writeEntities

      public void writeEntities(World world, Chunk chunk) throws IOException
      Specified by:
      writeEntities in interface ChunkStorage
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Land;b(Ladm;Lamy;)V
      intermediary method_3954 Lnet/minecraft/class_1199;method_3954(Lnet/minecraft/class_1150;Lnet/minecraft/class_1196;)V
      named writeEntities Lnet/minecraft/world/chunk/ChunkStorage;writeEntities(Lnet/minecraft/world/World;Lnet/minecraft/world/chunk/Chunk;)V
    • method_3950

      public void method_3950()
      Specified by:
      method_3950 in interface ChunkStorage
      Mappings:
      Namespace Name Mixin selector
      official a Land;a()V
      intermediary method_3950 Lnet/minecraft/class_1199;method_3950()V
      named method_3950 Lnet/minecraft/world/chunk/ChunkStorage;method_3950()V
    • save

      public void save()
      Specified by:
      save in interface ChunkStorage
      Mappings:
      Namespace Name Mixin selector
      official b Land;b()V
      intermediary method_3953 Lnet/minecraft/class_1199;method_3953()V
      named save Lnet/minecraft/world/chunk/ChunkStorage;save()V
    • putChunk

      private void putChunk(Chunk chunk, World world, NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Lanj;a(Lamy;Ladm;Ldn;)V
      intermediary method_3974 Lnet/minecraft/class_1205;method_3974(Lnet/minecraft/class_1196;Lnet/minecraft/class_1150;Lnet/minecraft/class_322;)V
      named putChunk Lnet/minecraft/world/chunk/ThreadedAnvilChunkStorage;putChunk(Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/world/World;Lnet/minecraft/nbt/NbtCompound;)V
    • getChunk

      private Chunk getChunk(World world, NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Lanj;a(Ladm;Ldn;)Lamy;
      intermediary method_3973 Lnet/minecraft/class_1205;method_3973(Lnet/minecraft/class_1150;Lnet/minecraft/class_322;)Lnet/minecraft/class_1196;
      named getChunk Lnet/minecraft/world/chunk/ThreadedAnvilChunkStorage;getChunk(Lnet/minecraft/world/World;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/world/chunk/Chunk;