Added CustomGuiEvent.SlotClickEvent.

This commit is contained in:
Luis C.M committed 2022-06-18 12:52:23 -05:00
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;
}
}
}