public interface IMutableAbilityStore extends IAbilityStore
IAbilityStore
that allows insertion and deletion of abilities.Modifier and Type | Method and Description |
---|---|
Ability |
addAbility(Ability ability,
boolean doAdd)
Add the given ability.
|
Ability |
removeAbility(Ability ability,
boolean doRemove)
Remove the given ability.
|
void |
setDisplayType(AbilityStoreDisplayType type)
Set display type for the ability store.
|
getAbilities, getAbilitiesRaw, getAbility, getAbilityTypes, getDisplayType, hasAbilityType, setAbilities
@Nullable Ability addAbility(Ability ability, boolean doAdd)
ability
- The ability.doAdd
- If the addition should actually be done.@Nullable Ability removeAbility(Ability ability, boolean doRemove)
ability
- The ability.doRemove
- If the removal should actually be done.void setDisplayType(AbilityStoreDisplayType type)
type
- the type to set