Class StatusEffectRepository
java.lang.Object
gg.xp.xivsupport.events.state.combatstate.StatusEffectRepository
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
buffApplication
(EventContext context, BuffApplied event) void
buffPreApplication
(EventContext context, AbilityUsedEvent event) void
buffRemove
(EventContext context, BuffRemoved event) int
buffStacksOnTarget
(XivEntity entity, long buffId) Given an entity and a buff ID, return how many stacks the buff has if present.filteredSortedStatusesOnTarget
(XivEntity entity, Predicate<BuffApplied> filter) filteredSortedStatusesOnTarget
(XivEntity entity, Predicate<BuffApplied> filter, boolean includePreapps) @Nullable BuffApplied
findBuff
(Predicate<BuffApplied> filter) @Nullable BuffApplied
findBuffById
(long id) @NotNull List<BuffApplied>
findBuffs
(Predicate<BuffApplied> filter) @NotNull List<BuffApplied>
findBuffsById
(long id) @Nullable BuffApplied
findStatusOnTarget
(XivEntity entity, long buffId) @Nullable BuffApplied
findStatusOnTarget
(XivEntity entity, Predicate<BuffApplied> filter) @Nullable BuffApplied
get
(BuffTrackingKey key) getBuffs()
<X extends HasSourceEntity & HasTargetEntity & HasStatusEffect>
@Nullable BuffAppliedgetLatest
(X buff) @Nullable BuffApplied
getPreApp
(BuffTrackingKey key) boolean
isStatusOnTarget
(XivEntity entity, long buffId) boolean
int
rawBuffStacksOnTarget
(XivEntity entity, long buffId) Given an entity and a buff ID, return how many raw stacks the buff has if present.void
removeCombatant
(EventContext context, RawRemoveCombatantEvent event) sortedStatusesOnTarget
(XivEntity entity) statusesOnTarget
(XivEntity entity) statusesOnTarget
(XivEntity entity, boolean includePreapps) void
statusList
(EventContext context, StatusEffectList list) statusOf
(BuffApplied buff) boolean
boolean
targetHasAnyStatus
(XivEntity entity) void
void
zoneChange
(EventContext context, WipeEvent wipe) void
zoneChange
(EventContext context, ZoneChangeEvent wipe)
-
Field Details
-
standardPartyFrameSort
-
-
Constructor Details
-
StatusEffectRepository
-
-
Method Details
-
buffPreApplication
-
buffApplication
-
buffRemove
-
statusList
-
zoneChange
-
zoneChange
-
removeCombatant
-
workaroundForActNotRemovingCombatants
public void workaroundForActNotRemovingCombatants(EventContext context, XivStateRecalculatedEvent event) -
getBuffs
-
getPreApps
-
getBuffsAndPreapps
-
get
-
getPreApp
-
statusesOnTarget
-
statusesOnTarget
-
targetHasAnyStatus
-
findStatusOnTarget
-
isStatusOnTarget
-
findStatusOnTarget
@Nullable public @Nullable BuffApplied findStatusOnTarget(XivEntity entity, Predicate<BuffApplied> filter) -
findBuff
-
findBuffById
-
findBuffsById
-
findBuffs
-
buffStacksOnTarget
Given an entity and a buff ID, return how many stacks the buff has if present.- Parameters:
entity
- The entity to checkbuffId
- The buff ID- Returns:
- The number of stacks, or 0 if it is stackless, or -1 if the buff was not present at all.
-
rawBuffStacksOnTarget
Given an entity and a buff ID, return how many raw stacks the buff has if present.The difference between this and
buffStacksOnTarget(XivEntity, long)
is that this one uses the 'raw' stacks. Some status effects use the 'stacks' field to convey mechanical differences rather than an actual stack count. 'Stacks' tries to filter these out and instead report a stack count of zero, whereas raw stacks keeps the original value intact.- Parameters:
entity
- The entity to checkbuffId
- The buff ID- Returns:
- The number of stacks, or 0 if it is stackless, or -1 if the buff was not present at all.
-
sortedStatusesOnTarget
-
filteredSortedStatusesOnTarget
public List<BuffApplied> filteredSortedStatusesOnTarget(XivEntity entity, Predicate<BuffApplied> filter) -
filteredSortedStatusesOnTarget
public List<BuffApplied> filteredSortedStatusesOnTarget(XivEntity entity, Predicate<BuffApplied> filter, boolean includePreapps) -
getLatest
@Nullable public <X extends HasSourceEntity & HasTargetEntity & HasStatusEffect> @Nullable BuffApplied getLatest(X buff) -
statusOf
-
originalStatusActive
-
statusOrRefreshActive
-