Package noppes.npcs.api.ability
Interface IAbilityAction
-
- All Known Subinterfaces:
IAbility,IAbilityCharge,IAbilityCounter,IAbilityCutter,IAbilityDash,IAbilityDefend,IAbilityDisc,IAbilityDodge,IAbilityEffect,IAbilityEnergyBeam,IAbilityEnergyProjectile,IAbilityGuard,IAbilityHazard,IAbilityHeavyHit,IAbilityLaser,IAbilityOrb,IAbilityProjectile,IAbilityShockwave,IAbilitySlam,IAbilitySweeper,IAbilityTeleport,IAbilityTrap,IAbilityVortex,IAbilityZone,IChainedAbility,ICustomAbility
public interface IAbilityActionCommon API interface for all combat actions (abilities and chained abilities). BothIAbilityandIChainedAbilityextend this interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetCooldownTicks()floatgetMaxRange()floatgetMinRange()StringgetName()intgetWeight()booleanisChain()booleanisEnabled()
-
-
-
Method Detail
-
getName
String getName()
- Returns:
- The unique identifier/name of this action.
-
isEnabled
boolean isEnabled()
- Returns:
- Whether this action is enabled.
-
getWeight
int getWeight()
- Returns:
- Selection weight for random ability selection (higher = more likely).
-
getCooldownTicks
int getCooldownTicks()
- Returns:
- Cooldown duration in ticks after this action is used.
-
getMinRange
float getMinRange()
- Returns:
- Minimum range in blocks at which this action can be used.
-
getMaxRange
float getMaxRange()
- Returns:
- Maximum range in blocks at which this action can be used.
-
isChain
boolean isChain()
- Returns:
- Whether this action is a chained ability (sequence) vs an individual ability.
-
-