Class FieldMapper<K extends Enum<K>>

java.lang.Object
gg.xp.xivsupport.events.actlines.parsers.FieldMapper<K>

public class FieldMapper<K extends Enum<K>> extends Object
  • Constructor Details

  • Method Details

    • getString

      public String getString(K key)
    • getLong

      public long getLong(K key)
    • getInt

      public int getInt(K key)
    • getOptionalHex

      @Nullable public @Nullable Long getOptionalHex(K key)
    • getOptionalLong

      @Nullable public @Nullable Long getOptionalLong(K key)
    • getOptionalDouble

      @Nullable public @Nullable Double getOptionalDouble(K key)
    • fieldCount

      public int fieldCount()
    • getRawLineSplit

      public List<String> getRawLineSplit()
    • getHex

      public long getHex(K key)
    • getDouble

      public double getDouble(K key)
    • getAbility

      public XivAbility getAbility(K idKey, K nameKey)
    • getStatus

      public XivStatusEffect getStatus(K idKey, K nameKey)
    • setTrustedHp

      public void setTrustedHp(boolean trustedHp)
      Indicates that HP from this line is 'trusted' as it comes from network lines rather than memory (which may not have been updated yet). If not trusted, this line will ONLY be used if we don't already have HP info.
      Parameters:
      trustedHp - Whether to trust HP
    • getEntity

      public XivCombatant getEntity(K idKey, K nameKey, K currentHpKey, K maxHpKey, K currentMpKey, K maxMpKey, K posXKey, K posYKey, K posZKey, K headingKey)
    • hasField

      public boolean hasField(K field)
    • getEntity

      public XivCombatant getEntity(K idKey, K nameKey, K currentHpKey, K maxHpKey, K currentMpKey, K maxMpKey, K posXKey, K posYKey, K posZKey, K headingKey, K shieldPctKey)
    • getEntity

      public XivCombatant getEntity(K idKey)
    • getEntity

      public XivCombatant getEntity(long id)
    • getEntity

      public XivCombatant getEntity(K idKey, K nameKey)
    • getRawHex

      public long getRawHex(int fieldIndex)
    • getAbilityEffects

      public List<AbilityEffect> getAbilityEffects(int startIndex, int count)
    • getCombatantsToUpdate

      public List<Long> getCombatantsToUpdate()
    • flushStateOverrides

      public void flushStateOverrides()