mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 23:25:08 +00:00
Add Hook Name to Custom Hooks
This commit is contained in:
1 parent
d6450380c7
commit
76ce22d713
12 files changed
+143
-1
No files matched your search
@@ -57,6 +57,9 @@ public interface INpcEvent extends ICustomNPCsEvent {
|
||||
float getDamage();
|
||||
}
|
||||
|
||||
/**
|
||||
* @hookName meleeSwing
|
||||
*/
|
||||
interface SwingEvent extends INpcEvent {
|
||||
|
||||
/**
|
||||
@@ -66,10 +69,16 @@ public interface INpcEvent extends ICustomNPCsEvent {
|
||||
IItemStack getItemStack();
|
||||
}
|
||||
|
||||
/**
|
||||
* @hookName kills
|
||||
*/
|
||||
interface KilledEntityEvent {
|
||||
IEntityLivingBase getEntity();
|
||||
}
|
||||
|
||||
/**
|
||||
* @hookName killed
|
||||
*/
|
||||
@Cancelable
|
||||
interface DiedEvent extends INpcEvent {
|
||||
IEntity getSource();
|
||||
@@ -127,6 +136,9 @@ public interface INpcEvent extends ICustomNPCsEvent {
|
||||
IEntityLivingBase getTarget();
|
||||
}
|
||||
|
||||
/**
|
||||
* @hookName tick
|
||||
*/
|
||||
interface UpdateEvent extends INpcEvent {
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user