blob: 88735aaa55a2adea2321acfe6f545e157a00608c (
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
|
package gtPlusPlus.core.slots;
import gtPlusPlus.core.item.bauble.ModularBauble;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
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;
}
}
|