Package noppes.npcs.api.ability.type
Interface IAbilityHazard
-
- All Superinterfaces:
IAbility,IAbilityAction,IAbilityZone
public interface IAbilityHazard extends IAbilityZone
API interface for Hazard abilities. Persistent ground effect zones placed around the caster.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetDamageInterval()floatgetDamagePerSecond()floatgetRadius()booleanisAffectsCaster()voidsetAffectsCaster(boolean affects)voidsetDamageInterval(int interval)voidsetDamagePerSecond(float damage)voidsetRadius(float radius)-
Methods inherited from interface noppes.npcs.api.ability.IAbility
getAllowedByType, getBurstAmount, getBurstDelay, getCooldownTicks, getCurrentTick, getDazedTicks, getDisplayName, getId, getLockMovementType, getMagicData, getMaxRange, getMinRange, getName, getNbt, getPhaseInt, getRotationModeType, getRotationPhaseType, getToggleStateLabel, getToggleStates, getTrackSpeedValue, getTypeId, getWeight, getWindUpTicks, isBurstEnabled, isBurstOverlap, isBurstReplayAnimations, isEnabled, isExecuting, isIgnoreCooldown, isIgnoreIFrames, isInterruptible, isMovementLockedDuringActive, isMovementLockedDuringWindup, isPerAbilityCooldown, isRotationLockedDuringActive, isRotationLockedDuringWindup, isToggleable, setAllowedByType, setBurstAmount, setBurstDelay, setBurstEnabled, setBurstOverlap, setBurstReplayAnimations, setCooldownTicks, setDazedTicks, setDisplayName, setEnabled, setId, setIgnoreCooldown, setIgnoreIFrames, setInterruptible, setLockMovementType, setMaxRange, setMinRange, setName, setNbt, setPerAbilityCooldown, setRotationModeType, setRotationPhaseType, setToggleStates, setTrackSpeedValue, setWeight, setWindUpTicks
-
Methods inherited from interface noppes.npcs.api.ability.IAbilityAction
isChain
-
Methods inherited from interface noppes.npcs.api.ability.type.IAbilityZone
getAccentStyle, getAnimSpeed, getBorderSpeed, getDurationTicks, getGroundAlpha, getInnerColor, getLightningDensity, getOuterColor, getParticleDensity, getParticleDir, getParticleMotion, getParticleScale, getParticleSize, getRingCount, getSpawnRadius, getZoneCount, getZoneHeight, getZoneShapeOrdinal, isAccents, isBorder, isGroundFill, isLightning, isOuterColorEnabled, isParticleGlow, isParticles, isRings, setAccents, setAccentStyle, setAnimSpeed, setBorder, setBorderSpeed, setDurationTicks, setGroundAlpha, setGroundFill, setInnerColor, setLightning, setLightningDensity, setOuterColor, setOuterColorEnabled, setParticleDensity, setParticleDir, setParticleGlow, setParticleMotion, setParticles, setParticleScale, setParticleSize, setRingCount, setRings, setSpawnRadius, setZoneCount, setZoneHeight, setZoneShapeOrdinal
-
-
-
-
Method Detail
-
getRadius
float getRadius()
- Returns:
- Damage radius of the hazard zone in blocks.
-
setRadius
void setRadius(float radius)
- Parameters:
radius- Damage radius in blocks.
-
getDamagePerSecond
float getDamagePerSecond()
- Returns:
- Damage dealt per damage interval tick.
-
setDamagePerSecond
void setDamagePerSecond(float damage)
- Parameters:
damage- Damage per interval.
-
getDamageInterval
int getDamageInterval()
- Returns:
- Interval in ticks between damage applications.
-
setDamageInterval
void setDamageInterval(int interval)
- Parameters:
interval- Damage interval in ticks.
-
isAffectsCaster
boolean isAffectsCaster()
- Returns:
- Whether the hazard also damages the caster.
-
setAffectsCaster
void setAffectsCaster(boolean affects)
- Parameters:
affects- Whether the hazard affects the caster.
-
-