Class FieldMapper<K extends Enum<K>>
java.lang.Object
gg.xp.xivsupport.events.actlines.parsers.FieldMapper<K>
-
Constructor Summary
ConstructorDescriptionFieldMapper
(Map<K, String> raw, XivState state, EntityLookupMissBehavior entityLookupMissBehavior, String[] rawLineSplit) -
Method Summary
Modifier and TypeMethodDescriptionint
void
getAbility
(K idKey, K nameKey) getAbilityEffects
(int startIndex, int count) double
getEntity
(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) long
int
long
@Nullable Double
getOptionalDouble
(K key) @Nullable Long
getOptionalHex
(K key) @Nullable Long
getOptionalLong
(K key) long
getRawHex
(int fieldIndex) boolean
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).
-
Constructor Details
-
FieldMapper
-
-
Method Details
-
getString
-
getLong
-
getInt
-
getOptionalHex
-
getOptionalLong
-
getOptionalDouble
-
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()
-