Record Class GainLifeEffect
java.lang.Object
java.lang.Record
org.magic.api.ast.effects.GainLifeEffect
- All Implemented Interfaces:
EffectNode
-
Constructor Summary
ConstructorsConstructorDescriptionGainLifeEffect(int amount) Creates an instance of aGainLifeEffectrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintamount()Returns the value of theamountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GainLifeEffect
public GainLifeEffect(int amount) Creates an instance of aGainLifeEffectrecord class.- Parameters:
amount- the value for theamountrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
amount
public int amount()Returns the value of theamountrecord component.- Returns:
- the value of the
amountrecord component
-