mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-18 02:15:14 +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
@@ -13,6 +13,9 @@ public interface IItemEvent extends ICustomNPCsEvent {
|
||||
interface InitEvent extends IItemEvent {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hookName tick
|
||||
*/
|
||||
interface UpdateEvent extends IItemEvent {
|
||||
IEntity getEntity();
|
||||
}
|
||||
@@ -60,6 +63,9 @@ public interface IItemEvent extends ICustomNPCsEvent {
|
||||
IEntity getSwingingEntity();
|
||||
}
|
||||
|
||||
/**
|
||||
* @hookName startItem
|
||||
*/
|
||||
interface StartUsingItem extends IItemEvent {
|
||||
IPlayer getPlayer();
|
||||
|
||||
@@ -72,12 +78,18 @@ public interface IItemEvent extends ICustomNPCsEvent {
|
||||
int getDuration();
|
||||
}
|
||||
|
||||
/**
|
||||
* @hookName stopItem
|
||||
*/
|
||||
interface StopUsingItem extends IItemEvent {
|
||||
IPlayer getPlayer();
|
||||
|
||||
int getDuration();
|
||||
}
|
||||
|
||||
/**
|
||||
* @hookName finishItem
|
||||
*/
|
||||
interface FinishUsingItem extends IItemEvent {
|
||||
IPlayer getPlayer();
|
||||
|
||||
|
||||
Reference in new issue
Block a user