Class ChunkSerializer

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

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

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Lcki;a: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;
  • Constructor Details

    • ChunkSerializer

      public ChunkSerializer()
  • Method Details

    • deserialize

      public static ProtoChunk deserialize​(ServerWorld world, StructureManager structureManager, PointOfInterestStorage poiStorage, ChunkPos pos, CompoundTag tag)
      Mappings:
      Namespace Name Mixin selector
      official a Lcki;a(Laav;Lcyj;Lbay;Lbta;Lmq;)Lcke;
      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/CompoundTag;)Lnet/minecraft/world/chunk/ProtoChunk;
    • serialize

      public static CompoundTag serialize​(ServerWorld world, Chunk chunk)
      Mappings:
      Namespace Name Mixin selector
      official a Lcki;a(Laav;Lcjl;)Lmq;
      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/CompoundTag;
    • getChunkType

      public static ChunkStatus.ChunkType getChunkType​(@Nullable CompoundTag tag)
      Mappings:
      Namespace Name Mixin selector
      official a Lcki;a(Lmq;)Lcjp$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/CompoundTag;)Lnet/minecraft/world/chunk/ChunkStatus$ChunkType;
    • writeEntities

      private static void writeEntities​(ServerWorld world, CompoundTag tag, WorldChunk chunk)
      Mappings:
      Namespace Name Mixin selector
      official a Lcki;a(Laav;Lmq;Lcjw;)V
      intermediary method_12386 Lnet/minecraft/class_2852;method_12386(Lnet/minecraft/class_3218;Lnet/minecraft/class_2487;Lnet/minecraft/class_2818;)V
      named writeEntities Lnet/minecraft/world/ChunkSerializer;writeEntities(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/nbt/CompoundTag;Lnet/minecraft/world/chunk/WorldChunk;)V
    • writeStructures

      private static CompoundTag writeStructures​(ChunkPos pos, Map<StructureFeature<?>,​StructureStart<?>> structureStarts, Map<StructureFeature<?>,​LongSet> structureReferences)
      Mappings:
      Namespace Name Mixin selector
      official a Lcki;a(Lbta;Ljava/util/Map;Ljava/util/Map;)Lmq;
      intermediary method_12385 Lnet/minecraft/class_2852;method_12385(Lnet/minecraft/class_1923;Ljava/util/Map;Ljava/util/Map;)Lnet/minecraft/class_2487;
      named writeStructures Lnet/minecraft/world/ChunkSerializer;writeStructures(Lnet/minecraft/util/math/ChunkPos;Ljava/util/Map;Ljava/util/Map;)Lnet/minecraft/nbt/CompoundTag;
    • readStructureStarts

      private static Map<StructureFeature<?>,​StructureStart<?>> readStructureStarts​(StructureManager structureManager, CompoundTag tag, long worldSeed)
      Mappings:
      Namespace Name Mixin selector
      official a Lcki;a(Lcyj;Lmq;J)Ljava/util/Map;
      intermediary method_12392 Lnet/minecraft/class_2852;method_12392(Lnet/minecraft/class_3485;Lnet/minecraft/class_2487;J)Ljava/util/Map;
      named readStructureStarts Lnet/minecraft/world/ChunkSerializer;readStructureStarts(Lnet/minecraft/structure/StructureManager;Lnet/minecraft/nbt/CompoundTag;J)Ljava/util/Map;
    • readStructureReferences

      private static Map<StructureFeature<?>,​LongSet> readStructureReferences​(ChunkPos pos, CompoundTag tag)
      Mappings:
      Namespace Name Mixin selector
      official a Lcki;a(Lbta;Lmq;)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/CompoundTag;)Ljava/util/Map;
    • toNbt

      public static ListTag toNbt​(ShortList[] lists)
      Mappings:
      Namespace Name Mixin selector
      official a Lcki;a([Lit/unimi/dsi/fastutil/shorts/ShortList;)Lmw;
      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/ListTag;