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 String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addByComponent
(String key, FabledAttribute fabledAttribute) void
addByStat
(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.void
Loads attribute data from the configNormalizes a config key or name into the config key for a unified identifier to store stats under.
-
Field Details
-
HEALTH
- See Also:
-
MANA
- See Also:
-
MANA_REGEN
- See Also:
-
PHYSICAL_DAMAGE
- See Also:
-
MELEE_DAMAGE
- See Also:
-
PROJECTILE_DAMAGE
- See Also:
-
PHYSICAL_DEFENSE
- See Also:
-
MELEE_DEFENSE
- See Also:
-
PROJECTILE_DEFENSE
- See Also:
-
SKILL_DAMAGE
- See Also:
-
SKILL_DEFENSE
- See Also:
-
MOVE_SPEED
- See Also:
-
ATTACK_SPEED
- See Also:
-
ARMOR
- See Also:
-
LUCK
- See Also:
-
ARMOR_TOUGHNESS
- See Also:
-
EXPERIENCE
- See Also:
-
HUNGER
- See Also:
-
HUNGER_HEAL
- See Also:
-
COOLDOWN
- See Also:
-
KNOCKBACK_RESIST
- See Also:
-
ATTACK_DAMAGE
- See Also:
-
ATTACK_KNOCKBACK
- See Also:
-
ABSORPTION
- See Also:
-
SCALE
- See Also:
-
STEP_HEIGHT
- See Also:
-
JUMP_STRENGTH
- See Also:
-
GRAVITY
- See Also:
-
SAFE_FALL_DISTANCE
- See Also:
-
FALL_DAMAGE_MULTIPLIER
- See Also:
-
BURNING_TIME
- See Also:
-
EXPLOSION_KNOCKBACK_RESISTANCE
- See Also:
-
MOVEMENT_EFFICIENCY
- See Also:
-
OXYGEN_BONUS
- See Also:
-
WATER_MOVEMENT_EFFICIENCY
- See Also:
-
BLOCK_INTERACTION_RANGE
- See Also:
-
ENTITY_INTERACTION_RANGE
- See Also:
-
BLOCK_BREAK_SPEED
- 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:
getAttribute
in interfaceIAttributeManager
- Parameters:
key
- attribute key- Returns:
- template for the attribute
-
forStat
- Specified by:
forStat
in interfaceIAttributeManager
-
forComponent
- Specified by:
forComponent
in interfaceIAttributeManager
-
getKeys
Description copied from interface:IAttributeManager
Retrieves the available attribute keys. This does not include display names for attributes.- Specified by:
getKeys
in interfaceIAttributeManager
- Returns:
- set of available attribute keys
-
getLookupKeys
Description copied from interface:IAttributeManager
Retrieves the available attribute keys including both display names and config keys.- Specified by:
getLookupKeys
in interfaceIAttributeManager
- Returns:
- display name and config keys for attributes
-
normalize
Description copied from interface:IAttributeManager
Normalizes a config key or name into the config key for a unified identifier to store stats under.- Specified by:
normalize
in interfaceIAttributeManager
- Parameters:
key
- key to normalize- Returns:
- config key
-
load
Loads attribute data from the config- Parameters:
api
- Fabled reference
-
addByComponent
- Specified by:
addByComponent
in interfaceIAttributeManager
-
addByStat
- Specified by:
addByStat
in 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:
getAttributes
in interfaceIAttributeManager
-