mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 01:27:27 +00:00
Made NPC projectile and death events cancellable.
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user