Package noppes.npcs.api.ability.type
Interface IAbilityLaser
-
- All Superinterfaces:
IAbility,IAbilityAction,IAbilityEnergyProjectile
public interface IAbilityLaser extends IAbilityEnergyProjectile
API interface for Laser abilities. Sweeping beam that follows the caster's look vector.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description floatgetExpansionSpeed()floatgetLaserWidth()floatgetMaxLength()voidsetExpansionSpeed(float speed)voidsetLaserWidth(float width)voidsetMaxLength(float maxLength)-
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
-
getLaserWidth
float getLaserWidth()
- Returns:
- Width of the laser beam in blocks.
-
setLaserWidth
void setLaserWidth(float width)
- Parameters:
width- Laser beam width in blocks.
-
getExpansionSpeed
float getExpansionSpeed()
- Returns:
- Speed at which the laser extends to its max length, in blocks per tick.
-
setExpansionSpeed
void setExpansionSpeed(float speed)
- Parameters:
speed- Expansion speed in blocks per tick.
-
getMaxLength
float getMaxLength()
- Returns:
- Maximum length the laser can reach in blocks.
-
setMaxLength
void setMaxLength(float maxLength)
- Parameters:
maxLength- Maximum laser length in blocks.
-
-