aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/slots/SlotModularBauble.java
blob: 4aef5bc877c9eb37280b282bb07129460b8e48d3 (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
27
28
29
30
31
32
package gtPlusPlus.core.slots;

import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;

import gtPlusPlus.core.item.bauble.ModularBauble;

public class SlotModularBauble extends Slot {

	public SlotModularBauble(final IInventory inventory, final int slot, final int x, final int y) {
		super(inventory, slot, x, y);

	}

	@Override
	public boolean isItemValid(final ItemStack itemstack) {
		boolean isValid = false;

		if (itemstack != null) {
			if (itemstack.getItem() instanceof ModularBauble) {
				isValid = true;
			}
		}
		return isValid;
	}

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