Class FieldMapper<K extends Enum<K>>
java.lang.Object
gg.xp.xivsupport.events.actlines.parsers.FieldMapper<K>
-
Constructor Summary
ConstructorsConstructorDescriptionFieldMapper(Map<K, String> raw, XivState state, EntityLookupMissBehavior entityLookupMissBehavior, String[] rawLineSplit) -
Method Summary
Modifier and TypeMethodDescriptionintvoidgetAbility(K idKey, K nameKey) getAbilityEffects(int startIndex, int count) doublegetEntity(long id) getEntity(K idKey, K nameKey, K currentHpKey, K maxHpKey, K currentMpKey, K maxMpKey, K posXKey, K posYKey, K posZKey, K headingKey) getEntity(K idKey, K nameKey, K currentHpKey, K maxHpKey, K currentMpKey, K maxMpKey, K posXKey, K posYKey, K posZKey, K headingKey, K shieldPctKey) longintlong@Nullable DoublegetOptionalDouble(K key) @Nullable XivCombatantgetOptionalEntity(K key) @Nullable LonggetOptionalHex(K key) @Nullable LonggetOptionalLong(K key) longgetRawHex(int fieldIndex) booleanvoidsetTrustedHp(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).
-
Constructor Details
-
FieldMapper
-
-
Method Details
-
getString
-
getLong
-
getInt
-
getOptionalHex
-
getOptionalLong
-
getOptionalDouble
-
getOptionalEntity
-
fieldCount
public int fieldCount() -
getRawLineSplit
-
getHex
-
getDouble
-
getAbility
-
getStatus
-
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
-
hasField
-
getEntity
-
getEntity
-
getEntity
-
getEntity
-
getRawHex
public long getRawHex(int fieldIndex) -
getAbilityEffects
-
getCombatantsToUpdate
-
flushStateOverrides
public void flushStateOverrides()
-