Package net.minecraft.world
Record Class ChunkSerializer
java.lang.Object
java.lang.Record
net.minecraft.world.ChunkSerializer
- Record Components:
biomeRegistry-chunkPos-minSectionY-lastUpdateTime-inhabitedTime-chunkStatus-blendingData-belowZeroRetrogen-upgradeData-carvingMask-heightmaps-packedTicks-postProcessingSections-lightCorrect-sectionData-entities-blockEntities-structureData-
public record ChunkSerializer(Registry<Biome> biomeRegistry, ChunkPos chunkPos, int minSectionY, long lastUpdateTime, long inhabitedTime, ChunkStatus chunkStatus, BlendingData.class_9899 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<ChunkSerializer.class_9898> sectionData, List<NbtCompound> entities, List<NbtCompound> blockEntities, NbtCompound structureData)
extends Record
- Mappings:
Namespace Name named net/minecraft/world/ChunkSerializerintermediary net/minecraft/class_2852official dxrnamed biomeRegistryintermediary comp_2945official hnamed chunkPosintermediary comp_2946official inamed minSectionYintermediary comp_2947official jnamed lastUpdateTimeintermediary comp_2948official knamed inhabitedTimeintermediary comp_2949official lnamed chunkStatusintermediary comp_2950official mnamed blendingDataintermediary comp_2951official nnamed belowZeroRetrogenintermediary comp_2952official onamed upgradeDataintermediary comp_2953official pnamed carvingMaskintermediary comp_2954official qnamed heightmapsintermediary comp_2955official rnamed packedTicksintermediary comp_2956official snamed postProcessingSectionsintermediary comp_2957official tnamed lightCorrectintermediary comp_2958official unamed sectionDataintermediary comp_2959official vnamed entitiesintermediary comp_2960official wnamed blockEntitiesintermediary comp_2961official xnamed structureDataintermediary comp_2962official y
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable BelowZeroRetrogenThe field for thebelowZeroRetrogenrecord component.The field for thebiomeRegistryrecord component.private final BlendingData.class_9899The field for theblendingDatarecord component.static final Stringprivate static final Stringprivate final List<NbtCompound> The field for theblockEntitiesrecord component.private final @org.jetbrains.annotations.Nullable long[]The field for thecarvingMaskrecord component.private final ChunkPosThe field for thechunkPosrecord component.private final ChunkStatusThe field for thechunkStatusrecord component.private static final com.mojang.serialization.Codec<PalettedContainer<BlockState>> private final List<NbtCompound> The field for theentitiesrecord component.private static final Stringprivate final Map<Heightmap.Type, long[]> The field for theheightmapsrecord component.static final Stringprivate final longThe field for theinhabitedTimerecord component.static final Stringprivate final longThe field for thelastUpdateTimerecord component.private final booleanThe field for thelightCorrectrecord component.private static final Loggerprivate final intThe field for theminSectionYrecord component.private final Chunk.TickSchedulersThe field for thepackedTicksrecord component.private final ShortList[]The field for thepostProcessingSectionsrecord component.private final List<ChunkSerializer.class_9898> The field for thesectionDatarecord component.static final Stringstatic final Stringprivate final NbtCompoundThe field for thestructureDatarecord component.private static final Stringprivate final UpgradeDataThe field for theupgradeDatarecord component.static final Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionChunkSerializer(Registry<Biome> registry, ChunkPos chunkPos, int int2, long long2, long long3, ChunkStatus chunkStatus, BlendingData.class_9899 class_9899, @Nullable BelowZeroRetrogen belowZeroRetrogen, UpgradeData upgradeData, @org.jetbrains.annotations.Nullable long[] long4, Map<Heightmap.Type, long[]> map, Chunk.TickSchedulers tickSchedulers, ShortList[] shortList, boolean bool, List<ChunkSerializer.class_9898> list, List<NbtCompound> list2, List<NbtCompound> list3, NbtCompound nbtCompound) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebelowZeroRetrogenrecord component.Returns the value of thebiomeRegistryrecord component.Returns the value of theblendingDatarecord component.Returns the value of theblockEntitiesrecord component.@org.jetbrains.annotations.Nullable long[]Returns the value of thecarvingMaskrecord component.chunkPos()Returns the value of thechunkPosrecord component.Returns the value of thechunkStatusrecord component.private static com.mojang.serialization.Codec<ReadableContainer<RegistryEntry<Biome>>> createCodec(Registry<Biome> biomeRegistry) deserialize(ServerWorld serverWorld, PointOfInterestStorage pointOfInterestStorage, StorageKey storageKey, ChunkPos chunkPos) entities()Returns the value of theentitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.static ChunkTypeprivate static WorldChunk.EntityLoadergetEntityLoadingCallback(ServerWorld world, List<NbtCompound> list, List<NbtCompound> list2) final inthashCode()Returns a hash code value for this object.Map<Heightmap.Type, long[]> Returns the value of theheightmapsrecord component.longReturns the value of theinhabitedTimerecord component.longReturns the value of thelastUpdateTimerecord component.booleanReturns the value of thelightCorrectrecord component.private static voidlogRecoverableError(ChunkPos chunkPos, int y, String message) static ChunkSerializermethod_61793(ServerWorld serverWorld, Chunk chunk) static @Nullable ChunkSerializermethod_61794(HeightLimitView heightLimitView, DynamicRegistryManager dynamicRegistryManager, NbtCompound nbtCompound) intReturns the value of theminSectionYrecord component.Returns the value of thepackedTicksrecord component.Returns the value of thepostProcessingSectionsrecord component.readStructureReferences(DynamicRegistryManager registryManager, ChunkPos pos, NbtCompound nbt) private static Map<Structure, StructureStart> readStructureStarts(StructureContext context, NbtCompound nbt, long worldSeed) Returns the value of thesectionDatarecord component.private static voidserializeTicks(NbtCompound nbtCompound, Chunk.TickSchedulers tickSchedulers) Returns the value of thestructureDatarecord component.private static NbtListfinal StringtoString()Returns a string representation of this record class.Returns the value of theupgradeDatarecord component.private static NbtCompoundwriteStructures(StructureContext context, ChunkPos pos, Map<Structure, StructureStart> starts, Map<Structure, LongSet> references)
-
Field Details
-
biomeRegistry
The field for thebiomeRegistryrecord component. -
chunkPos
The field for thechunkPosrecord component. -
minSectionY
private final int minSectionYThe field for theminSectionYrecord component. -
lastUpdateTime
private final long lastUpdateTimeThe field for thelastUpdateTimerecord component. -
inhabitedTime
private final long inhabitedTimeThe field for theinhabitedTimerecord component. -
chunkStatus
The field for thechunkStatusrecord component. -
blendingData
The field for theblendingDatarecord component. -
belowZeroRetrogen
The field for thebelowZeroRetrogenrecord component. -
upgradeData
The field for theupgradeDatarecord component. -
carvingMask
The field for thecarvingMaskrecord component. -
heightmaps
The field for theheightmapsrecord component. -
packedTicks
The field for thepackedTicksrecord component. -
postProcessingSections
The field for thepostProcessingSectionsrecord component. -
lightCorrect
private final boolean lightCorrectThe field for thelightCorrectrecord component. -
sectionData
The field for thesectionDatarecord component. -
entities
The field for theentitiesrecord component. -
blockEntities
The field for theblockEntitiesrecord component. -
structureData
The field for thestructureDatarecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/world/ChunkSerializer;CODEC:Lcom/mojang/serialization/Codec;intermediary field_34576Lnet/minecraft/class_2852;field_34576:Lcom/mojang/serialization/Codec;official zLdxr;z:Lcom/mojang/serialization/Codec;
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/world/ChunkSerializer;LOGGER:Lorg/slf4j/Logger;intermediary field_13001Lnet/minecraft/class_2852;field_13001:Lorg/slf4j/Logger;official ALdxr;A:Lorg/slf4j/Logger;
-
UPGRADE_DATA_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named UPGRADE_DATA_KEYLnet/minecraft/world/ChunkSerializer;UPGRADE_DATA_KEY:Ljava/lang/String;intermediary field_31413Lnet/minecraft/class_2852;field_31413:Ljava/lang/String;official BLdxr;B:Ljava/lang/String;
-
BLOCK_TICKS
- See Also:
- Mappings:
Namespace Name Mixin selector named BLOCK_TICKSLnet/minecraft/world/ChunkSerializer;BLOCK_TICKS:Ljava/lang/String;intermediary field_35476Lnet/minecraft/class_2852;field_35476:Ljava/lang/String;official CLdxr;C:Ljava/lang/String;
-
FLUID_TICKS
- See Also:
- Mappings:
Namespace Name Mixin selector named FLUID_TICKSLnet/minecraft/world/ChunkSerializer;FLUID_TICKS:Ljava/lang/String;intermediary field_35477Lnet/minecraft/class_2852;field_35477:Ljava/lang/String;official DLdxr;D:Ljava/lang/String;
-
X_POS_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named X_POS_KEYLnet/minecraft/world/ChunkSerializer;X_POS_KEY:Ljava/lang/String;intermediary field_37659Lnet/minecraft/class_2852;field_37659:Ljava/lang/String;official aLdxr;a:Ljava/lang/String;
-
Z_POS_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named Z_POS_KEYLnet/minecraft/world/ChunkSerializer;Z_POS_KEY:Ljava/lang/String;intermediary field_37660Lnet/minecraft/class_2852;field_37660:Ljava/lang/String;official bLdxr;b:Ljava/lang/String;
-
HEIGHTMAPS_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named HEIGHTMAPS_KEYLnet/minecraft/world/ChunkSerializer;HEIGHTMAPS_KEY:Ljava/lang/String;intermediary field_37661Lnet/minecraft/class_2852;field_37661:Ljava/lang/String;official cLdxr;c:Ljava/lang/String;
-
IS_LIGHT_ON_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named IS_LIGHT_ON_KEYLnet/minecraft/world/ChunkSerializer;IS_LIGHT_ON_KEY:Ljava/lang/String;intermediary field_37662Lnet/minecraft/class_2852;field_37662:Ljava/lang/String;official dLdxr;d:Ljava/lang/String;
-
SECTIONS_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named SECTIONS_KEYLnet/minecraft/world/ChunkSerializer;SECTIONS_KEY:Ljava/lang/String;intermediary field_37663Lnet/minecraft/class_2852;field_37663:Ljava/lang/String;official eLdxr;e:Ljava/lang/String;
-
BLOCK_LIGHT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named BLOCK_LIGHT_KEYLnet/minecraft/world/ChunkSerializer;BLOCK_LIGHT_KEY:Ljava/lang/String;intermediary field_37664Lnet/minecraft/class_2852;field_37664:Ljava/lang/String;official fLdxr;f:Ljava/lang/String;
-
SKY_LIGHT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named SKY_LIGHT_KEYLnet/minecraft/world/ChunkSerializer;SKY_LIGHT_KEY:Ljava/lang/String;intermediary field_37665Lnet/minecraft/class_2852;field_37665:Ljava/lang/String;official gLdxr;g:Ljava/lang/String;
-
-
Constructor Details
-
ChunkSerializer
public ChunkSerializer(Registry<Biome> registry, ChunkPos chunkPos, int int2, long long2, long long3, ChunkStatus chunkStatus, @Nullable BlendingData.class_9899 class_9899, @Nullable @Nullable BelowZeroRetrogen belowZeroRetrogen, UpgradeData upgradeData, @Nullable @org.jetbrains.annotations.Nullable long[] long4, Map<Heightmap.Type, long[]> map, Chunk.TickSchedulers tickSchedulers, ShortList[] shortList, boolean bool, List<ChunkSerializer.class_9898> list, List<NbtCompound> list2, List<NbtCompound> list3, NbtCompound nbtCompound)
-
-
Method Details
-
method_61794
@Nullable public static @Nullable ChunkSerializer method_61794(HeightLimitView heightLimitView, DynamicRegistryManager dynamicRegistryManager, NbtCompound nbtCompound) - Mappings:
Namespace Name Mixin selector named method_61794Lnet/minecraft/world/ChunkSerializer;method_61794(Lnet/minecraft/world/HeightLimitView;Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/world/ChunkSerializer;intermediary method_61794Lnet/minecraft/class_2852;method_61794(Lnet/minecraft/class_5539;Lnet/minecraft/class_5455;Lnet/minecraft/class_2487;)Lnet/minecraft/class_2852;official aLdxr;a(Lddu;Lkb;Luf;)Ldxr;
-
deserialize
public ProtoChunk deserialize(ServerWorld serverWorld, PointOfInterestStorage pointOfInterestStorage, StorageKey storageKey, ChunkPos chunkPos) - Mappings:
Namespace Name Mixin selector named deserializeLnet/minecraft/world/ChunkSerializer;deserialize(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_12395Lnet/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 aLdxr;a(Larg;Lcfi;Ldxp;Ldcy;)Ldwq;
-
logRecoverableError
- Mappings:
Namespace Name Mixin selector named logRecoverableErrorLnet/minecraft/world/ChunkSerializer;logRecoverableError(Lnet/minecraft/util/math/ChunkPos;ILjava/lang/String;)Vintermediary method_39035Lnet/minecraft/class_2852;method_39035(Lnet/minecraft/class_1923;ILjava/lang/String;)Vofficial aLdxr;a(Ldcy;ILjava/lang/String;)V
-
createCodec
private static com.mojang.serialization.Codec<ReadableContainer<RegistryEntry<Biome>>> createCodec(Registry<Biome> biomeRegistry) - Mappings:
Namespace Name Mixin selector named createCodecLnet/minecraft/world/ChunkSerializer;createCodec(Lnet/minecraft/registry/Registry;)Lcom/mojang/serialization/Codec;intermediary method_39036Lnet/minecraft/class_2852;method_39036(Lnet/minecraft/class_2378;)Lcom/mojang/serialization/Codec;official aLdxr;a(Lka;)Lcom/mojang/serialization/Codec;
-
method_61793
- Mappings:
Namespace Name Mixin selector named method_61793Lnet/minecraft/world/ChunkSerializer;method_61793(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/chunk/Chunk;)Lnet/minecraft/world/ChunkSerializer;intermediary method_61793Lnet/minecraft/class_2852;method_61793(Lnet/minecraft/class_3218;Lnet/minecraft/class_2791;)Lnet/minecraft/class_2852;official aLdxr;a(Larg;Ldvw;)Ldxr;
-
serialize
- Mappings:
Namespace Name Mixin selector named serializeLnet/minecraft/world/ChunkSerializer;serialize()Lnet/minecraft/nbt/NbtCompound;intermediary method_12410Lnet/minecraft/class_2852;method_12410()Lnet/minecraft/class_2487;official aLdxr;a()Luf;
-
serializeTicks
- Mappings:
Namespace Name Mixin selector named serializeTicksLnet/minecraft/world/ChunkSerializer;serializeTicks(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/world/chunk/Chunk$TickSchedulers;)Vintermediary method_39311Lnet/minecraft/class_2852;method_39311(Lnet/minecraft/class_2487;Lnet/minecraft/class_2791$class_6745;)Vofficial aLdxr;a(Luf;Ldvw$a;)V
-
getChunkType
- Mappings:
Namespace Name Mixin selector named getChunkTypeLnet/minecraft/world/ChunkSerializer;getChunkType(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/world/chunk/ChunkType;intermediary method_12377Lnet/minecraft/class_2852;method_12377(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2808;official aLdxr;a(Luf;)Ldxb;
-
getEntityLoadingCallback
@Nullable private static WorldChunk.EntityLoader getEntityLoadingCallback(ServerWorld world, List<NbtCompound> list, List<NbtCompound> list2) - Mappings:
Namespace Name Mixin selector named getEntityLoadingCallbackLnet/minecraft/world/ChunkSerializer;getEntityLoadingCallback(Lnet/minecraft/server/world/ServerWorld;Ljava/util/List;Ljava/util/List;)Lnet/minecraft/world/chunk/WorldChunk$EntityLoader;intermediary method_12386Lnet/minecraft/class_2852;method_12386(Lnet/minecraft/class_3218;Ljava/util/List;Ljava/util/List;)Lnet/minecraft/class_2818$class_6829;official aLdxr;a(Larg;Ljava/util/List;Ljava/util/List;)Ldwg$c;
-
writeStructures
private static NbtCompound writeStructures(StructureContext context, ChunkPos pos, Map<Structure, StructureStart> starts, Map<Structure, LongSet> references) - Mappings:
Namespace Name Mixin selector named writeStructuresLnet/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_12385Lnet/minecraft/class_2852;method_12385(Lnet/minecraft/class_6625;Lnet/minecraft/class_1923;Ljava/util/Map;Ljava/util/Map;)Lnet/minecraft/class_2487;official aLdxr;a(Lele;Ldcy;Ljava/util/Map;Ljava/util/Map;)Luf;
-
readStructureStarts
private static Map<Structure,StructureStart> readStructureStarts(StructureContext context, NbtCompound nbt, long worldSeed) - Mappings:
Namespace Name Mixin selector named readStructureStartsLnet/minecraft/world/ChunkSerializer;readStructureStarts(Lnet/minecraft/structure/StructureContext;Lnet/minecraft/nbt/NbtCompound;J)Ljava/util/Map;intermediary method_12392Lnet/minecraft/class_2852;method_12392(Lnet/minecraft/class_6625;Lnet/minecraft/class_2487;J)Ljava/util/Map;official aLdxr;a(Lele;Luf;J)Ljava/util/Map;
-
readStructureReferences
private static Map<Structure,LongSet> readStructureReferences(DynamicRegistryManager registryManager, ChunkPos pos, NbtCompound nbt) - Mappings:
Namespace Name Mixin selector named readStructureReferencesLnet/minecraft/world/ChunkSerializer;readStructureReferences(Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/nbt/NbtCompound;)Ljava/util/Map;intermediary method_12387Lnet/minecraft/class_2852;method_12387(Lnet/minecraft/class_5455;Lnet/minecraft/class_1923;Lnet/minecraft/class_2487;)Ljava/util/Map;official aLdxr;a(Lkb;Ldcy;Luf;)Ljava/util/Map;
-
toNbt
- Mappings:
Namespace Name Mixin selector named toNbtLnet/minecraft/world/ChunkSerializer;toNbt([Lit/unimi/dsi/fastutil/shorts/ShortList;)Lnet/minecraft/nbt/NbtList;intermediary method_12393Lnet/minecraft/class_2852;method_12393([Lit/unimi/dsi/fastutil/shorts/ShortList;)Lnet/minecraft/class_2499;official aLdxr;a([Lit/unimi/dsi/fastutil/shorts/ShortList;)Lul;
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
biomeRegistry
Returns the value of thebiomeRegistryrecord component.- Returns:
- the value of the
biomeRegistryrecord component
-
chunkPos
Returns the value of thechunkPosrecord component.- Returns:
- the value of the
chunkPosrecord component
-
minSectionY
public int minSectionY()Returns the value of theminSectionYrecord component.- Returns:
- the value of the
minSectionYrecord component
-
lastUpdateTime
public long lastUpdateTime()Returns the value of thelastUpdateTimerecord component.- Returns:
- the value of the
lastUpdateTimerecord component
-
inhabitedTime
public long inhabitedTime()Returns the value of theinhabitedTimerecord component.- Returns:
- the value of the
inhabitedTimerecord component
-
chunkStatus
Returns the value of thechunkStatusrecord component.- Returns:
- the value of the
chunkStatusrecord component
-
blendingData
Returns the value of theblendingDatarecord component.- Returns:
- the value of the
blendingDatarecord component
-
belowZeroRetrogen
Returns the value of thebelowZeroRetrogenrecord component.- Returns:
- the value of the
belowZeroRetrogenrecord component
-
upgradeData
Returns the value of theupgradeDatarecord component.- Returns:
- the value of the
upgradeDatarecord component
-
carvingMask
Returns the value of thecarvingMaskrecord component.- Returns:
- the value of the
carvingMaskrecord component
-
heightmaps
Returns the value of theheightmapsrecord component.- Returns:
- the value of the
heightmapsrecord component
-
packedTicks
Returns the value of thepackedTicksrecord component.- Returns:
- the value of the
packedTicksrecord component
-
postProcessingSections
Returns the value of thepostProcessingSectionsrecord component.- Returns:
- the value of the
postProcessingSectionsrecord component
-
lightCorrect
public boolean lightCorrect()Returns the value of thelightCorrectrecord component.- Returns:
- the value of the
lightCorrectrecord component
-
sectionData
Returns the value of thesectionDatarecord component.- Returns:
- the value of the
sectionDatarecord component
-
entities
Returns the value of theentitiesrecord component.- Returns:
- the value of the
entitiesrecord component
-
blockEntities
Returns the value of theblockEntitiesrecord component.- Returns:
- the value of the
blockEntitiesrecord component
-
structureData
Returns the value of thestructureDatarecord component.- Returns:
- the value of the
structureDatarecord component
-