Package de.Keyle.MyPet.api.skill.skills
Record Class Beacon.State
java.lang.Object
java.lang.Record
de.Keyle.MyPet.api.skill.skills.Beacon.State
- Record Components:
buffs- the buffs the owner has selectedactive- whether the skill is switched onreceiver- who the buffs are applied to
- All Implemented Interfaces:
SkillState
- Enclosing interface:
Beacon
public static record Beacon.State(List<Beacon.Buff> buffs, boolean active, Beacon.BuffReceiver receiver)
extends Record
implements SkillState
Snapshot of a Beacon skill's persisted or live state — the player-chosen buffs, the toggle, and the receiver scope.
-
Constructor Summary
ConstructorsConstructorDescriptionState(List<Beacon.Buff> buffs, boolean active, Beacon.BuffReceiver receiver) Creates an instance of aStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanactive()Returns the value of theactiverecord component.buffs()Returns the value of thebuffsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.receiver()Returns the value of thereceiverrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
buffs
Returns the value of thebuffsrecord component.- Returns:
- the value of the
buffsrecord component
-
active
public boolean active()Returns the value of theactiverecord component.- Returns:
- the value of the
activerecord component
-
receiver
Returns the value of thereceiverrecord component.- Returns:
- the value of the
receiverrecord component
-