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 Details

    • sectionsByY

      private final Int2ObjectMap<T> sectionsByY
      The field for the sectionsByY record component.
    • versionChanged

      private final boolean versionChanged
      The field for the versionChanged record component.
  • Constructor Details

    • LoadResult

      private LoadResult(Int2ObjectMap<T> int2ObjectMap, boolean bool)
  • 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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • sectionsByY

      public Int2ObjectMap<T> sectionsByY()
      Returns the value of the sectionsByY record component.
      Returns:
      the value of the sectionsByY record component
    • versionChanged

      public boolean versionChanged()
      Returns the value of the versionChanged record component.
      Returns:
      the value of the versionChanged record component