mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 11:54:48 +00:00
Energy Explosion API and some changes to Energy Projectile API
This commit is contained in:
1 parent
e4e2466a6e
commit
4e96425314
3 files changed
+74
-5
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package noppes.npcs.api;
|
||||
|
||||
import noppes.npcs.api.entity.*;
|
||||
import noppes.npcs.api.entity.IEnergyExplosion;
|
||||
|
||||
/**
|
||||
* Central controller for creating energy entities and routing energy damage.
|
||||
@@ -63,4 +64,12 @@ public interface IEnergyController {
|
||||
* Panels are flat energy barriers that can deal damage on contact.
|
||||
*/
|
||||
IEnergyPanel createPanel(IWorld world, IEntity owner, double x, double y, double z);
|
||||
|
||||
// ==================== EXPLOSION CREATION ====================
|
||||
|
||||
/**
|
||||
* Create an energy explosion entity. Not spawned until spawn() is called.
|
||||
* Visual-only by default. Set damage > 0 to enable area damage with falloff.
|
||||
*/
|
||||
IEnergyExplosion createExplosion(IWorld world, IEntity owner, double x, double y, double z, float radius);
|
||||
}
|
||||
Reference in new issue
Block a user