Record Class PutCountersEffect
java.lang.Object
java.lang.Record
org.magic.api.ast.effects.PutCountersEffect
- All Implemented Interfaces:
EffectNode
public record PutCountersEffect(int amount, String counterType, TargetSelectorNode target)
extends Record
implements EffectNode
-
Constructor Summary
ConstructorsConstructorDescriptionPutCountersEffect(int amount, String counterType, TargetSelectorNode target) Creates an instance of aPutCountersEffectrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintamount()Returns the value of theamountrecord component.Returns the value of thecounterTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PutCountersEffect
Creates an instance of aPutCountersEffectrecord class.- Parameters:
amount- the value for theamountrecord componentcounterType- the value for thecounterTyperecord componenttarget- the value for thetargetrecord 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. -
amount
public int amount()Returns the value of theamountrecord component.- Returns:
- the value of the
amountrecord component
-
counterType
Returns the value of thecounterTyperecord component.- Returns:
- the value of the
counterTyperecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-