Package noppes.npcs.api.ability
Interface IChainedAbility
-
- All Superinterfaces:
IAbilityAction
public interface IChainedAbility extends IAbilityAction
API interface for chained abilities - ordered sequences of ability references that execute one after another with configurable delays.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetEntryCount()intgetEntryDelay(int index)StringgetEntryReference(int index)booleanisEntryInline(int index)booleanisWindUpAll()-
Methods inherited from interface noppes.npcs.api.ability.IAbilityAction
getCooldownTicks, getMaxRange, getMinRange, getName, getWeight, isChain, isEnabled
-
-
-
-
Method Detail
-
isWindUpAll
boolean isWindUpAll()
- Returns:
- Whether all entries wind up simultaneously before execution begins.
-
getEntryCount
int getEntryCount()
- Returns:
- The number of ability entries in this chain.
-
getEntryReference
String getEntryReference(int index)
- Parameters:
index- Entry index in the chain.- Returns:
- The ability reference ID at the given index.
-
getEntryDelay
int getEntryDelay(int index)
- Parameters:
index- Entry index in the chain.- Returns:
- The delay in ticks before executing this entry.
-
isEntryInline
boolean isEntryInline(int index)
- Parameters:
index- Entry index in the chain.- Returns:
- Whether this entry executes inline (overlapping with previous).
-
-