blob: 8a87552d0fbadff138c208ddf2a40371e8ce4e14 (
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;
}
}
|