Package noppes.npcs.api.ability.type
Interface IAbilityOrb
-
- All Superinterfaces:
IAbility,IAbilityAction,IAbilityEnergyProjectile
public interface IAbilityOrb extends IAbilityEnergyProjectile
API interface for Orb abilities. Homing projectile sphere.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetAnchorPoint(int projectileIndex)intgetFireDelay()floatgetHomingRange()floatgetHomingStrength()intgetInnerColor(int projectileIndex)floatgetOrbSize()floatgetOrbSpeed()intgetOuterColor(int projectileIndex)intgetProjectileCount()floatgetRotationSpeed()booleanisHoming()voidsetAnchorPoint(int projectileIndex, int point)voidsetFireDelay(int delay)voidsetHoming(boolean homing)voidsetHomingRange(float range)voidsetHomingStrength(float strength)voidsetInnerColor(int projectileIndex, int color)voidsetOrbSize(float size)voidsetOrbSpeed(float speed)voidsetOuterColor(int projectileIndex, int color)voidsetProjectileCount(int count)voidsetRotationSpeed(float speed)-
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.IAbilityEnergyProjectile
getAnchorPoint, getDamage, getExplosionDamageFalloff, getExplosionRadius, getHitType, getInnerColor, getKnockback, getKnockbackUp, getLaunchFromAnchor, getLightningDensity, getLightningRadius, getMaxDistance, getMaxHits, getMaxLifetime, getMultiHitDelayTicks, getOuterColor, getOuterColorAlpha, getOuterColorWidth, hasLightningEffect, isExplosive, isOuterColorEnabled, setAnchorPoint, setDamage, setExplosionDamageFalloff, setExplosionRadius, setExplosive, setHitType, setInnerColor, setKnockback, setKnockbackUp, setLaunchFromAnchor, setLightningDensity, setLightningEffect, setLightningRadius, setMaxDistance, setMaxHits, setMaxLifetime, setMultiHitDelayTicks, setOuterColor, setOuterColorAlpha, setOuterColorEnabled, setOuterColorWidth
-
-
-
-
Method Detail
-
getOrbSpeed
float getOrbSpeed()
- Returns:
- Travel speed of the orb in blocks per tick.
-
setOrbSpeed
void setOrbSpeed(float speed)
- Parameters:
speed- Travel speed in blocks per tick.
-
getOrbSize
float getOrbSize()
- Returns:
- Visual size (radius) of the orb in blocks.
-
setOrbSize
void setOrbSize(float size)
- Parameters:
size- Orb size in blocks.
-
isHoming
boolean isHoming()
- Returns:
- Whether the orb tracks its target.
-
setHoming
void setHoming(boolean homing)
- Parameters:
homing- Whether to track the target.
-
getHomingStrength
float getHomingStrength()
- Returns:
- Homing turn strength (higher = tighter turns).
-
setHomingStrength
void setHomingStrength(float strength)
- Parameters:
strength- Homing turn strength.
-
getHomingRange
float getHomingRange()
- Returns:
- Maximum distance at which homing activates, in blocks.
-
setHomingRange
void setHomingRange(float range)
- Parameters:
range- Maximum homing activation range in blocks.
-
getRotationSpeed
float getRotationSpeed()
- Returns:
- Visual rotation speed of the orb in degrees per tick.
-
setRotationSpeed
void setRotationSpeed(float speed)
- Parameters:
speed- Rotation speed in degrees per tick.
-
getProjectileCount
int getProjectileCount()
- Returns:
- Number of orb projectiles fired per use.
-
setProjectileCount
void setProjectileCount(int count)
- Parameters:
count- Number of projectiles per use.
-
getFireDelay
int getFireDelay()
- Returns:
- Delay in ticks between each projectile in a multi-projectile volley.
-
setFireDelay
void setFireDelay(int delay)
- Parameters:
delay- Delay in ticks between projectiles.
-
getInnerColor
int getInnerColor(int projectileIndex)
- Parameters:
projectileIndex- Projectile index.- Returns:
- Inner color as a packed RGB integer.
-
setInnerColor
void setInnerColor(int projectileIndex, int color)- Parameters:
projectileIndex- Projectile index.color- Inner color as a packed RGB integer.
-
getOuterColor
int getOuterColor(int projectileIndex)
- Parameters:
projectileIndex- Projectile index.- Returns:
- Outer color as a packed RGB integer.
-
setOuterColor
void setOuterColor(int projectileIndex, int color)- Parameters:
projectileIndex- Projectile index.color- Outer color as a packed RGB integer.
-
getAnchorPoint
int getAnchorPoint(int projectileIndex)
- Parameters:
projectileIndex- Projectile index.- Returns:
- Anchor point ordinal.
-
setAnchorPoint
void setAnchorPoint(int projectileIndex, int point)- Parameters:
projectileIndex- Projectile index.point- Anchor point ordinal.
-
-