Add Hook Name to Custom Hooks

This commit is contained in:
Kam committed 2026-01-09 22:58:29 -05:00
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();