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
-
hashCode
-
id
public net.kyori.adventure.key.Key id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-