blob: f925376c69f87cc887382ccfcff6356d5f809481 (
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 SlotFuelRod extends Slot{
public SlotFuelRod(final IInventory inventory, final int index, final int x, final int y) {
super(inventory, index, x, y);
}
@Override
public boolean isItemValid(final ItemStack itemstack) {
return itemstack.getItem().getClass() == Ic2Items.fuelRod.getItem().getClass();
}
@Override
public int getSlotStackLimit() {
return 1;
}
}
|