Package net.minecraft.world.storage
Record Class SerializingRegionBasedStorage.LoadResult<T>
java.lang.Object
java.lang.Record
net.minecraft.world.storage.SerializingRegionBasedStorage.LoadResult<T>
- Record Components:
- sectionsByY-
- versionChanged-
- Enclosing class:
- SerializingRegionBasedStorage<R,- P> 
private static record SerializingRegionBasedStorage.LoadResult<T>(Int2ObjectMap<T> sectionsByY, boolean versionChanged)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/world/storage/SerializingRegionBasedStorage$LoadResult- intermediary - net/minecraft/class_4180$class_9897- official - ean$a- named - sectionsByY- intermediary - comp_2943- official - a- named - versionChanged- intermediary - comp_2944- official - b
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final Int2ObjectMap<T> The field for thesectionsByYrecord component.private final booleanThe field for theversionChangedrecord component.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static <T> SerializingRegionBasedStorage.LoadResult<T> fromNbt(com.mojang.serialization.Codec<T> sectionCodec, com.mojang.serialization.DynamicOps<NbtElement> ops, NbtElement nbt, ChunkPosKeyedStorage storage, HeightLimitView world) final inthashCode()Returns a hash code value for this object.Returns the value of thesectionsByYrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theversionChangedrecord component.
- 
Field Details- 
sectionsByYThe field for thesectionsByYrecord component.
- 
versionChangedprivate final boolean versionChangedThe field for theversionChangedrecord component.
 
- 
- 
Constructor Details- 
LoadResult
 
- 
- 
Method Details- 
fromNbtpublic static <T> SerializingRegionBasedStorage.LoadResult<T> fromNbt(com.mojang.serialization.Codec<T> sectionCodec, com.mojang.serialization.DynamicOps<NbtElement> ops, NbtElement nbt, ChunkPosKeyedStorage storage, HeightLimitView world) - Mappings:
- Namespace - Name - Mixin selector - named - fromNbt- Lnet/minecraft/world/storage/SerializingRegionBasedStorage$LoadResult;fromNbt(Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/nbt/NbtElement;Lnet/minecraft/world/storage/ChunkPosKeyedStorage;Lnet/minecraft/world/HeightLimitView;)Lnet/minecraft/world/storage/SerializingRegionBasedStorage$LoadResult;- intermediary - method_61791- Lnet/minecraft/class_4180$class_9897;method_61791(Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_2520;Lnet/minecraft/class_9172;Lnet/minecraft/class_5539;)Lnet/minecraft/class_4180$class_9897;- official - a- Lean$a;a(Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/DynamicOps;Lun;Leap;Ldgl;)Lean$a;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
sectionsByYReturns the value of thesectionsByYrecord component.- Returns:
- the value of the sectionsByYrecord component
 
- 
versionChangedpublic boolean versionChanged()Returns the value of theversionChangedrecord component.- Returns:
- the value of the versionChangedrecord component
 
 
-