Class XivCombatant

java.lang.Object
gg.xp.xivsupport.models.XivEntity
gg.xp.xivsupport.models.XivCombatant
All Implemented Interfaces:
NameIdPair, Serializable
Direct Known Subclasses:
XivPlayerCharacter

public class XivCombatant extends XivEntity
See Also:
  • Field Details

    • ENVIRONMENT

      public static final XivCombatant 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

      public XivCombatant(long id, String name)
      Simplified ctor for entity lookups that miss
      Parameters:
      id - numerical ID
      name - human-readable name
  • Method Details

    • isPc

      public boolean isPc()
    • isThePlayer

      public boolean isThePlayer()
    • toString

      public String toString()
      Overrides:
      toString in class XivEntity
    • getType

      public CombatantType 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

      @Nullable public @Nullable HitPoints getHp()
    • getMp

      @Nullable public @Nullable ManaPoints getMp()
    • getPos

      @Nullable public @Nullable Position 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

      @Nullable public @Nullable XivCombatant getParent()
    • getRadius

      public float getRadius()
    • walkParentChain

      @NotNull public @NotNull XivCombatant walkParentChain()
    • setParent

      public void setParent(XivCombatant parent)
    • isCombative

      public boolean isCombative()
    • getShieldAmount

      public long getShieldAmount()
    • getTransformationId

      public short getTransformationId()
    • getWeaponId

      public short getWeaponId()
    • toRaw

      public RawXivCombatantInfo toRaw()