Package studio.magemonkey.fabled.manager
Class AttributeManager
java.lang.Object
studio.magemonkey.fabled.manager.AttributeManager
- All Implemented Interfaces:
IAttributeManager
Handles loading and accessing individual
attributes from the configuration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddByComponent(String key, FabledAttribute fabledAttribute) voidaddByStat(String key, FabledAttribute fabledAttribute) forComponent(EffectComponent component, String key) getAttribute(String key) Retrieves an attribute templateUnsafe getter for the attribute data.getKeys()Retrieves the available attribute keys.Retrieves the available attribute keys including both display names and config keys.voidLoads attribute data from the configNormalizes a config key or name into the config key for a unified identifier to store stats under.
-
Field Details
-
ARMOR
- See Also:
-
ARMOR_TOUGHNESS
- See Also:
-
ATTACK_SPEED
- See Also:
-
COOLDOWN
- See Also:
-
EXPERIENCE
- See Also:
-
HEALTH
- See Also:
-
HUNGER
- See Also:
-
HUNGER_HEAL
- See Also:
-
KNOCKBACK_RESIST
- See Also:
-
LUCK
- See Also:
-
MANA
- See Also:
-
MANA_REGEN
- See Also:
-
MELEE_DAMAGE
- See Also:
-
MELEE_DEFENSE
- See Also:
-
MOVE_SPEED
- See Also:
-
PHYSICAL_DAMAGE
- See Also:
-
PHYSICAL_DEFENSE
- See Also:
-
PROJECTILE_DAMAGE
- See Also:
-
PROJECTILE_DEFENSE
- See Also:
-
SKILL_DAMAGE
- See Also:
-
SKILL_DEFENSE
- See Also:
-
ABSORPTION
- See Also:
-
ATTACK_DAMAGE
- See Also:
-
ATTACK_KNOCKBACK
- See Also:
-
BURNING_TIME
- See Also:
-
EXPLOSION_KNOCKBACK_RESISTANCE
- See Also:
-
FALL_DAMAGE_MULTIPLIER
- See Also:
-
GRAVITY
- See Also:
-
JUMP_STRENGTH
- See Also:
-
MOVEMENT_EFFICIENCY
- See Also:
-
OXYGEN_BONUS
- See Also:
-
SAFE_FALL_DISTANCE
- See Also:
-
SCALE
- See Also:
-
STEP_HEIGHT
- See Also:
-
WATER_MOVEMENT_EFFICIENCY
- See Also:
-
BLOCK_BREAK_SPEED
- See Also:
-
BLOCK_INTERACTION_RANGE
- See Also:
-
ENTITY_INTERACTION_RANGE
- See Also:
-
MINING_EFFICIENCY
- See Also:
-
SNEAKING_SPEED
- See Also:
-
SUBMERGED_MINING_SPEED
- See Also:
-
SWEEPING_DAMAGE_RATIO
- See Also:
-
-
Constructor Details
-
AttributeManager
public AttributeManager()
-
-
Method Details
-
getAttribute
Retrieves an attribute template- Specified by:
getAttributein interfaceIAttributeManager- Parameters:
key- attribute key- Returns:
- template for the attribute
-
forStat
- Specified by:
forStatin interfaceIAttributeManager
-
forComponent
- Specified by:
forComponentin interfaceIAttributeManager
-
getKeys
Description copied from interface:IAttributeManagerRetrieves the available attribute keys. This does not include display names for attributes.- Specified by:
getKeysin interfaceIAttributeManager- Returns:
- set of available attribute keys
-
getLookupKeys
Description copied from interface:IAttributeManagerRetrieves the available attribute keys including both display names and config keys.- Specified by:
getLookupKeysin interfaceIAttributeManager- Returns:
- display name and config keys for attributes
-
normalize
Description copied from interface:IAttributeManagerNormalizes a config key or name into the config key for a unified identifier to store stats under.- Specified by:
normalizein interfaceIAttributeManager- Parameters:
key- key to normalize- Returns:
- config key
-
load
Loads attribute data from the config- Parameters:
api- Fabled reference
-
addByComponent
- Specified by:
addByComponentin interfaceIAttributeManager
-
addByStat
- Specified by:
addByStatin interfaceIAttributeManager
-
getAttributes
Unsafe getter for the attribute data.Do not use this method or modify it's return value unless you know exactly what you are doing.
- Specified by:
getAttributesin interfaceIAttributeManager
-