mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-17 01:45:08 +00:00
Add CNPC+ Api
This commit is contained in:
1 parent
0c4db676e4
commit
95e2f9df01
109 files changed
+7308
No files matched your search
@@ -0,0 +1,43 @@
|
||||
package noppes.npcs.api.event;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.Cancelable;
|
||||
import noppes.npcs.api.entity.IPlayer;
|
||||
import noppes.npcs.api.gui.ICustomGui;
|
||||
import noppes.npcs.api.item.IItemStack;
|
||||
|
||||
public interface ICustomGuiEvent extends ICustomNPCsEvent {
|
||||
|
||||
IPlayer getPlayer();
|
||||
|
||||
ICustomGui getGui();
|
||||
|
||||
int getId();
|
||||
|
||||
interface ButtonEvent extends ICustomGuiEvent {
|
||||
}
|
||||
|
||||
interface UnfocusedEvent extends ICustomGuiEvent {
|
||||
}
|
||||
|
||||
interface CloseEvent extends ICustomGuiEvent {
|
||||
}
|
||||
|
||||
interface ScrollEvent extends ICustomGuiEvent {
|
||||
String[] getSelection();
|
||||
|
||||
boolean doubleClick();
|
||||
|
||||
int getScrollIndex();
|
||||
}
|
||||
|
||||
interface SlotEvent extends ICustomGuiEvent {
|
||||
IItemStack getStack();
|
||||
}
|
||||
|
||||
@Cancelable
|
||||
interface SlotClickEvent extends ICustomGuiEvent {
|
||||
IItemStack getStack();
|
||||
|
||||
int getDragType();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user