Package gg.xp.xivsupport.models
Class XivCombatant
java.lang.Object
gg.xp.xivsupport.models.XivEntity
gg.xp.xivsupport.models.XivCombatant
- All Implemented Interfaces:
NameIdPair,Serializable
- Direct Known Subclasses:
XivPlayerCharacter
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXivCombatant(long id, String name) Simplified ctor for entity lookups that missXivCombatant(long id, String name, boolean isPc, boolean isThePlayer, long rawType, @Nullable HitPoints hp, @Nullable ManaPoints mp, @Nullable Position pos, long bNpcId, long bNpcNameId, long partyType, long level, long ownerId, long shieldAmount) XivCombatant(long id, String name, boolean isPc, boolean isThePlayer, long rawType, @Nullable HitPoints hp, @Nullable ManaPoints mp, @Nullable Position pos, long bNpcId, long bNpcNameId, long partyType, long level, long ownerId, long shieldAmount, short transformationId, short weaponId, float radius) -
Method Summary
Modifier and TypeMethodDescriptionlonglong@Nullable HitPointsgetHp()longgetLevel()@Nullable ManaPointsgetMp()long@Nullable XivCombatantlong@Nullable PositiongetPos()floatlongSome of these are in OverlayPlugin EnmityMemoryCommon.cs 0 = ? 1 = PC 2 = Combatant NPCs and pets? Both Selene and Chocobo seem to be in here, as do enemies 3 = Non-combat NPC? 4 = Treasure coffer? 5 = Aetheryte? 6 = Gathering point? I got "Mature Tree" in here 7 = Gardening patch? 9 = Minion? 12 = Interactable housing instance?longshortgetType()shortbooleanbooleanisFake()booleanisPc()booleanbooleannpcIdMatches(long... expected) voidsetFake(boolean fake) voidsetParent(XivCombatant parent) toRaw()toString()@NotNull XivCombatantMethods inherited from class gg.xp.xivsupport.models.XivEntity
equals, fmtShortList, getId, getName, hashCode, isEnvironment, toShortStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface gg.xp.xivsupport.events.actlines.events.NameIdPair
matchesFilter
-
Field Details
-
ENVIRONMENT
-
-
Constructor Details
-
XivCombatant
public XivCombatant(long id, String name, boolean isPc, boolean isThePlayer, long rawType, @Nullable @Nullable HitPoints hp, @Nullable @Nullable ManaPoints mp, @Nullable @Nullable Position pos, long bNpcId, long bNpcNameId, long partyType, long level, long ownerId, long shieldAmount, short transformationId, short weaponId, float radius) -
XivCombatant
public XivCombatant(long id, String name, boolean isPc, boolean isThePlayer, long rawType, @Nullable @Nullable HitPoints hp, @Nullable @Nullable ManaPoints mp, @Nullable @Nullable Position pos, long bNpcId, long bNpcNameId, long partyType, long level, long ownerId, long shieldAmount) -
XivCombatant
Simplified ctor for entity lookups that miss- Parameters:
id- numerical IDname- human-readable name
-
-
Method Details
-
isPc
public boolean isPc() -
isThePlayer
public boolean isThePlayer() -
toString
-
getType
-
getRawType
public long getRawType()Some of these are in OverlayPlugin EnmityMemoryCommon.cs 0 = ? 1 = PC 2 = Combatant NPCs and pets? Both Selene and Chocobo seem to be in here, as do enemies 3 = Non-combat NPC? 4 = Treasure coffer? 5 = Aetheryte? 6 = Gathering point? I got "Mature Tree" in here 7 = Gardening patch? 9 = Minion? 12 = Interactable housing instance?- Returns:
- Raw type from ACT
-
getHp
-
getMp
-
getPos
-
getbNpcId
public long getbNpcId() -
npcIdMatches
public boolean npcIdMatches(long... expected) -
getbNpcNameId
public long getbNpcNameId() -
getPartyType
public long getPartyType() -
getLevel
public long getLevel() -
getOwnerId
public long getOwnerId() -
isFake
public boolean isFake() -
setFake
public void setFake(boolean fake) -
getParent
-
getRadius
public float getRadius() -
walkParentChain
-
setParent
-
isCombative
public boolean isCombative() -
getShieldAmount
public long getShieldAmount() -
getTransformationId
public short getTransformationId() -
getWeaponId
public short getWeaponId() -
toRaw
-