mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-14 20:14:43 +00:00
41 lines
825 B
Java
41 lines
825 B
Java
package noppes.npcs.api.event;
|
|
|
|
import cpw.mods.fml.common.eventhandler.Cancelable;
|
|
import noppes.npcs.api.gui.ICustomGui;
|
|
import noppes.npcs.api.item.IItemStack;
|
|
|
|
public interface ICustomGuiEvent extends IPlayerEvent {
|
|
|
|
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();
|
|
}
|
|
}
|