Add IProjectile and IProjectile Sub Events to API

This commit is contained in:
Kam committed 2023-12-31 16:09:38 -05:00
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();
}
}