mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-17 22:45:12 +00:00
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:
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);
|
||||
}
|
||||
Reference in new issue
Block a user