diff options
Diffstat (limited to 'src/Java/gtPlusPlus/core/slots')
| -rw-r--r-- | src/Java/gtPlusPlus/core/slots/SlotFuelRod.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/core/slots/SlotFuelRod.java b/src/Java/gtPlusPlus/core/slots/SlotFuelRod.java new file mode 100644 index 0000000000..f925376c69 --- /dev/null +++ b/src/Java/gtPlusPlus/core/slots/SlotFuelRod.java @@ -0,0 +1,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; + } + +} |
