Package noppes.npcs.api.ability.type
Interface IAbilityZone
-
- All Superinterfaces:
IAbility,IAbilityAction
- All Known Subinterfaces:
IAbilityHazard,IAbilityTrap
public interface IAbilityZone extends IAbility
API interface for zone-based abilities (Trap, Hazard). Shared zone properties: duration, shape, spawn, visual layers, colors.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetAccentStyle()floatgetAnimSpeed()floatgetBorderSpeed()intgetDurationTicks()floatgetGroundAlpha()intgetInnerColor()floatgetLightningDensity()intgetOuterColor()floatgetParticleDensity()StringgetParticleDir()intgetParticleMotion()floatgetParticleScale()intgetParticleSize()intgetRingCount()floatgetSpawnRadius()intgetZoneCount()floatgetZoneHeight()intgetZoneShapeOrdinal()booleanisAccents()booleanisBorder()booleanisGroundFill()booleanisLightning()booleanisOuterColorEnabled()booleanisParticleGlow()booleanisParticles()booleanisRings()voidsetAccents(boolean enabled)voidsetAccentStyle(int style)voidsetAnimSpeed(float speed)voidsetBorder(boolean enabled)voidsetBorderSpeed(float speed)voidsetDurationTicks(int ticks)voidsetGroundAlpha(float alpha)voidsetGroundFill(boolean enabled)voidsetInnerColor(int color)voidsetLightning(boolean enabled)voidsetLightningDensity(float density)voidsetOuterColor(int color)voidsetOuterColorEnabled(boolean enabled)voidsetParticleDensity(float density)voidsetParticleDir(String directory)voidsetParticleGlow(boolean glow)voidsetParticleMotion(int motion)voidsetParticles(boolean enabled)voidsetParticleScale(float scale)voidsetParticleSize(int size)voidsetRingCount(int count)voidsetRings(boolean enabled)voidsetSpawnRadius(float radius)voidsetZoneCount(int count)voidsetZoneHeight(float height)voidsetZoneShapeOrdinal(int shape)-
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
-
-
-
-
Method Detail
-
getDurationTicks
int getDurationTicks()
- Returns:
- Duration of the zone in ticks.
-
setDurationTicks
void setDurationTicks(int ticks)
- Parameters:
ticks- Zone duration in ticks.
-
getZoneShapeOrdinal
int getZoneShapeOrdinal()
- Returns:
- Zone shape ordinal (0=CIRCLE, 1=SQUARE).
-
setZoneShapeOrdinal
void setZoneShapeOrdinal(int shape)
- Parameters:
shape- Zone shape ordinal (0=CIRCLE, 1=SQUARE).
-
getSpawnRadius
float getSpawnRadius()
- Returns:
- Spawn offset radius from the caster in blocks.
-
setSpawnRadius
void setSpawnRadius(float radius)
- Parameters:
radius- Spawn offset radius in blocks.
-
getZoneCount
int getZoneCount()
- Returns:
- Number of zones spawned per use.
-
setZoneCount
void setZoneCount(int count)
- Parameters:
count- Number of zones to spawn.
-
getZoneHeight
float getZoneHeight()
- Returns:
- Visual height of the zone in blocks.
-
setZoneHeight
void setZoneHeight(float height)
- Parameters:
height- Zone height in blocks.
-
getParticleDensity
float getParticleDensity()
- Returns:
- Density of particles in the zone effect.
-
setParticleDensity
void setParticleDensity(float density)
- Parameters:
density- Particle density.
-
getParticleScale
float getParticleScale()
- Returns:
- Scale of individual particles.
-
setParticleScale
void setParticleScale(float scale)
- Parameters:
scale- Particle scale.
-
getAnimSpeed
float getAnimSpeed()
- Returns:
- Animation speed multiplier for zone visual effects.
-
setAnimSpeed
void setAnimSpeed(float speed)
- Parameters:
speed- Animation speed multiplier.
-
getLightningDensity
float getLightningDensity()
- Returns:
- Density of lightning arcs in the zone.
-
setLightningDensity
void setLightningDensity(float density)
- Parameters:
density- Lightning arc density.
-
getInnerColor
int getInnerColor()
- Returns:
- Inner (core) color as a packed RGB integer.
-
setInnerColor
void setInnerColor(int color)
- Parameters:
color- Inner color as a packed RGB integer.
-
getOuterColor
int getOuterColor()
- Returns:
- Outer (glow) color as a packed RGB integer.
-
setOuterColor
void setOuterColor(int color)
- Parameters:
color- Outer color as a packed RGB integer.
-
isOuterColorEnabled
boolean isOuterColorEnabled()
- Returns:
- Whether the outer color layer is rendered.
-
setOuterColorEnabled
void setOuterColorEnabled(boolean enabled)
- Parameters:
enabled- Whether to render the outer color layer.
-
isGroundFill
boolean isGroundFill()
- Returns:
- Whether the ground fill layer is rendered.
-
setGroundFill
void setGroundFill(boolean enabled)
- Parameters:
enabled- Whether to render the ground fill.
-
getGroundAlpha
float getGroundAlpha()
- Returns:
- Alpha (opacity) of the ground fill layer (0.0-1.0).
-
setGroundAlpha
void setGroundAlpha(float alpha)
- Parameters:
alpha- Ground fill opacity (0.0-1.0).
-
isRings
boolean isRings()
- Returns:
- Whether ring decorations are rendered.
-
setRings
void setRings(boolean enabled)
- Parameters:
enabled- Whether to render rings.
-
getRingCount
int getRingCount()
- Returns:
- Number of concentric rings in the zone.
-
setRingCount
void setRingCount(int count)
- Parameters:
count- Number of rings.
-
isBorder
boolean isBorder()
- Returns:
- Whether the border outline is rendered.
-
setBorder
void setBorder(boolean enabled)
- Parameters:
enabled- Whether to render the border.
-
getBorderSpeed
float getBorderSpeed()
- Returns:
- Rotation speed of the border in degrees per tick.
-
setBorderSpeed
void setBorderSpeed(float speed)
- Parameters:
speed- Border rotation speed.
-
isAccents
boolean isAccents()
- Returns:
- Whether accent decorations are rendered.
-
setAccents
void setAccents(boolean enabled)
- Parameters:
enabled- Whether to render accents.
-
getAccentStyle
int getAccentStyle()
- Returns:
- Accent style ordinal (0=STATIC, 1=SWAYING, 2=FLICKERING).
-
setAccentStyle
void setAccentStyle(int style)
- Parameters:
style- Accent style ordinal (0=STATIC, 1=SWAYING, 2=FLICKERING).
-
isLightning
boolean isLightning()
- Returns:
- Whether lightning arcs are rendered in the zone.
-
setLightning
void setLightning(boolean enabled)
- Parameters:
enabled- Whether to render lightning.
-
isParticles
boolean isParticles()
- Returns:
- Whether particles are rendered in the zone.
-
setParticles
void setParticles(boolean enabled)
- Parameters:
enabled- Whether to render particles.
-
getParticleMotion
int getParticleMotion()
- Returns:
- Particle motion style ordinal (0=RISING, 1=DRIFTING, 2=SPARKS).
-
setParticleMotion
void setParticleMotion(int motion)
- Parameters:
motion- Particle motion style ordinal (0=RISING, 1=DRIFTING, 2=SPARKS).
-
getParticleDir
String getParticleDir()
- Returns:
- Resource directory path for custom particle textures.
-
setParticleDir
void setParticleDir(String directory)
- Parameters:
directory- Resource directory path for particle textures.
-
getParticleSize
int getParticleSize()
- Returns:
- Size of individual particles in pixels.
-
setParticleSize
void setParticleSize(int size)
- Parameters:
size- Particle size in pixels.
-
isParticleGlow
boolean isParticleGlow()
- Returns:
- Whether particles use the glow (fullbright) render mode.
-
setParticleGlow
void setParticleGlow(boolean glow)
- Parameters:
glow- Whether particles glow.
-
-