Record Class SerializedChunk

java.lang.Object
java.lang.Record
net.minecraft.world.chunk.SerializedChunk
Record Components:
biomeRegistry -
chunkPos -
minSectionY -
lastUpdateTime -
inhabitedTime -
chunkStatus -
blendingData -
belowZeroRetrogen -
upgradeData -
carvingMask -
heightmaps -
packedTicks -
postProcessingSections -
lightCorrect -
sectionData -
entities -
blockEntities -
structureData -

public record SerializedChunk(Registry<Biome> biomeRegistry, ChunkPos chunkPos, int minSectionY, long lastUpdateTime, long inhabitedTime, ChunkStatus chunkStatus, BlendingData.Serialized blendingData, @Nullable BelowZeroRetrogen belowZeroRetrogen, UpgradeData upgradeData, @org.jetbrains.annotations.Nullable long[] carvingMask, Map<Heightmap.Type,long[]> heightmaps, Chunk.TickSchedulers packedTicks, ShortList[] postProcessingSections, boolean lightCorrect, List<SerializedChunk.SectionData> sectionData, List<NbtCompound> entities, List<NbtCompound> blockEntities, NbtCompound structureData) extends Record
Mappings:
Namespace Name
named net/minecraft/world/chunk/SerializedChunk
intermediary net/minecraft/class_2852
official ebk
named biomeRegistry
intermediary comp_2945
official h
named chunkPos
intermediary comp_2946
official i
named minSectionY
intermediary comp_2947
official j
named lastUpdateTime
intermediary comp_2948
official k
named inhabitedTime
intermediary comp_2949
official l
named chunkStatus
intermediary comp_2950
official m
named blendingData
intermediary comp_2951
official n
named belowZeroRetrogen
intermediary comp_2952
official o
named upgradeData
intermediary comp_2953
official p
named carvingMask
intermediary comp_2954
official q
named heightmaps
intermediary comp_2955
official r
named packedTicks
intermediary comp_2956
official s
named postProcessingSections
intermediary comp_2957
official t
named lightCorrect
intermediary comp_2958
official u
named sectionData
intermediary comp_2959
official v
named entities
intermediary comp_2960
official w
named blockEntities
intermediary comp_2961
official x
named structureData
intermediary comp_2962
official y
  • Field Details

    • biomeRegistry

      private final Registry<Biome> biomeRegistry
      The field for the biomeRegistry record component.
    • chunkPos

      private final ChunkPos chunkPos
      The field for the chunkPos record component.
    • minSectionY

      private final int minSectionY
      The field for the minSectionY record component.
    • lastUpdateTime

      private final long lastUpdateTime
      The field for the lastUpdateTime record component.
    • inhabitedTime

      private final long inhabitedTime
      The field for the inhabitedTime record component.
    • chunkStatus

      private final ChunkStatus chunkStatus
      The field for the chunkStatus record component.
    • blendingData

      @Nullable private final BlendingData.Serialized blendingData
      The field for the blendingData record component.
    • belowZeroRetrogen

      @Nullable private final @Nullable BelowZeroRetrogen belowZeroRetrogen
      The field for the belowZeroRetrogen record component.
    • upgradeData

      private final UpgradeData upgradeData
      The field for the upgradeData record component.
    • carvingMask

      @Nullable private final @org.jetbrains.annotations.Nullable long[] carvingMask
      The field for the carvingMask record component.
    • heightmaps

      private final Map<Heightmap.Type,long[]> heightmaps
      The field for the heightmaps record component.
    • packedTicks

      private final Chunk.TickSchedulers packedTicks
      The field for the packedTicks record component.
    • postProcessingSections

      private final ShortList[] postProcessingSections
      The field for the postProcessingSections record component.
    • lightCorrect

      private final boolean lightCorrect
      The field for the lightCorrect record component.
    • sectionData

      private final List<SerializedChunk.SectionData> sectionData
      The field for the sectionData record component.
    • entities

      private final List<NbtCompound> entities
      The field for the entities record component.
    • blockEntities

      private final List<NbtCompound> blockEntities
      The field for the blockEntities record component.
    • structureData

      private final NbtCompound structureData
      The field for the structureData record component.
    • CODEC

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

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/world/chunk/SerializedChunk;LOGGER:Lorg/slf4j/Logger;
      intermediary field_13001 Lnet/minecraft/class_2852;field_13001:Lorg/slf4j/Logger;
      official A Lebk;A: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/chunk/SerializedChunk;UPGRADE_DATA_KEY:Ljava/lang/String;
      intermediary field_31413 Lnet/minecraft/class_2852;field_31413:Ljava/lang/String;
      official B Lebk;B:Ljava/lang/String;
    • BLOCK_TICKS

      private static final String BLOCK_TICKS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BLOCK_TICKS Lnet/minecraft/world/chunk/SerializedChunk;BLOCK_TICKS:Ljava/lang/String;
      intermediary field_35476 Lnet/minecraft/class_2852;field_35476:Ljava/lang/String;
      official C Lebk;C:Ljava/lang/String;
    • FLUID_TICKS

      private static final String FLUID_TICKS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named FLUID_TICKS Lnet/minecraft/world/chunk/SerializedChunk;FLUID_TICKS:Ljava/lang/String;
      intermediary field_35477 Lnet/minecraft/class_2852;field_35477:Ljava/lang/String;
      official D Lebk;D: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/chunk/SerializedChunk;X_POS_KEY:Ljava/lang/String;
      intermediary field_37659 Lnet/minecraft/class_2852;field_37659:Ljava/lang/String;
      official a Lebk;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/chunk/SerializedChunk;Z_POS_KEY:Ljava/lang/String;
      intermediary field_37660 Lnet/minecraft/class_2852;field_37660:Ljava/lang/String;
      official b Lebk;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/chunk/SerializedChunk;HEIGHTMAPS_KEY:Ljava/lang/String;
      intermediary field_37661 Lnet/minecraft/class_2852;field_37661:Ljava/lang/String;
      official c Lebk;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/chunk/SerializedChunk;IS_LIGHT_ON_KEY:Ljava/lang/String;
      intermediary field_37662 Lnet/minecraft/class_2852;field_37662:Ljava/lang/String;
      official d Lebk;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/chunk/SerializedChunk;SECTIONS_KEY:Ljava/lang/String;
      intermediary field_37663 Lnet/minecraft/class_2852;field_37663:Ljava/lang/String;
      official e Lebk;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/chunk/SerializedChunk;BLOCK_LIGHT_KEY:Ljava/lang/String;
      intermediary field_37664 Lnet/minecraft/class_2852;field_37664:Ljava/lang/String;
      official f Lebk;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/chunk/SerializedChunk;SKY_LIGHT_KEY:Ljava/lang/String;
      intermediary field_37665 Lnet/minecraft/class_2852;field_37665:Ljava/lang/String;
      official g Lebk;g:Ljava/lang/String;
  • Constructor Details

  • Method Details

    • fromNbt

      @Nullable public static @Nullable SerializedChunk fromNbt(HeightLimitView world, DynamicRegistryManager registryManager, NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      named fromNbt Lnet/minecraft/world/chunk/SerializedChunk;fromNbt(Lnet/minecraft/world/HeightLimitView;Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/world/chunk/SerializedChunk;
      intermediary method_61794 Lnet/minecraft/class_2852;method_61794(Lnet/minecraft/class_5539;Lnet/minecraft/class_5455;Lnet/minecraft/class_2487;)Lnet/minecraft/class_2852;
      official a Lebk;a(Ldhj;Lke;Lux;)Lebk;
    • convert

      public ProtoChunk convert(ServerWorld world, PointOfInterestStorage poiStorage, StorageKey key, ChunkPos expectedPos)
      Mappings:
      Namespace Name Mixin selector
      named convert Lnet/minecraft/world/chunk/SerializedChunk;convert(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/poi/PointOfInterestStorage;Lnet/minecraft/world/storage/StorageKey;Lnet/minecraft/util/math/ChunkPos;)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_9240;Lnet/minecraft/class_1923;)Lnet/minecraft/class_2839;
      official a Lebk;a(Lash;Lchj;Lebi;Ldgn;)Leaj;
    • logRecoverableError

      private static void logRecoverableError(ChunkPos chunkPos, int y, String message)
      Mappings:
      Namespace Name Mixin selector
      named logRecoverableError Lnet/minecraft/world/chunk/SerializedChunk;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 Lebk;a(Ldgn;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/chunk/SerializedChunk;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 Lebk;a(Lkd;)Lcom/mojang/serialization/Codec;
    • fromChunk

      public static SerializedChunk fromChunk(ServerWorld world, Chunk chunk)
      Mappings:
      Namespace Name Mixin selector
      named fromChunk Lnet/minecraft/world/chunk/SerializedChunk;fromChunk(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/chunk/Chunk;)Lnet/minecraft/world/chunk/SerializedChunk;
      intermediary method_61793 Lnet/minecraft/class_2852;method_61793(Lnet/minecraft/class_3218;Lnet/minecraft/class_2791;)Lnet/minecraft/class_2852;
      official a Lebk;a(Lash;Ldzp;)Lebk;
    • serialize

      public NbtCompound serialize()
      Mappings:
      Namespace Name Mixin selector
      named serialize Lnet/minecraft/world/chunk/SerializedChunk;serialize()Lnet/minecraft/nbt/NbtCompound;
      intermediary method_12410 Lnet/minecraft/class_2852;method_12410()Lnet/minecraft/class_2487;
      official a Lebk;a()Lux;
    • serializeTicks

      private static void serializeTicks(NbtCompound nbt, Chunk.TickSchedulers schedulers)
      Mappings:
      Namespace Name Mixin selector
      named serializeTicks Lnet/minecraft/world/chunk/SerializedChunk;serializeTicks(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/world/chunk/Chunk$TickSchedulers;)V
      intermediary method_39311 Lnet/minecraft/class_2852;method_39311(Lnet/minecraft/class_2487;Lnet/minecraft/class_2791$class_6745;)V
      official a Lebk;a(Lux;Ldzp$a;)V
    • getChunkType

      public static ChunkType getChunkType(@Nullable @Nullable NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      named getChunkType Lnet/minecraft/world/chunk/SerializedChunk;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 Lebk;a(Lux;)Leau;
    • getEntityLoadingCallback

      @Nullable private static WorldChunk.EntityLoader getEntityLoadingCallback(ServerWorld world, List<NbtCompound> entities, List<NbtCompound> blockEntities)
      Mappings:
      Namespace Name Mixin selector
      named getEntityLoadingCallback Lnet/minecraft/world/chunk/SerializedChunk;getEntityLoadingCallback(Lnet/minecraft/server/world/ServerWorld;Ljava/util/List;Ljava/util/List;)Lnet/minecraft/world/chunk/WorldChunk$EntityLoader;
      intermediary method_12386 Lnet/minecraft/class_2852;method_12386(Lnet/minecraft/class_3218;Ljava/util/List;Ljava/util/List;)Lnet/minecraft/class_2818$class_6829;
      official a Lebk;a(Lash;Ljava/util/List;Ljava/util/List;)Ldzz$c;
    • 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/chunk/SerializedChunk;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 Lebk;a(Leoz;Ldgn;Ljava/util/Map;Ljava/util/Map;)Lux;
    • readStructureStarts

      private static Map<Structure,StructureStart> readStructureStarts(StructureContext context, NbtCompound nbt, long worldSeed)
      Mappings:
      Namespace Name Mixin selector
      named readStructureStarts Lnet/minecraft/world/chunk/SerializedChunk;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 Lebk;a(Leoz;Lux;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/chunk/SerializedChunk;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 Lebk;a(Lke;Ldgn;Lux;)Ljava/util/Map;
    • toNbt

      private static NbtList toNbt(ShortList[] lists)
      Mappings:
      Namespace Name Mixin selector
      named toNbt Lnet/minecraft/world/chunk/SerializedChunk;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 Lebk;a([Lit/unimi/dsi/fastutil/shorts/ShortList;)Lvd;
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • biomeRegistry

      public Registry<Biome> biomeRegistry()
      Returns the value of the biomeRegistry record component.
      Returns:
      the value of the biomeRegistry record component
    • chunkPos

      public ChunkPos chunkPos()
      Returns the value of the chunkPos record component.
      Returns:
      the value of the chunkPos record component
    • minSectionY

      public int minSectionY()
      Returns the value of the minSectionY record component.
      Returns:
      the value of the minSectionY record component
    • lastUpdateTime

      public long lastUpdateTime()
      Returns the value of the lastUpdateTime record component.
      Returns:
      the value of the lastUpdateTime record component
    • inhabitedTime

      public long inhabitedTime()
      Returns the value of the inhabitedTime record component.
      Returns:
      the value of the inhabitedTime record component
    • chunkStatus

      public ChunkStatus chunkStatus()
      Returns the value of the chunkStatus record component.
      Returns:
      the value of the chunkStatus record component
    • blendingData

      @Nullable public BlendingData.Serialized blendingData()
      Returns the value of the blendingData record component.
      Returns:
      the value of the blendingData record component
    • belowZeroRetrogen

      @Nullable public @Nullable BelowZeroRetrogen belowZeroRetrogen()
      Returns the value of the belowZeroRetrogen record component.
      Returns:
      the value of the belowZeroRetrogen record component
    • upgradeData

      public UpgradeData upgradeData()
      Returns the value of the upgradeData record component.
      Returns:
      the value of the upgradeData record component
    • carvingMask

      @Nullable public @org.jetbrains.annotations.Nullable long[] carvingMask()
      Returns the value of the carvingMask record component.
      Returns:
      the value of the carvingMask record component
    • heightmaps

      public Map<Heightmap.Type,long[]> heightmaps()
      Returns the value of the heightmaps record component.
      Returns:
      the value of the heightmaps record component
    • packedTicks

      public Chunk.TickSchedulers packedTicks()
      Returns the value of the packedTicks record component.
      Returns:
      the value of the packedTicks record component
    • postProcessingSections

      public ShortList[] postProcessingSections()
      Returns the value of the postProcessingSections record component.
      Returns:
      the value of the postProcessingSections record component
    • lightCorrect

      public boolean lightCorrect()
      Returns the value of the lightCorrect record component.
      Returns:
      the value of the lightCorrect record component
    • sectionData

      public List<SerializedChunk.SectionData> sectionData()
      Returns the value of the sectionData record component.
      Returns:
      the value of the sectionData record component
    • entities

      public List<NbtCompound> entities()
      Returns the value of the entities record component.
      Returns:
      the value of the entities record component
    • blockEntities

      public List<NbtCompound> blockEntities()
      Returns the value of the blockEntities record component.
      Returns:
      the value of the blockEntities record component
    • structureData

      public NbtCompound structureData()
      Returns the value of the structureData record component.
      Returns:
      the value of the structureData record component