mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-17 22:45:12 +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
@@ -10,15 +10,27 @@ public interface ICustomGuiEvent extends IPlayerEvent {
|
||||
|
||||
int getId();
|
||||
|
||||
/**
|
||||
* @hookName customGuiButton
|
||||
*/
|
||||
interface ButtonEvent extends ICustomGuiEvent {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hookName customGuiTextfield
|
||||
*/
|
||||
interface UnfocusedEvent extends ICustomGuiEvent {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hookName customGuiClosed
|
||||
*/
|
||||
interface CloseEvent extends ICustomGuiEvent {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hookName customGuiScroll
|
||||
*/
|
||||
interface ScrollEvent extends ICustomGuiEvent {
|
||||
String[] getSelection();
|
||||
|
||||
@@ -27,10 +39,16 @@ public interface ICustomGuiEvent extends IPlayerEvent {
|
||||
int getScrollIndex();
|
||||
}
|
||||
|
||||
/**
|
||||
* @hookName customGuiSlot
|
||||
*/
|
||||
interface SlotEvent extends ICustomGuiEvent {
|
||||
IItemStack getStack();
|
||||
}
|
||||
|
||||
/**
|
||||
* @hookName customGuiSlotClicked
|
||||
*/
|
||||
@Cancelable
|
||||
interface SlotClickEvent extends ICustomGuiEvent {
|
||||
IItemStack getStack();
|
||||
|
||||
Reference in new issue
Block a user