2014-12-15 00:11:48 +00:00
|
|
|
package com.cricketcraft.chisel.inventory;
|
2014-04-21 19:13:15 +01:00
|
|
|
|
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
|
import net.minecraft.entity.player.InventoryPlayer;
|
|
|
|
|
import net.minecraft.inventory.Slot;
|
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
|
2015-01-07 19:50:18 -05:00
|
|
|
public class SlotChiselPlayer extends Slot {
|
2014-04-21 19:13:15 +01:00
|
|
|
|
2015-01-07 19:50:18 -05:00
|
|
|
public SlotChiselPlayer(ContainerChisel container, InventoryPlayer inv, int i, int j, int k) {
|
|
|
|
|
super(inv, i, j, k);
|
|
|
|
|
|
|
|
|
|
this.container = container;
|
|
|
|
|
selInventory = inv;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public boolean isItemValid(ItemStack par1ItemStack) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onPickupFromSlot(EntityPlayer player, ItemStack itemstack) {
|
|
|
|
|
container.finished = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public boolean getHasStack() {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public ItemStack decrStackSize(int i) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ContainerChisel container;
|
|
|
|
|
InventoryPlayer selInventory;
|
2014-04-21 19:13:15 +01:00
|
|
|
}
|