Record Class Statistic
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.world.data.statistic.Statistic
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStatistic(StatisticType type, net.kyori.adventure.key.Key target) Creates an instance of aStatisticrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.kyori.adventure.key.Keytarget()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
CODEC
-
-
Constructor Details
-
Statistic
Creates an instance of aStatisticrecord class.- Parameters:
type- the value for thetyperecord componenttarget- the value for thetargetrecord component
-
-
Method Details
-
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
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
target
public net.kyori.adventure.key.Key target()Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-