Class BuffApplied
java.lang.Object
gg.xp.reevent.events.BaseEvent
gg.xp.xivsupport.events.actlines.events.BuffApplied
- All Implemented Interfaces:
Event
,HasDuration
,HasOptionalDelay
,HasSourceEntity
,HasStatusEffect
,HasTargetEntity
,Serializable
public class BuffApplied
extends BaseEvent
implements HasSourceEntity, HasTargetEntity, HasStatusEffect, HasDuration, HasOptionalDelay
Represents a buff being applied
- See Also:
-
Constructor Summary
ConstructorDescriptionBuffApplied
(AbilityUsedEvent event, StatusAppliedEffect effect) BuffApplied
(XivStatusEffect buff, double durationRaw, XivCombatant source, XivCombatant target, long stacks) BuffApplied
(XivStatusEffect buff, double durationRaw, XivCombatant source, XivCombatant target, long rawStacks, boolean isPreApp) BuffApplied
(XivStatusEffect buff, double durationRaw, XivCombatant source, XivCombatant target, long rawStacks, long maxStacks, boolean isPreApp) -
Method Summary
Modifier and TypeMethodDescriptiongetBuff()
@Nullable StatusEffectInfo
getInfo()
@Nullable StatusAppliedEffect
@Nullable Instant
long
long
boolean
isPreApp()
boolean
void
setIsRefresh
(boolean refresh) void
setPreAppInfo
(AbilityUsedEvent original, StatusAppliedEffect preAppInfo) boolean
toString()
withNewCurrentTime
(Instant time) 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.HasDuration
getEffectiveTimeSince, getEstimatedElapsedDuration, getEstimatedRemainingDuration, getEstimatedTimeSinceExpiry, isIndefinite, remainingDurationPlus, wouldBeExpired
Methods inherited from interface gg.xp.xivsupport.events.actlines.events.HasOptionalDelay
getDelay, getEffectiveHappenedAt
Methods inherited from interface gg.xp.xivsupport.events.actlines.events.HasStatusEffect
buffIdMatches
-
Constructor Details
-
BuffApplied
-
BuffApplied
public BuffApplied(XivStatusEffect buff, double durationRaw, XivCombatant source, XivCombatant target, long stacks) -
BuffApplied
public BuffApplied(XivStatusEffect buff, double durationRaw, XivCombatant source, XivCombatant target, long rawStacks, long maxStacks, boolean isPreApp) -
BuffApplied
public BuffApplied(XivStatusEffect buff, double durationRaw, XivCombatant source, XivCombatant target, long rawStacks, boolean isPreApp)
-
-
Method Details
-
getBuff
- Specified by:
getBuff
in interfaceHasStatusEffect
-
getInitialDuration
- Specified by:
getInitialDuration
in interfaceHasDuration
- Returns:
- The initial duration at the time of the event happening.
-
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)
.
-
getRawStacks
public long getRawStacks()- Specified by:
getRawStacks
in interfaceHasStatusEffect
-
getStacks
public long getStacks()- Specified by:
getStacks
in interfaceHasStatusEffect
-
isRefresh
public boolean isRefresh() -
setIsRefresh
public void setIsRefresh(boolean refresh) -
isPreApp
public boolean isPreApp() -
getInfo
-
setPreAppInfo
-
getPreAppInfo
-
getPreAppAbility
-
shouldDisplayDuration
public boolean shouldDisplayDuration() -
toString
-
getPrecursorHappenedAt
- Specified by:
getPrecursorHappenedAt
in interfaceHasOptionalDelay
-
withNewCurrentTime
-