Package com.sucy.skill.manager
Class AttributeManager
java.lang.Object
com.sucy.skill.manager.AttributeManager
- All Implemented Interfaces:
IAttributeManager
@Deprecated(forRemoval=true)
public class AttributeManager
extends Object
implements IAttributeManager
Deprecated, for removal: This API element is subject to removal in a future version.
Handles loading and accessing individual
attributes from the configuration.
This class is strictly a wrapper for
IAttributeManager
and will be removed in the future.
This should only be used by legacy plugins lacking modern support for Fabled-
Constructor Summary
ConstructorsConstructorDescriptionAttributeManager
(IAttributeManager attributeManager) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addByComponent
(String key, FabledAttribute fabledAttribute) Deprecated, for removal: This API element is subject to removal in a future version.void
addByStat
(String key, FabledAttribute fabledAttribute) Deprecated, for removal: This API element is subject to removal in a future version.forComponent
(EffectComponent component, String key) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.UseIAttributeManager.forStat(String)
insteadgetAttribute
(String key) Deprecated, for removal: This API element is subject to removal in a future version.UseIAttributeManager.getAttribute(String)
insteadDeprecated, for removal: This API element is subject to removal in a future version.UseIAttributeManager.getAttributes()
insteadgetKeys()
Deprecated, for removal: This API element is subject to removal in a future version.UseIAttributeManager.getKeys()
insteadDeprecated, for removal: This API element is subject to removal in a future version.UseIAttributeManager.getLookupKeys()
insteadDeprecated, for removal: This API element is subject to removal in a future version.UseIAttributeManager.normalize(String)
instead
-
Constructor Details
-
AttributeManager
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getAttributes
Deprecated, for removal: This API element is subject to removal in a future version.UseIAttributeManager.getAttributes()
instead- Specified by:
getAttributes
in interfaceIAttributeManager
- Returns:
- map of attributes
-
getAttribute
Deprecated, for removal: This API element is subject to removal in a future version.UseIAttributeManager.getAttribute(String)
insteadDescription copied from interface:IAttributeManager
Retrieves an attribute template- Specified by:
getAttribute
in interfaceIAttributeManager
- Parameters:
key
- attribute key- Returns:
- template for the attribute
-
forStat
Deprecated, for removal: This API element is subject to removal in a future version.UseIAttributeManager.forStat(String)
instead- Specified by:
forStat
in interfaceIAttributeManager
- Parameters:
key
- key to get attributes for- Returns:
- list of attributes for the stat
-
forComponent
@Deprecated(forRemoval=true) public List<FabledAttribute> forComponent(EffectComponent component, String key) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
forComponent
in interfaceIAttributeManager
- Parameters:
component
- component to get attributes forkey
- key to get attributes for- Returns:
- list of attributes for the component
-
getKeys
Deprecated, for removal: This API element is subject to removal in a future version.UseIAttributeManager.getKeys()
insteadDescription 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
Deprecated, for removal: This API element is subject to removal in a future version.UseIAttributeManager.getLookupKeys()
insteadDescription 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
Deprecated, for removal: This API element is subject to removal in a future version.UseIAttributeManager.normalize(String)
insteadDescription 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
-
addByComponent
@Deprecated(forRemoval=true) public void addByComponent(String key, FabledAttribute fabledAttribute) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
addByComponent
in interfaceIAttributeManager
- Parameters:
key
- key to add byfabledAttribute
- attribute to add
-
addByStat
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
addByStat
in interfaceIAttributeManager
- Parameters:
key
- key to add byfabledAttribute
- attribute to add
-
IAttributeManager
instead fromFabled.getAttributesManager()