Class StatusEffectRepository
java.lang.Object
gg.xp.xivsupport.events.state.combatstate.StatusEffectRepository
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuffApplication(EventContext context, BuffApplied event) voidbuffPreApplication(EventContext context, AbilityUsedEvent event) voidbuffRemove(EventContext context, BuffRemoved event) intbuffStacksOnTarget(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 BuffAppliedfindBuff(Predicate<BuffApplied> filter) @Nullable BuffAppliedfindBuffById(long id) @NotNull List<BuffApplied>findBuffs(Predicate<BuffApplied> filter) @NotNull List<BuffApplied>findBuffsById(long id) @Nullable BuffAppliedfindStatusOnTarget(XivEntity entity, long buffId) @Nullable BuffAppliedfindStatusOnTarget(XivEntity entity, Predicate<BuffApplied> filter) @Nullable BuffAppliedget(BuffTrackingKey key) getBuffs()<X extends HasSourceEntity & HasTargetEntity & HasStatusEffect>
@Nullable BuffAppliedgetLatest(X buff) @Nullable BuffAppliedgetPreApp(BuffTrackingKey key) booleanisStatusOnTarget(XivEntity entity, long buffId) booleanintrawBuffStacksOnTarget(XivEntity entity, long buffId) Given an entity and a buff ID, return how many raw stacks the buff has if present.voidremoveCombatant(EventContext context, RawRemoveCombatantEvent event) sortedStatusesOnTarget(XivEntity entity) statusesOnTarget(XivEntity entity) statusesOnTarget(XivEntity entity, boolean includePreapps) voidstatusList(EventContext context, StatusEffectList list) statusOf(BuffApplied buff) booleanbooleantargetHasAnyStatus(XivEntity entity) voidvoidzoneChange(EventContext context, WipeEvent wipe) voidzoneChange(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
-