Class CastLocationDataEvent
java.lang.Object
gg.xp.reevent.events.BaseEvent
gg.xp.xivsupport.events.actlines.events.CastLocationDataEvent
- All Implemented Interfaces:
Event
,DescribesCastLocation<AbilityCastStart>
,HasAbility
,HasSourceEntity
,Serializable
public class CastLocationDataEvent
extends BaseEvent
implements DescribesCastLocation<AbilityCastStart>, HasSourceEntity, HasAbility
- See Also:
-
Constructor Summary
ConstructorDescriptionCastLocationDataEvent
(AbilityCastStart event, double heading) CastLocationDataEvent
(AbilityCastStart event, Position pos) -
Method Summary
Modifier and TypeMethodDescription@Nullable Double
If the cast is not targeted on a location, but is targeted in a direction from the caster, return that direction.@Nullable Position
getPos()
If the cast is targeted on a location (including an optional rotation), then it will be returned in this method.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
Methods inherited from interface gg.xp.xivsupport.events.actlines.events.HasAbility
abilityIdMatches
-
Constructor Details
-
CastLocationDataEvent
-
CastLocationDataEvent
-
-
Method Details
-
originalEvent
- Specified by:
originalEvent
in interfaceDescribesCastLocation<AbilityCastStart>
- Returns:
- The event being described by this additional data. If the event contains its own data, rather than being provided after-the-fact, then this should point to itself.
-
getPos
Description copied from interface:DescribesCastLocation
If the cast is targeted on a location (including an optional rotation), then it will be returned in this method. If it is only a rotation, or a non-location target, then this will be null.- Specified by:
getPos
in interfaceDescribesCastLocation<AbilityCastStart>
- Returns:
- The position, else null.
-
getHeadingOnly
Description copied from interface:DescribesCastLocation
If the cast is not targeted on a location, but is targeted in a direction from the caster, return that direction.- Specified by:
getHeadingOnly
in interfaceDescribesCastLocation<AbilityCastStart>
- Returns:
- The direction, else null.
-
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)
.
-