Record Class PlatformPlayerAdapter.Statistics
java.lang.Object
java.lang.Record
net.flectone.pulse.platform.adapter.PlatformPlayerAdapter.Statistics
- Record Components:
health- the player healtharmor- the player armor valuelevel- the player experience levelfood- the player food leveldamage- the player damage value
- Enclosing interface:
PlatformPlayerAdapter
public static record PlatformPlayerAdapter.Statistics(double health, double armor, double level, double food, double damage)
extends Record
Player statistics.
- Since:
- 0.8.1
-
Constructor Summary
ConstructorsConstructorDescriptionStatistics(double health, double armor, double level, double food, double damage) Creates an instance of aStatisticsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoublearmor()Returns the value of thearmorrecord component.doubledamage()Returns the value of thedamagerecord component.final booleanIndicates whether some other object is "equal to" this one.doublefood()Returns the value of thefoodrecord component.final inthashCode()Returns a hash code value for this object.doublehealth()Returns the value of thehealthrecord component.doublelevel()Returns the value of thelevelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Statistics
public Statistics(double health, double armor, double level, double food, double damage) Creates an instance of aStatisticsrecord class.
-
-
Method Details
-
toString
-
hashCode
-
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 with thecomparemethod from their corresponding wrapper classes. -
health
-
armor
-
level
-
food
-
damage
-