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$LoadResultintermediary net/minecraft/class_4180$class_9897official efh$anamed sectionsByYintermediary comp_2943official anamed versionChangedintermediary comp_2944official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Int2ObjectMap<T> The field for thesectionsByYrecord component.private final booleanThe field for theversionChangedrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
sectionsByY
The field for thesectionsByYrecord component. -
versionChanged
private final boolean versionChangedThe field for theversionChangedrecord component.
-
-
Constructor Details
-
LoadResult
-
-
Method Details
-
fromNbt
public 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 fromNbtLnet/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_61791Lnet/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 aLefh$a;a(Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/DynamicOps;Lva;Lefj;Ldkl;)Lefh$a;
-
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 '=='. -
sectionsByY
Returns the value of thesectionsByYrecord component.- Returns:
- the value of the
sectionsByYrecord component
-
versionChanged
public boolean versionChanged()Returns the value of theversionChangedrecord component.- Returns:
- the value of the
versionChangedrecord component
-