mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 02:42:18 +00:00
Added CustomGuiEvent.SlotClickEvent.
This commit is contained in:
1 parent
cc1c6c1910
commit
b45cad77dd
5 files changed
+55
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package noppes.npcs.scripted.event;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.Cancelable;
|
||||
import cpw.mods.fml.common.eventhandler.Event;
|
||||
import noppes.npcs.scripted.interfaces.gui.ICustomGui;
|
||||
import noppes.npcs.scripted.interfaces.item.IItemStack;
|
||||
@@ -63,4 +64,23 @@ public class CustomGuiEvent extends Event {
|
||||
this.stack = stack;
|
||||
}
|
||||
}
|
||||
|
||||
@Cancelable
|
||||
public static class SlotClickEvent extends CustomGuiEvent {
|
||||
public final int slotId;
|
||||
public final IItemStack stack;
|
||||
public final int dragType;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public final int clickType;
|
||||
|
||||
public SlotClickEvent(IPlayer player, ICustomGui gui, int slotId, IItemStack stack, int dragType, int clickType) {
|
||||
super(player,gui);
|
||||
this.slotId = slotId;
|
||||
this.stack = stack;
|
||||
this.dragType = dragType;
|
||||
this.clickType = clickType;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user