blob: 1f16463de26d565c52d8eecd8cd6364cf3f9c6a4 (
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 ic2.core.Ic2Items;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
public class SlotRTG extends Slot{
public SlotRTG(IInventory inventory, int x, int y, int z) {
super(inventory, x, y, z);
}
@Override
public boolean isItemValid(ItemStack itemstack) {
return itemstack.getItem().getClass() == Ic2Items.RTGPellets.getItem().getClass();
}
@Override
public int getSlotStackLimit() {
return 1;
}
}
|