Record Class StatisticType
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.world.data.statistic.StatisticType
-
Constructor Summary
ConstructorsConstructorDescriptionStatisticType(net.kyori.adventure.key.Key id) Creates an instance of aStatisticTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.get(net.kyori.adventure.key.Key target) final inthashCode()Returns a hash code value for this object.net.kyori.adventure.key.Keyid()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StatisticType
public StatisticType(net.kyori.adventure.key.Key id) Creates an instance of aStatisticTyperecord class.- Parameters:
id- the value for theidrecord component
-
-
Method Details
-
get
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
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. -
id
public net.kyori.adventure.key.Key id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-