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 ebj$a
named sectionsByY
intermediary comp_2943
official a
named versionChanged
intermediary comp_2944
official b
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Int2ObjectMap
<T> The field for thesectionsByY
record component.private final boolean
The field for theversionChanged
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates 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 int
hashCode()
Returns a hash code value for this object.Returns the value of thesectionsByY
record component.final String
toString()
Returns a string representation of this record class.boolean
Returns the value of theversionChanged
record component.
-
Field Details
-
sectionsByY
The field for thesectionsByY
record component. -
versionChanged
private final boolean versionChangedThe field for theversionChanged
record 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 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
Lebj$a;a(Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/DynamicOps;Lvu;Lebl;Ldhj;)Lebj$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 thesectionsByY
record component.- Returns:
- the value of the
sectionsByY
record component
-
versionChanged
public boolean versionChanged()Returns the value of theversionChanged
record component.- Returns:
- the value of the
versionChanged
record component
-