blob: 13bc8fa71756e80b992f7601b59c7f0762857d68 (
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
|
package gtPlusPlus.core.slots;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
import forestry.api.apiculture.IHiveFrame;
public class SlotFrame extends Slot{
public SlotFrame(IInventory inventory, int x, int y, int z) {
super(inventory, x, y, z);
}
@Override
public boolean isItemValid(ItemStack itemstack) {
return itemstack.getItem() instanceof IHiveFrame;
}
@Override
public int getSlotStackLimit() {
return 1;
}
}
|