Made NPC projectile and death events cancellable.

This commit is contained in:
Luis C.M committed 2022-11-05 04:21:30 -05:00
1 parent 6782a5b9ba
commit 112e82a09d
1 file changed
+2
@@ -106,6 +106,7 @@ public class NpcEvent extends CustomNPCsEvent {
}
}
@Cancelable
public static class RangedLaunchedEvent extends NpcEvent {
public final IEntityLivingBase target;
public float damage;
@@ -199,6 +200,7 @@ public class NpcEvent extends CustomNPCsEvent {
}
}
@Cancelable
public static class DiedEvent extends NpcEvent {
public final IDamageSource damageSource;
public final String type;