Package gg.xp.xivsupport.events.state
Interface XivState
- All Superinterfaces:
SubState
- All Known Implementing Classes:
XivStateDummy
,XivStateImpl
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
void
default @Nullable XivCombatant
getCombatant
(long id) default @NotNull XivCombatant
getLatestCombatantData
(@NotNull XivCombatant cbt) @Nullable XivMap
getMap()
int
getPartySlotOf
(XivEntity entity) Returns the party slot of the given entitydefault @Nullable Job
@Nullable XivZone
getZone()
boolean
inCombat()
default @Nullable XivCombatant
npcById
(long id) default List<XivCombatant>
npcsById
(long id) default boolean
playerJobMatches
(Predicate<Job> condition) void
void
provideCombatantHP
(XivCombatant target, @NotNull HitPoints hitPoints) void
provideCombatantMP
(XivCombatant target, @NotNull ManaPoints manaPoints) void
provideCombatantPos
(XivCombatant target, Position newPos) void
provideCombatantRadius
(XivCombatant cbt, float radius) void
provideCombatantShieldPct
(XivCombatant cbt, long shieldPct) void
provideTransformation
(long entityId, short transformationId) void
provideWeaponId
(XivCombatant existing, short weaponId) void
removeSpecificCombatant
(long idToRemove) boolean
zoneIs
(long zoneId)
-
Method Details
-
getPlayer
XivPlayerCharacter getPlayer() -
getZone
-
getMap
-
getPartyList
List<XivPlayerCharacter> getPartyList() -
zoneIs
boolean zoneIs(long zoneId) -
dutyIs
-
removeSpecificCombatant
void removeSpecificCombatant(long idToRemove) -
getCombatants
Map<Long,XivCombatant> getCombatants() -
getCombatant
-
getLatestCombatantData
-
getCombatantsListCopy
List<XivCombatant> getCombatantsListCopy() -
getPartySlotOf
Returns the party slot of the given entity- Parameters:
entity
- The entity- Returns:
- 0-7 based on their party slot, or -1 if they are not in the party
-
provideCombatantHP
-
provideCombatantMP
-
provideCombatantPos
-
provideActFallbackCombatant
-
flushProvidedValues
void flushProvidedValues() -
getPlayerJob
-
playerJobMatches
-
inCombat
boolean inCombat() -
provideCombatantShieldPct
-
provideCombatantRadius
-
npcById
-
npcsById
-
provideTransformation
void provideTransformation(long entityId, short transformationId) -
provideWeaponId
-