Class AbilityUsedEvent
java.lang.Object
gg.xp.reevent.events.BaseEvent
gg.xp.xivsupport.events.actlines.events.AbilityUsedEvent
- All Implemented Interfaces:
Event
,HasAbility
,HasEffects
,HasSourceEntity
,HasTargetEntity
,HasTargetIndex
,Serializable
public class AbilityUsedEvent
extends BaseEvent
implements HasSourceEntity, HasTargetEntity, HasAbility, HasEffects, HasTargetIndex
Represents an ability snapshotting
- See Also:
-
Constructor Summary
ConstructorDescriptionAbilityUsedEvent
(XivAbility ability, XivCombatant caster, XivCombatant target, List<AbilityEffect> effects, long sequenceId, long targetIndex, long numberOfTargets) -
Method Summary
Modifier and TypeMethodDescription@Nullable DescribesCastLocation<AbilityUsedEvent>
long
long
long
boolean
boolean
void
setLocationInfo
(@NotNull DescribesCastLocation<AbilityUsedEvent> locationInfo) toString()
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, wait, wait, wait
Methods inherited from interface gg.xp.reevent.events.Event
combineWith, delayedEnqueueAtFront, dumpFields, getThisOrParentOfType, shouldSave
Methods inherited from interface gg.xp.xivsupport.events.actlines.events.HasAbility
abilityIdMatches
Methods inherited from interface gg.xp.xivsupport.events.actlines.events.HasEffects
getDamage, getEffectsOfType
-
Constructor Details
-
AbilityUsedEvent
public AbilityUsedEvent(XivAbility ability, XivCombatant caster, XivCombatant target, List<AbilityEffect> effects, long sequenceId, long targetIndex, long numberOfTargets)
-
-
Method Details
-
getAbility
- Specified by:
getAbility
in interfaceHasAbility
-
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)
.
-
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)
.
-
getEffects
- Specified by:
getEffects
in interfaceHasEffects
-
getSequenceId
public long getSequenceId() -
getTargetIndex
public long getTargetIndex()- Specified by:
getTargetIndex
in interfaceHasTargetIndex
-
getNumberOfTargets
public long getNumberOfTargets()- Specified by:
getNumberOfTargets
in interfaceHasTargetIndex
-
isFirstTarget
public boolean isFirstTarget()- Specified by:
isFirstTarget
in interfaceHasTargetIndex
-
isLastTarget
public boolean isLastTarget()- Specified by:
isLastTarget
in interfaceHasTargetIndex
-
getLocationInfo
-
setLocationInfo
-
toString
-