use of convenientadditions.api.gui.container.IFakeSlot in project ConvenientAdditions by Necr0.
the class CAContainer method slotClick.
@Override
public ItemStack slotClick(int index, int button, ClickType mode, EntityPlayer player) {
InventoryPlayer inventoryplayer = player.inventory;
ItemStack held = inventoryplayer.getItemStack();
if (index >= 0) {
Slot s = getSlot(index);
if (s instanceof IFakeSlot) {
return ((IFakeSlot) s).slotClick(this, button, mode, player);
}
}
return super.slotClick(index, button, mode, player);
}
Aggregations