blob: e0b702da2597eca211767ebc8cf220ae38642c2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package ihl.processing.metallurgy;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
public class CrucibleSlot extends Slot
{
CrucibleInventory inventory;
public CrucibleSlot(CrucibleInventory arg0, int arg1, int arg2, int arg3)
{
super(arg0, arg1, arg2, arg3);
inventory=arg0;
}
@Override
public boolean isItemValid(ItemStack itemstack)
{
return itemstack == null ? false : inventory.isItemValidForSlot(0, itemstack);
}
}
|