diff --git a/java/noppes/npcs/api/ability/type/IAbilityLaser.java b/java/noppes/npcs/api/ability/type/IAbilityLaser.java new file mode 100644 index 0000000..af26095 --- /dev/null +++ b/java/noppes/npcs/api/ability/type/IAbilityLaser.java @@ -0,0 +1,20 @@ +package noppes.npcs.api.ability.type; + +/** + * API interface for Laser abilities. + * Sweeping beam that follows the caster's look vector. + */ +public interface IAbilityLaser extends IAbilityEnergyProjectile { + + float getLaserWidth(); + + void setLaserWidth(float width); + + float getExpansionSpeed(); + + void setExpansionSpeed(float speed); + + float getMaxLength(); + + void setMaxLength(float maxLength); +} diff --git a/java/noppes/npcs/api/ability/type/IAbilityLaserShot.java b/java/noppes/npcs/api/ability/type/IAbilityLaserShot.java deleted file mode 100644 index fc9fc3b..0000000 --- a/java/noppes/npcs/api/ability/type/IAbilityLaserShot.java +++ /dev/null @@ -1,20 +0,0 @@ -package noppes.npcs.api.ability.type; - -/** - * API interface for Laser Shot abilities. - * Fast expanding thin line that pierces through targets. - */ -public interface IAbilityLaserShot extends IAbilityEnergyProjectile { - - float getLaserWidth(); - - void setLaserWidth(float width); - - float getExpansionSpeed(); - - void setExpansionSpeed(float speed); - - int getLingerTicks(); - - void setLingerTicks(int ticks); -} diff --git a/java/noppes/npcs/api/entity/IEnergyLaser.java b/java/noppes/npcs/api/entity/IEnergyLaser.java index 32a3f66..6433086 100644 --- a/java/noppes/npcs/api/entity/IEnergyLaser.java +++ b/java/noppes/npcs/api/entity/IEnergyLaser.java @@ -3,7 +3,7 @@ package noppes.npcs.api.entity; import net.minecraft.entity.Entity; /** - * Represents an energy laser projectile - a fast expanding line. + * Represents an energy laser entity - a sweeping beam that follows the caster's look vector. */ public interface IEnergyLaser extends IEnergyProjectile { @@ -15,9 +15,9 @@ public interface IEnergyLaser extends IEnergyProjectile { void setExpansionSpeed(float speed); - int getLingerTicks(); + float getMaxLength(); - void setLingerTicks(int ticks); + void setMaxLength(float maxLength); float getCurrentLength(); @@ -36,10 +36,4 @@ public interface IEnergyLaser extends IEnergyProjectile { double getEndY(); double getEndZ(); - - float getLingerAlpha(); - - boolean isLockVerticalDirection(); - - void setLockVerticalDirection(boolean lock); }