Class ChunkSerializer

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

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

    • CODEC

      private static final com.mojang.serialization.Codec<PalettedContainer<BlockState>> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/world/ChunkSerializer;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_34576 Lnet/minecraft/class_2852;field_34576:Lcom/mojang/serialization/Codec;
      official h Ldvq;h:Lcom/mojang/serialization/Codec;
    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/world/ChunkSerializer;LOGGER:Lorg/slf4j/Logger;
      intermediary field_13001 Lnet/minecraft/class_2852;field_13001:Lorg/slf4j/Logger;
      official i Ldvq;i:Lorg/slf4j/Logger;
    • UPGRADE_DATA_KEY

      private static final String UPGRADE_DATA_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named UPGRADE_DATA_KEY Lnet/minecraft/world/ChunkSerializer;UPGRADE_DATA_KEY:Ljava/lang/String;
      intermediary field_31413 Lnet/minecraft/class_2852;field_31413:Ljava/lang/String;
      official j Ldvq;j:Ljava/lang/String;
    • BLOCK_TICKS

      private static final String BLOCK_TICKS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BLOCK_TICKS Lnet/minecraft/world/ChunkSerializer;BLOCK_TICKS:Ljava/lang/String;
      intermediary field_35476 Lnet/minecraft/class_2852;field_35476:Ljava/lang/String;
      official k Ldvq;k:Ljava/lang/String;
    • FLUID_TICKS

      private static final String FLUID_TICKS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named FLUID_TICKS Lnet/minecraft/world/ChunkSerializer;FLUID_TICKS:Ljava/lang/String;
      intermediary field_35477 Lnet/minecraft/class_2852;field_35477:Ljava/lang/String;
      official l Ldvq;l:Ljava/lang/String;
    • X_POS_KEY

      public static final String X_POS_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named X_POS_KEY Lnet/minecraft/world/ChunkSerializer;X_POS_KEY:Ljava/lang/String;
      intermediary field_37659 Lnet/minecraft/class_2852;field_37659:Ljava/lang/String;
      official a Ldvq;a:Ljava/lang/String;
    • Z_POS_KEY

      public static final String Z_POS_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named Z_POS_KEY Lnet/minecraft/world/ChunkSerializer;Z_POS_KEY:Ljava/lang/String;
      intermediary field_37660 Lnet/minecraft/class_2852;field_37660:Ljava/lang/String;
      official b Ldvq;b:Ljava/lang/String;
    • HEIGHTMAPS_KEY

      public static final String HEIGHTMAPS_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named HEIGHTMAPS_KEY Lnet/minecraft/world/ChunkSerializer;HEIGHTMAPS_KEY:Ljava/lang/String;
      intermediary field_37661 Lnet/minecraft/class_2852;field_37661:Ljava/lang/String;
      official c Ldvq;c:Ljava/lang/String;
    • IS_LIGHT_ON_KEY

      public static final String IS_LIGHT_ON_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named IS_LIGHT_ON_KEY Lnet/minecraft/world/ChunkSerializer;IS_LIGHT_ON_KEY:Ljava/lang/String;
      intermediary field_37662 Lnet/minecraft/class_2852;field_37662:Ljava/lang/String;
      official d Ldvq;d:Ljava/lang/String;
    • SECTIONS_KEY

      public static final String SECTIONS_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SECTIONS_KEY Lnet/minecraft/world/ChunkSerializer;SECTIONS_KEY:Ljava/lang/String;
      intermediary field_37663 Lnet/minecraft/class_2852;field_37663:Ljava/lang/String;
      official e Ldvq;e:Ljava/lang/String;
    • BLOCK_LIGHT_KEY

      public static final String BLOCK_LIGHT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BLOCK_LIGHT_KEY Lnet/minecraft/world/ChunkSerializer;BLOCK_LIGHT_KEY:Ljava/lang/String;
      intermediary field_37664 Lnet/minecraft/class_2852;field_37664:Ljava/lang/String;
      official f Ldvq;f:Ljava/lang/String;
    • SKY_LIGHT_KEY

      public static final String SKY_LIGHT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SKY_LIGHT_KEY Lnet/minecraft/world/ChunkSerializer;SKY_LIGHT_KEY:Ljava/lang/String;
      intermediary field_37665 Lnet/minecraft/class_2852;field_37665:Ljava/lang/String;
      official g Ldvq;g:Ljava/lang/String;
  • Constructor Details

    • ChunkSerializer

      public ChunkSerializer()
  • Method Details

    • deserialize

      public static ProtoChunk deserialize(ServerWorld world, PointOfInterestStorage poiStorage, ChunkPos chunkPos, NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      named deserialize Lnet/minecraft/world/ChunkSerializer;deserialize(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/poi/PointOfInterestStorage;Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/world/chunk/ProtoChunk;
      intermediary method_12395 Lnet/minecraft/class_2852;method_12395(Lnet/minecraft/class_3218;Lnet/minecraft/class_4153;Lnet/minecraft/class_1923;Lnet/minecraft/class_2487;)Lnet/minecraft/class_2839;
      official a Ldvq;a(Laqm;Lceg;Ldbn;Ltx;)Ldvb;
    • logRecoverableError

      private static void logRecoverableError(ChunkPos chunkPos, int y, String message)
      Mappings:
      Namespace Name Mixin selector
      named logRecoverableError Lnet/minecraft/world/ChunkSerializer;logRecoverableError(Lnet/minecraft/util/math/ChunkPos;ILjava/lang/String;)V
      intermediary method_39035 Lnet/minecraft/class_2852;method_39035(Lnet/minecraft/class_1923;ILjava/lang/String;)V
      official a Ldvq;a(Ldbn;ILjava/lang/String;)V
    • createCodec

      private static com.mojang.serialization.Codec<ReadableContainer<RegistryEntry<Biome>>> createCodec(Registry<Biome> biomeRegistry)
      Mappings:
      Namespace Name Mixin selector
      named createCodec Lnet/minecraft/world/ChunkSerializer;createCodec(Lnet/minecraft/registry/Registry;)Lcom/mojang/serialization/Codec;
      intermediary method_39036 Lnet/minecraft/class_2852;method_39036(Lnet/minecraft/class_2378;)Lcom/mojang/serialization/Codec;
      official a Ldvq;a(Ljw;)Lcom/mojang/serialization/Codec;
    • serialize

      public static NbtCompound serialize(ServerWorld world, Chunk chunk)
      Mappings:
      Namespace Name Mixin selector
      named serialize Lnet/minecraft/world/ChunkSerializer;serialize(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/chunk/Chunk;)Lnet/minecraft/nbt/NbtCompound;
      intermediary method_12410 Lnet/minecraft/class_2852;method_12410(Lnet/minecraft/class_3218;Lnet/minecraft/class_2791;)Lnet/minecraft/class_2487;
      official a Ldvq;a(Laqm;Lduh;)Ltx;
    • serializeTicks

      private static void serializeTicks(ServerWorld world, NbtCompound nbt, Chunk.TickSchedulers tickSchedulers)
      Mappings:
      Namespace Name Mixin selector
      named serializeTicks Lnet/minecraft/world/ChunkSerializer;serializeTicks(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/world/chunk/Chunk$TickSchedulers;)V
      intermediary method_39311 Lnet/minecraft/class_2852;method_39311(Lnet/minecraft/class_3218;Lnet/minecraft/class_2487;Lnet/minecraft/class_2791$class_6745;)V
      official a Ldvq;a(Laqm;Ltx;Lduh$a;)V
    • getChunkType

      public static ChunkType getChunkType(@Nullable @Nullable NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      named getChunkType Lnet/minecraft/world/ChunkSerializer;getChunkType(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/world/chunk/ChunkType;
      intermediary method_12377 Lnet/minecraft/class_2852;method_12377(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2808;
      official a Ldvq;a(Ltx;)Ldvm;
    • getEntityLoadingCallback

      @Nullable private static WorldChunk.EntityLoader getEntityLoadingCallback(ServerWorld world, NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      named getEntityLoadingCallback Lnet/minecraft/world/ChunkSerializer;getEntityLoadingCallback(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/world/chunk/WorldChunk$EntityLoader;
      intermediary method_12386 Lnet/minecraft/class_2852;method_12386(Lnet/minecraft/class_3218;Lnet/minecraft/class_2487;)Lnet/minecraft/class_2818$class_6829;
      official a Ldvq;a(Laqm;Ltx;)Ldur$c;
    • getList

      @Nullable private static @Nullable NbtList getList(NbtCompound nbt, String key)
      Mappings:
      Namespace Name Mixin selector
      named getList Lnet/minecraft/world/ChunkSerializer;getList(Lnet/minecraft/nbt/NbtCompound;Ljava/lang/String;)Lnet/minecraft/nbt/NbtList;
      intermediary method_39796 Lnet/minecraft/class_2852;method_39796(Lnet/minecraft/class_2487;Ljava/lang/String;)Lnet/minecraft/class_2499;
      official a Ldvq;a(Ltx;Ljava/lang/String;)Lud;
    • writeStructures

      private static NbtCompound writeStructures(StructureContext context, ChunkPos pos, Map<Structure,StructureStart> starts, Map<Structure,LongSet> references)
      Mappings:
      Namespace Name Mixin selector
      named writeStructures Lnet/minecraft/world/ChunkSerializer;writeStructures(Lnet/minecraft/structure/StructureContext;Lnet/minecraft/util/math/ChunkPos;Ljava/util/Map;Ljava/util/Map;)Lnet/minecraft/nbt/NbtCompound;
      intermediary method_12385 Lnet/minecraft/class_2852;method_12385(Lnet/minecraft/class_6625;Lnet/minecraft/class_1923;Ljava/util/Map;Ljava/util/Map;)Lnet/minecraft/class_2487;
      official a Ldvq;a(Lejn;Ldbn;Ljava/util/Map;Ljava/util/Map;)Ltx;
    • readStructureStarts

      private static Map<Structure,StructureStart> readStructureStarts(StructureContext context, NbtCompound nbt, long worldSeed)
      Mappings:
      Namespace Name Mixin selector
      named readStructureStarts Lnet/minecraft/world/ChunkSerializer;readStructureStarts(Lnet/minecraft/structure/StructureContext;Lnet/minecraft/nbt/NbtCompound;J)Ljava/util/Map;
      intermediary method_12392 Lnet/minecraft/class_2852;method_12392(Lnet/minecraft/class_6625;Lnet/minecraft/class_2487;J)Ljava/util/Map;
      official a Ldvq;a(Lejn;Ltx;J)Ljava/util/Map;
    • readStructureReferences

      private static Map<Structure,LongSet> readStructureReferences(DynamicRegistryManager registryManager, ChunkPos pos, NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      named readStructureReferences Lnet/minecraft/world/ChunkSerializer;readStructureReferences(Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/nbt/NbtCompound;)Ljava/util/Map;
      intermediary method_12387 Lnet/minecraft/class_2852;method_12387(Lnet/minecraft/class_5455;Lnet/minecraft/class_1923;Lnet/minecraft/class_2487;)Ljava/util/Map;
      official a Ldvq;a(Ljx;Ldbn;Ltx;)Ljava/util/Map;
    • toNbt

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