Add CNPC+ Api

This commit is contained in:
KAMKEEL committed 2022-11-25 00:57:24 -05:00
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();
}
}