aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/slots/SlotFrame.java
blob: 4168ded5bcd777f9a33260f6fbb636185b636386 (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
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(final IInventory inventory, final int x, final int y, final int z) {
		super(inventory, x, y, z);

	}

	@Override
	public boolean isItemValid(final ItemStack itemstack) {
		return itemstack.getItem() instanceof IHiveFrame;
	}

	@Override
	public int getSlotStackLimit() {
		return 1;
	}

}