mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-15 07:54:43 +00:00
Add IProjectile and IProjectile Sub Events to API
This commit is contained in:
1 parent
8c064246f8
commit
fd31facd12
2 files changed
+28
No files matched your search
@@ -40,6 +40,10 @@ public interface IProjectile {
|
||||
*/
|
||||
public void setHeading(float yaw, float pitch);
|
||||
|
||||
|
||||
public IEntity getThrower();
|
||||
|
||||
|
||||
/**
|
||||
* For scripters to enable projectile events in their current scripting container
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
package noppes.npcs.api.event;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.Cancelable;
|
||||
import noppes.npcs.api.IBlock;
|
||||
import noppes.npcs.api.entity.IEntity;
|
||||
import noppes.npcs.api.entity.IProjectile;
|
||||
import noppes.npcs.api.handler.data.IQuest;
|
||||
import noppes.npcs.api.item.IItemStack;
|
||||
|
||||
public interface IProjectileEvent extends ICustomNPCsEvent {
|
||||
|
||||
public IProjectile getProjectile();
|
||||
public IEntity getSource();
|
||||
|
||||
interface UpdateEvent extends IProjectileEvent {
|
||||
}
|
||||
|
||||
interface ImpactEvent extends IProjectileEvent {
|
||||
public int getType();
|
||||
public IEntity getEntity();
|
||||
public IBlock getBlock();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user