Class ChunkSerializer

java.lang.Object
net.minecraft.world.ChunkSerializer

public class ChunkSerializer extends Object
Mappings:
Namespace Name
official cni
intermediary net/minecraft/class_2852
named net/minecraft/world/ChunkSerializer
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Lcni;b:Lorg/apache/logging/log4j/Logger;
      intermediary field_13001 Lnet/minecraft/class_2852;field_13001:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/world/ChunkSerializer;LOGGER:Lorg/apache/logging/log4j/Logger;
    • field_31413

      public static final String field_31413
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official a Lcni;a:Ljava/lang/String;
      intermediary field_31413 Lnet/minecraft/class_2852;field_31413:Ljava/lang/String;
      named field_31413 Lnet/minecraft/world/ChunkSerializer;field_31413:Ljava/lang/String;
  • Constructor Details

    • ChunkSerializer

      public ChunkSerializer()
  • Method Details

    • deserialize

      public static ProtoChunk deserialize(ServerWorld world, StructureManager structureManager, PointOfInterestStorage poiStorage, ChunkPos pos, NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Lcni;a(Labr;Ldcp;Lbdm;Lbvu;Lna;)Lcne;
      intermediary method_12395 Lnet/minecraft/class_2852;method_12395(Lnet/minecraft/class_3218;Lnet/minecraft/class_3485;Lnet/minecraft/class_4153;Lnet/minecraft/class_1923;Lnet/minecraft/class_2487;)Lnet/minecraft/class_2839;
      named deserialize Lnet/minecraft/world/ChunkSerializer;deserialize(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/structure/StructureManager;Lnet/minecraft/world/poi/PointOfInterestStorage;Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/world/chunk/ProtoChunk;
    • serialize

      public static NbtCompound serialize(ServerWorld world, Chunk chunk)
      Mappings:
      Namespace Name Mixin selector
      official a Lcni;a(Labr;Lcml;)Lna;
      intermediary method_12410 Lnet/minecraft/class_2852;method_12410(Lnet/minecraft/class_3218;Lnet/minecraft/class_2791;)Lnet/minecraft/class_2487;
      named serialize Lnet/minecraft/world/ChunkSerializer;serialize(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/chunk/Chunk;)Lnet/minecraft/nbt/NbtCompound;
    • getChunkType

      public static ChunkStatus.ChunkType getChunkType(@Nullable @Nullable NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Lcni;a(Lna;)Lcmp$a;
      intermediary method_12377 Lnet/minecraft/class_2852;method_12377(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2806$class_2808;
      named getChunkType Lnet/minecraft/world/ChunkSerializer;getChunkType(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/world/chunk/ChunkStatus$ChunkType;
    • loadEntities

      private static void loadEntities(ServerWorld world, NbtCompound nbt, WorldChunk chunk)
      Mappings:
      Namespace Name Mixin selector
      official a Lcni;a(Labr;Lna;Lcmw;)V
      intermediary method_12386 Lnet/minecraft/class_2852;method_12386(Lnet/minecraft/class_3218;Lnet/minecraft/class_2487;Lnet/minecraft/class_2818;)V
      named loadEntities Lnet/minecraft/world/ChunkSerializer;loadEntities(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/world/chunk/WorldChunk;)V
    • writeStructures

      private static NbtCompound writeStructures(ServerWorld world, ChunkPos chunkPos, Map<StructureFeature<?>,​StructureStart<?>> map, Map<StructureFeature<?>,​LongSet> map2)
      Mappings:
      Namespace Name Mixin selector
      official a Lcni;a(Labr;Lbvu;Ljava/util/Map;Ljava/util/Map;)Lna;
      intermediary method_12385 Lnet/minecraft/class_2852;method_12385(Lnet/minecraft/class_3218;Lnet/minecraft/class_1923;Ljava/util/Map;Ljava/util/Map;)Lnet/minecraft/class_2487;
      named writeStructures Lnet/minecraft/world/ChunkSerializer;writeStructures(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/ChunkPos;Ljava/util/Map;Ljava/util/Map;)Lnet/minecraft/nbt/NbtCompound;
    • readStructureStarts

      private static Map<StructureFeature<?>,​StructureStart<?>> readStructureStarts(ServerWorld serverWorld, NbtCompound nbt, long worldSeed)
      Mappings:
      Namespace Name Mixin selector
      official a Lcni;a(Labr;Lna;J)Ljava/util/Map;
      intermediary method_12392 Lnet/minecraft/class_2852;method_12392(Lnet/minecraft/class_3218;Lnet/minecraft/class_2487;J)Ljava/util/Map;
      named readStructureStarts Lnet/minecraft/world/ChunkSerializer;readStructureStarts(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/nbt/NbtCompound;J)Ljava/util/Map;
    • readStructureReferences

      private static Map<StructureFeature<?>,​LongSet> readStructureReferences(ChunkPos pos, NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Lcni;a(Lbvu;Lna;)Ljava/util/Map;
      intermediary method_12387 Lnet/minecraft/class_2852;method_12387(Lnet/minecraft/class_1923;Lnet/minecraft/class_2487;)Ljava/util/Map;
      named readStructureReferences Lnet/minecraft/world/ChunkSerializer;readStructureReferences(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/nbt/NbtCompound;)Ljava/util/Map;
    • toNbt

      public static NbtList toNbt(ShortList[] lists)
      Mappings:
      Namespace Name Mixin selector
      official a Lcni;a([Lit/unimi/dsi/fastutil/shorts/ShortList;)Lng;
      intermediary method_12393 Lnet/minecraft/class_2852;method_12393([Lit/unimi/dsi/fastutil/shorts/ShortList;)Lnet/minecraft/class_2499;
      named toNbt Lnet/minecraft/world/ChunkSerializer;toNbt([Lit/unimi/dsi/fastutil/shorts/ShortList;)Lnet/minecraft/nbt/NbtList;