Record Class IonStrikeHit
java.lang.Object
java.lang.Record
idlab.colonyops.model.events.IonStrikeHit
- Record Components:
entityId- the entity that was hitdamageApplied- the damage actually dealthpLeft- the entity's remaining health points
-
Constructor Summary
ConstructorsConstructorDescriptionIonStrikeHit(String entityId, int damageApplied, int hpLeft) Creates an instance of aIonStrikeHitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thedamageAppliedrecord component.entityId()Returns the value of theentityIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.inthpLeft()Returns the value of thehpLeftrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IonStrikeHit
Creates an instance of aIonStrikeHitrecord class.- Parameters:
entityId- the value for theentityIdrecord componentdamageApplied- the value for thedamageAppliedrecord componenthpLeft- the value for thehpLeftrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
entityId
-
damageApplied
public int damageApplied()Returns the value of thedamageAppliedrecord component.- Returns:
- the value of the
damageAppliedrecord component
-
hpLeft
-