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/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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final @Nullable BelowZeroRetrogen
The field for thebelowZeroRetrogen
record component.The field for thebiomeRegistry
record component.private final BlendingData.Serialized
The field for theblendingData
record component.static final String
private static final String
private final List
<NbtCompound> The field for theblockEntities
record component.private final @org.jetbrains.annotations.Nullable long[]
The field for thecarvingMask
record component.private final ChunkPos
The field for thechunkPos
record component.private final ChunkStatus
The field for thechunkStatus
record component.private static final com.mojang.serialization.Codec
<PalettedContainer<BlockState>> private final List
<NbtCompound> The field for theentities
record component.private static final String
private final Map
<Heightmap.Type, long[]> The field for theheightmaps
record component.static final String
private final long
The field for theinhabitedTime
record component.static final String
private final long
The field for thelastUpdateTime
record component.private final boolean
The field for thelightCorrect
record component.private static final Logger
private final int
The field for theminSectionY
record component.private final Chunk.TickSchedulers
The field for thepackedTicks
record component.private final ShortList[]
The field for thepostProcessingSections
record component.private final List
<SerializedChunk.SectionData> The field for thesectionData
record component.static final String
static final String
private final NbtCompound
The field for thestructureData
record component.private static final String
private final UpgradeData
The field for theupgradeData
record component.static final String
static final String
-
Constructor Summary
ConstructorDescriptionSerializedChunk
(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 thebelowZeroRetrogen
record component.Returns the value of thebiomeRegistry
record component.Returns the value of theblendingData
record component.Returns the value of theblockEntities
record component.@org.jetbrains.annotations.Nullable long[]
Returns the value of thecarvingMask
record component.chunkPos()
Returns the value of thechunkPos
record component.Returns the value of thechunkStatus
record 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 theentities
record component.final boolean
Indicates whether some other object is "equal to" this one.static SerializedChunk
fromChunk
(ServerWorld world, Chunk chunk) static @Nullable SerializedChunk
fromNbt
(HeightLimitView world, DynamicRegistryManager registryManager, NbtCompound nbt) static ChunkType
private static WorldChunk.EntityLoader
getEntityLoadingCallback
(ServerWorld world, List<NbtCompound> entities, List<NbtCompound> blockEntities) final int
hashCode()
Returns a hash code value for this object.Map
<Heightmap.Type, long[]> Returns the value of theheightmaps
record component.long
Returns the value of theinhabitedTime
record component.long
Returns the value of thelastUpdateTime
record component.boolean
Returns the value of thelightCorrect
record component.private static void
logRecoverableError
(ChunkPos chunkPos, int y, String message) int
Returns the value of theminSectionY
record component.Returns the value of thepackedTicks
record component.Returns the value of thepostProcessingSections
record component.readStructureReferences
(DynamicRegistryManager registryManager, ChunkPos pos, NbtCompound nbt) private static Map
<Structure, StructureStart> readStructureStarts
(StructureContext context, NbtCompound nbt, long worldSeed) Returns the value of thesectionData
record component.private static void
serializeTicks
(NbtCompound nbt, Chunk.TickSchedulers schedulers) Returns the value of thestructureData
record component.private static NbtList
final String
toString()
Returns a string representation of this record class.Returns the value of theupgradeData
record component.private static NbtCompound
writeStructures
(StructureContext context, ChunkPos pos, Map<Structure, StructureStart> starts, Map<Structure, LongSet> references)
-
Field Details
-
biomeRegistry
The field for thebiomeRegistry
record component. -
chunkPos
The field for thechunkPos
record component. -
minSectionY
private final int minSectionYThe field for theminSectionY
record component. -
lastUpdateTime
private final long lastUpdateTimeThe field for thelastUpdateTime
record component. -
inhabitedTime
private final long inhabitedTimeThe field for theinhabitedTime
record component. -
chunkStatus
The field for thechunkStatus
record component. -
blendingData
The field for theblendingData
record component. -
belowZeroRetrogen
The field for thebelowZeroRetrogen
record component. -
upgradeData
The field for theupgradeData
record component. -
carvingMask
The field for thecarvingMask
record component. -
heightmaps
The field for theheightmaps
record component. -
packedTicks
The field for thepackedTicks
record component. -
postProcessingSections
The field for thepostProcessingSections
record component. -
lightCorrect
private final boolean lightCorrectThe field for thelightCorrect
record component. -
sectionData
The field for thesectionData
record component. -
entities
The field for theentities
record component. -
blockEntities
The field for theblockEntities
record component. -
structureData
The field for thestructureData
record component. -
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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
-
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 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
- 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
- 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
- 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
- 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
- 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
- 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
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 thebiomeRegistry
record component.- Returns:
- the value of the
biomeRegistry
record component
-
chunkPos
Returns the value of thechunkPos
record component.- Returns:
- the value of the
chunkPos
record component
-
minSectionY
public int minSectionY()Returns the value of theminSectionY
record component.- Returns:
- the value of the
minSectionY
record component
-
lastUpdateTime
public long lastUpdateTime()Returns the value of thelastUpdateTime
record component.- Returns:
- the value of the
lastUpdateTime
record component
-
inhabitedTime
public long inhabitedTime()Returns the value of theinhabitedTime
record component.- Returns:
- the value of the
inhabitedTime
record component
-
chunkStatus
Returns the value of thechunkStatus
record component.- Returns:
- the value of the
chunkStatus
record component
-
blendingData
Returns the value of theblendingData
record component.- Returns:
- the value of the
blendingData
record component
-
belowZeroRetrogen
Returns the value of thebelowZeroRetrogen
record component.- Returns:
- the value of the
belowZeroRetrogen
record component
-
upgradeData
Returns the value of theupgradeData
record component.- Returns:
- the value of the
upgradeData
record component
-
carvingMask
Returns the value of thecarvingMask
record component.- Returns:
- the value of the
carvingMask
record component
-
heightmaps
Returns the value of theheightmaps
record component.- Returns:
- the value of the
heightmaps
record component
-
packedTicks
Returns the value of thepackedTicks
record component.- Returns:
- the value of the
packedTicks
record component
-
postProcessingSections
Returns the value of thepostProcessingSections
record component.- Returns:
- the value of the
postProcessingSections
record component
-
lightCorrect
public boolean lightCorrect()Returns the value of thelightCorrect
record component.- Returns:
- the value of the
lightCorrect
record component
-
sectionData
Returns the value of thesectionData
record component.- Returns:
- the value of the
sectionData
record component
-
entities
Returns the value of theentities
record component.- Returns:
- the value of the
entities
record component
-
blockEntities
Returns the value of theblockEntities
record component.- Returns:
- the value of the
blockEntities
record component
-
structureData
Returns the value of thestructureData
record component.- Returns:
- the value of the
structureData
record component
-