Package net.minecraft.world.chunk
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/SerializedChunkintermediary net/minecraft/class_2852official efinamed 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.SerializedThe 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<SerializedChunk.SectionData> 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
ConstructorsConstructorDescriptionSerializedChunk(Registry<Biome> registry, ChunkPos chunkPos, int int2, long long2, long long3, ChunkStatus chunkStatus, BlendingData.Serialized serialized, @Nullable BelowZeroRetrogen belowZeroRetrogen, UpgradeData upgradeData, @org.jetbrains.annotations.Nullable long[] long4, Map<Heightmap.Type, long[]> map, Chunk.TickSchedulers tickSchedulers, ShortList[] shortList, boolean bool, List<SerializedChunk.SectionData> 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.convert(ServerWorld world, PointOfInterestStorage poiStorage, StorageKey key, ChunkPos expectedPos) private static com.mojang.serialization.Codec<ReadableContainer<RegistryEntry<Biome>>> createCodec(Registry<Biome> biomeRegistry) entities()Returns the value of theentitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.static SerializedChunkfromChunk(ServerWorld world, Chunk chunk) static @Nullable SerializedChunkfromNbt(HeightLimitView world, DynamicRegistryManager registryManager, NbtCompound nbt) static ChunkStatusprivate static WorldChunk.EntityLoadergetEntityLoadingCallback(ServerWorld world, List<NbtCompound> entities, List<NbtCompound> blockEntities) 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) 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 nbt, Chunk.TickSchedulers schedulers) 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/chunk/SerializedChunk;CODEC:Lcom/mojang/serialization/Codec;intermediary field_34576Lnet/minecraft/class_2852;field_34576:Lcom/mojang/serialization/Codec;official zLefi;z:Lcom/mojang/serialization/Codec;
-
BLOCK_TICKS_CODEC
- Mappings:
Namespace Name Mixin selector named BLOCK_TICKS_CODECLnet/minecraft/world/chunk/SerializedChunk;BLOCK_TICKS_CODEC:Lcom/mojang/serialization/Codec;intermediary field_56677Lnet/minecraft/class_2852;field_56677:Lcom/mojang/serialization/Codec;official ALefi;A:Lcom/mojang/serialization/Codec;
-
FLUID_TICKS_CODEC
- Mappings:
Namespace Name Mixin selector named FLUID_TICKS_CODECLnet/minecraft/world/chunk/SerializedChunk;FLUID_TICKS_CODEC:Lcom/mojang/serialization/Codec;intermediary field_56678Lnet/minecraft/class_2852;field_56678:Lcom/mojang/serialization/Codec;official BLefi;B:Lcom/mojang/serialization/Codec;
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/world/chunk/SerializedChunk;LOGGER:Lorg/slf4j/Logger;intermediary field_13001Lnet/minecraft/class_2852;field_13001:Lorg/slf4j/Logger;official CLefi;C:Lorg/slf4j/Logger;
-
UPGRADE_DATA_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named UPGRADE_DATA_KEYLnet/minecraft/world/chunk/SerializedChunk;UPGRADE_DATA_KEY:Ljava/lang/String;intermediary field_31413Lnet/minecraft/class_2852;field_31413:Ljava/lang/String;official DLefi;D:Ljava/lang/String;
-
BLOCK_TICKS
- See Also:
- Mappings:
Namespace Name Mixin selector named BLOCK_TICKSLnet/minecraft/world/chunk/SerializedChunk;BLOCK_TICKS:Ljava/lang/String;intermediary field_35476Lnet/minecraft/class_2852;field_35476:Ljava/lang/String;official ELefi;E:Ljava/lang/String;
-
FLUID_TICKS
- See Also:
- Mappings:
Namespace Name Mixin selector named FLUID_TICKSLnet/minecraft/world/chunk/SerializedChunk;FLUID_TICKS:Ljava/lang/String;intermediary field_35477Lnet/minecraft/class_2852;field_35477:Ljava/lang/String;official FLefi;F:Ljava/lang/String;
-
X_POS_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named X_POS_KEYLnet/minecraft/world/chunk/SerializedChunk;X_POS_KEY:Ljava/lang/String;intermediary field_37659Lnet/minecraft/class_2852;field_37659:Ljava/lang/String;official aLefi;a:Ljava/lang/String;
-
Z_POS_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named Z_POS_KEYLnet/minecraft/world/chunk/SerializedChunk;Z_POS_KEY:Ljava/lang/String;intermediary field_37660Lnet/minecraft/class_2852;field_37660:Ljava/lang/String;official bLefi;b:Ljava/lang/String;
-
HEIGHTMAPS_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named HEIGHTMAPS_KEYLnet/minecraft/world/chunk/SerializedChunk;HEIGHTMAPS_KEY:Ljava/lang/String;intermediary field_37661Lnet/minecraft/class_2852;field_37661:Ljava/lang/String;official cLefi;c:Ljava/lang/String;
-
IS_LIGHT_ON_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named IS_LIGHT_ON_KEYLnet/minecraft/world/chunk/SerializedChunk;IS_LIGHT_ON_KEY:Ljava/lang/String;intermediary field_37662Lnet/minecraft/class_2852;field_37662:Ljava/lang/String;official dLefi;d:Ljava/lang/String;
-
SECTIONS_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named SECTIONS_KEYLnet/minecraft/world/chunk/SerializedChunk;SECTIONS_KEY:Ljava/lang/String;intermediary field_37663Lnet/minecraft/class_2852;field_37663:Ljava/lang/String;official eLefi;e:Ljava/lang/String;
-
BLOCK_LIGHT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named BLOCK_LIGHT_KEYLnet/minecraft/world/chunk/SerializedChunk;BLOCK_LIGHT_KEY:Ljava/lang/String;intermediary field_37664Lnet/minecraft/class_2852;field_37664:Ljava/lang/String;official fLefi;f:Ljava/lang/String;
-
SKY_LIGHT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named SKY_LIGHT_KEYLnet/minecraft/world/chunk/SerializedChunk;SKY_LIGHT_KEY:Ljava/lang/String;intermediary field_37665Lnet/minecraft/class_2852;field_37665:Ljava/lang/String;official gLefi;g:Ljava/lang/String;
-
-
Constructor Details
-
SerializedChunk
public SerializedChunk(Registry<Biome> registry, ChunkPos chunkPos, int int2, long long2, long long3, ChunkStatus chunkStatus, @Nullable BlendingData.Serialized serialized, @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<SerializedChunk.SectionData> list, List<NbtCompound> list2, List<NbtCompound> list3, NbtCompound nbtCompound)
-
-
Method Details
-
fromNbt
@Nullable public static @Nullable SerializedChunk fromNbt(HeightLimitView world, DynamicRegistryManager registryManager, NbtCompound nbt) - Mappings:
Namespace Name Mixin selector named fromNbtLnet/minecraft/world/chunk/SerializedChunk;fromNbt(Lnet/minecraft/world/HeightLimitView;Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/world/chunk/SerializedChunk;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 aLefi;a(Ldkl;Lju;Lua;)Lefi;
-
convert
public ProtoChunk convert(ServerWorld world, PointOfInterestStorage poiStorage, StorageKey key, ChunkPos expectedPos) - Mappings:
Namespace Name Mixin selector named convertLnet/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_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 aLefi;a(Lasb;Lcjh;Lefg;Ldjo;)Leeh;
-
logRecoverableError
- Mappings:
Namespace Name Mixin selector named logRecoverableErrorLnet/minecraft/world/chunk/SerializedChunk;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 aLefi;a(Ldjo;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/chunk/SerializedChunk;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 aLefi;a(Ljt;)Lcom/mojang/serialization/Codec;
-
fromChunk
- Mappings:
Namespace Name Mixin selector named fromChunkLnet/minecraft/world/chunk/SerializedChunk;fromChunk(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/chunk/Chunk;)Lnet/minecraft/world/chunk/SerializedChunk;intermediary method_61793Lnet/minecraft/class_2852;method_61793(Lnet/minecraft/class_3218;Lnet/minecraft/class_2791;)Lnet/minecraft/class_2852;official aLefi;a(Lasb;Ledn;)Lefi;
-
serialize
- Mappings:
Namespace Name Mixin selector named serializeLnet/minecraft/world/chunk/SerializedChunk;serialize()Lnet/minecraft/nbt/NbtCompound;intermediary method_12410Lnet/minecraft/class_2852;method_12410()Lnet/minecraft/class_2487;official aLefi;a()Lua;
-
serializeTicks
- Mappings:
Namespace Name Mixin selector named serializeTicksLnet/minecraft/world/chunk/SerializedChunk;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 aLefi;a(Lua;Ledn$a;)V
-
getChunkStatus
- Mappings:
Namespace Name Mixin selector named getChunkStatusLnet/minecraft/world/chunk/SerializedChunk;getChunkStatus(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/world/chunk/ChunkStatus;intermediary method_67685Lnet/minecraft/class_2852;method_67685(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2806;official aLefi;a(Lua;)Leeo;
-
getEntityLoadingCallback
@Nullable private static WorldChunk.EntityLoader getEntityLoadingCallback(ServerWorld world, List<NbtCompound> entities, List<NbtCompound> blockEntities) - Mappings:
Namespace Name Mixin selector named getEntityLoadingCallbackLnet/minecraft/world/chunk/SerializedChunk;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 aLefi;a(Lasb;Ljava/util/List;Ljava/util/List;)Ledx$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/chunk/SerializedChunk;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 aLefi;a(Letd;Ldjo;Ljava/util/Map;Ljava/util/Map;)Lua;
-
readStructureStarts
private static Map<Structure,StructureStart> readStructureStarts(StructureContext context, NbtCompound nbt, long worldSeed) - Mappings:
Namespace Name Mixin selector named readStructureStartsLnet/minecraft/world/chunk/SerializedChunk;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 aLefi;a(Letd;Lua;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/chunk/SerializedChunk;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 aLefi;a(Lju;Ldjo;Lua;)Ljava/util/Map;
-
toNbt
- Mappings:
Namespace Name Mixin selector named toNbtLnet/minecraft/world/chunk/SerializedChunk;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 aLefi;a([Lit/unimi/dsi/fastutil/shorts/ShortList;)Lug;
-
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
-