Record Class DimensionPool_SV1

java.lang.Object
java.lang.Record
net.thomilist.dimensionalinventories.module.builtin.legacy.pool.DimensionPool_SV1

@Deprecated public record DimensionPool_SV1(String name, ArrayList<String> dimensions, net.minecraft.world.GameMode gameMode, boolean progressAdvancements, boolean incrementStatistics) extends Record
Deprecated.
This is only intended to hold data of storage version 1 when loading old data during migration. When loading or saving new data, use DimensionPool instead.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DimensionPool_SV1(String name, ArrayList<String> dimensions, net.minecraft.world.GameMode gameMode, boolean progressAdvancements, boolean incrementStatistics)
    Deprecated.
    Creates an instance of a DimensionPool_SV1 record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Returns the value of the dimensions record component.
    final boolean
    Deprecated.
    Indicates whether some other object is "equal to" this one.
    net.minecraft.world.GameMode
    Deprecated.
    Returns the value of the gameMode record component.
    final int
    Deprecated.
    Returns a hash code value for this object.
    boolean
    Deprecated.
    Returns the value of the incrementStatistics record component.
    Deprecated.
    Returns the value of the name record component.
    boolean
    Deprecated.
    Returns the value of the progressAdvancements record component.
    final String
    Deprecated.
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DimensionPool_SV1

      public DimensionPool_SV1(String name, ArrayList<String> dimensions, net.minecraft.world.GameMode gameMode, boolean progressAdvancements, boolean incrementStatistics)
      Deprecated.
      Creates an instance of a DimensionPool_SV1 record class.
      Parameters:
      name - the value for the name record component
      dimensions - the value for the dimensions record component
      gameMode - the value for the gameMode record component
      progressAdvancements - the value for the progressAdvancements record component
      incrementStatistics - the value for the incrementStatistics record component
  • Method Details

    • toString

      public final String toString()
      Deprecated.
      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()
      Deprecated.
      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 o)
      Deprecated.
      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 the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Deprecated.
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • dimensions

      public ArrayList<String> dimensions()
      Deprecated.
      Returns the value of the dimensions record component.
      Returns:
      the value of the dimensions record component
    • gameMode

      public net.minecraft.world.GameMode gameMode()
      Deprecated.
      Returns the value of the gameMode record component.
      Returns:
      the value of the gameMode record component
    • progressAdvancements

      public boolean progressAdvancements()
      Deprecated.
      Returns the value of the progressAdvancements record component.
      Returns:
      the value of the progressAdvancements record component
    • incrementStatistics

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