Add energy projectile types and events: implement IEnergyOrb, IEnergyBeam, IEnergyDisc, and IEnergyLaser interfaces, along with their respective script handlers and event hooks

This commit is contained in:
Kam committed 2026-02-16 01:03:05 -05:00
1 parent 66fff09d20
commit efa8721d36
10 files changed
+402 -5

No files matched your search

@@ -0,0 +1,45 @@
package noppes.npcs.api.entity;
import net.minecraft.entity.Entity;
/**
* Represents an energy laser projectile - a fast expanding piercing line.
*/
public interface IEnergyLaser<T extends Entity> extends IEnergyProjectile<T> {
float getLaserWidth();
void setLaserWidth(float width);
float getExpansionSpeed();
void setExpansionSpeed(float speed);
int getLingerTicks();
void setLingerTicks(int ticks);
float getCurrentLength();
boolean isFullyExtended();
double getDirX();
double getDirY();
double getDirZ();
void setDirection(double x, double y, double z);
double getEndX();
double getEndY();
double getEndZ();
float getLingerAlpha();
boolean isLockVerticalDirection();
void setLockVerticalDirection(boolean lock);
}