Files
CustomNPC-Plus/src/main/java/noppes/npcs/scripted/event/ProjectileEvent.java
T

37 lines
885 B
Java
Raw Normal View History

2023-03-16 02:51:40 -05:00
package noppes.npcs.scripted.event;
import noppes.npcs.api.entity.IProjectile;
public class ProjectileEvent extends CustomNPCsEvent {
public IProjectile projectile;
public ProjectileEvent(IProjectile projectile) {
this.projectile = projectile;
}
/**
* projectileTick
*/
public static class UpdateEvent extends ProjectileEvent {
public UpdateEvent(IProjectile projectile) {
super(projectile);
}
}
/**
* projectileImpact
*/
public static class ImpactEvent extends ProjectileEvent {
/**
* 0:entity, 1:block
*/
public final int type;
public final Object target;
public ImpactEvent(IProjectile projectile, int type, Object target) {
super(projectile);
this.type = type;
this.target = target;
}
}
}