Complete Overhaul to Laser Shot -> Ability Laser

This commit is contained in:
Kam committed 2026-02-25 03:52:19 -05:00
1 parent 34a7ea020b
commit 52cfe77bb7
3 files changed
+23 -29

No files matched your search

@@ -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);
}
@@ -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);
}
@@ -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<T extends Entity> extends IEnergyProjectile<T> {
@@ -15,9 +15,9 @@ public interface IEnergyLaser<T extends Entity> extends IEnergyProjectile<T> {
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<T extends Entity> extends IEnergyProjectile<T> {
double getEndY();
double getEndZ();
float getLingerAlpha();
boolean isLockVerticalDirection();
void setLockVerticalDirection(boolean lock);
}