blob: 5e4702cbc6a9670329030d9fe44a94417164afa5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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;
}
}
|