aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/events
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/Danker/events')
-rw-r--r--src/main/java/me/Danker/events/ChestSlotClickedEvent.java34
-rw-r--r--src/main/java/me/Danker/events/GuiChestBackgroundDrawnEvent.java22
-rw-r--r--src/main/java/me/Danker/events/RenderOverlay.java6
3 files changed, 62 insertions, 0 deletions
diff --git a/src/main/java/me/Danker/events/ChestSlotClickedEvent.java b/src/main/java/me/Danker/events/ChestSlotClickedEvent.java
new file mode 100644
index 0000000..5e4702c
--- /dev/null
+++ b/src/main/java/me/Danker/events/ChestSlotClickedEvent.java
@@ -0,0 +1,34 @@
+package me.Danker.events;
+
+import net.minecraft.client.gui.inventory.GuiChest;
+import net.minecraft.inventory.IInventory;
+import net.minecraft.inventory.Slot;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.fml.common.eventhandler.Cancelable;
+import net.minecraftforge.fml.common.eventhandler.Event;
+
+@Cancelable
+public class ChestSlotClickedEvent extends Event {
+ public final GuiChest chest;
+ public final IInventory inventory;
+ public final String inventoryName;
+ public final Slot slot;
+ public final ItemStack item;
+
+ public ChestSlotClickedEvent(GuiChest chest, IInventory inventory, String inventoryName, Slot slot, ItemStack item) {
+ this.chest = chest;
+ this.inventory = inventory;
+ this.inventoryName = inventoryName;
+ this.slot = slot;
+ this.item = item;
+ }
+
+ public ChestSlotClickedEvent(GuiChest chest, IInventory inventory, String inventoryName, Slot slot) {
+ this.chest = chest;
+ this.inventory = inventory;
+ this.inventoryName = inventoryName;
+ this.slot = slot;
+ item = null;
+ }
+
+}
diff --git a/src/main/java/me/Danker/events/GuiChestBackgroundDrawnEvent.java b/src/main/java/me/Danker/events/GuiChestBackgroundDrawnEvent.java
new file mode 100644
index 0000000..eecbb41
--- /dev/null
+++ b/src/main/java/me/Danker/events/GuiChestBackgroundDrawnEvent.java
@@ -0,0 +1,22 @@
+package me.Danker.events;
+
+import net.minecraft.client.gui.inventory.GuiChest;
+import net.minecraft.inventory.Slot;
+import net.minecraftforge.fml.common.eventhandler.Event;
+
+import java.util.List;
+
+public class GuiChestBackgroundDrawnEvent extends Event {
+ public final GuiChest chest;
+ public final String displayName;
+ public final int chestSize;
+ public final List<Slot> slots;
+
+ public GuiChestBackgroundDrawnEvent(GuiChest chest, String displayName, int chestSize, List<Slot> slots) {
+ this.chest = chest;
+ this.displayName = displayName;
+ this.chestSize = chestSize;
+ this.slots = slots;
+ }
+
+}
diff --git a/src/main/java/me/Danker/events/RenderOverlay.java b/src/main/java/me/Danker/events/RenderOverlay.java
new file mode 100644
index 0000000..06c181f
--- /dev/null
+++ b/src/main/java/me/Danker/events/RenderOverlay.java
@@ -0,0 +1,6 @@
+package me.Danker.events;
+
+import net.minecraftforge.fml.common.eventhandler.Event;
+
+public class RenderOverlay extends Event {
+}