Class TargetabilityUpdate
java.lang.Object
gg.xp.reevent.events.BaseEvent
gg.xp.xivsupport.events.actlines.events.TargetabilityUpdate
- All Implemented Interfaces:
Event
,HasPrimaryValue
,HasSourceEntity
,HasTargetEntity
,Serializable
public class TargetabilityUpdate
extends BaseEvent
implements HasSourceEntity, HasTargetEntity, HasPrimaryValue
Event for when an entity becomes targetable or untargetable. Note that initial spawns do not seem to emit this
event, so it only works well for certain mid-combat things.
- See Also:
-
Constructor Summary
ConstructorDescriptionTargetabilityUpdate
(XivCombatant source, XivCombatant target, boolean newState) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Methods inherited from class gg.xp.reevent.events.BaseEvent
delayedEnqueueAt, effectiveTimeNow, getCreatedAt, getEffectiveHappenedAt, getEffectiveTimeSince, getEnqueuedAt, getHappenedAt, getParent, getPumpedAt, getPumpFinishedAt, getSourceEventHandler, isImported, setDelayedEnqueueAt, setDelayedEnqueueOffset, setDelayedEnqueueOffset, setEnqueuedAt, setHappenedAt, setImported, setParent, setPumpedAt, setPumpFinishedAt, setSourceEventHandler, setTimeSource
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface gg.xp.reevent.events.Event
combineWith, delayedEnqueueAtFront, dumpFields, getThisOrParentOfType, shouldSave
-
Constructor Details
-
TargetabilityUpdate
-
-
Method Details
-
getSource
- Specified by:
getSource
in interfaceHasSourceEntity
- Returns:
- The source of this action. Note that this is a snapshot of the source at the point in time when the
action occurred. To see the current data, use
XivState.getLatestCombatantData(XivCombatant)
.
-
isTargetable
public boolean isTargetable() -
getTarget
- Specified by:
getTarget
in interfaceHasTargetEntity
- Returns:
- The target of this action. Note that this is a snapshot of the target at the point in time when the
action occurred. To see the current data, use
XivState.getLatestCombatantData(XivCombatant)
.
-
getPrimaryValue
- Specified by:
getPrimaryValue
in interfaceHasPrimaryValue
- Returns:
- A text description of this object. Should be user-friendly and not over-the-top technical (fine-grained
details belong in other fields, or in the
Object.toString()
method).
-