From d30eb824cb12b0a7301c435330875cf1c60fb29a Mon Sep 17 00:00:00 2001 From: draknyte1 Date: Sun, 12 Mar 2017 13:55:59 +1000 Subject: + Added missing classes from the Helium Generator. Forgot to commit them last time. --- src/Java/gtPlusPlus/core/slots/SlotFuelRod.java | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/Java/gtPlusPlus/core/slots/SlotFuelRod.java (limited to 'src/Java/gtPlusPlus/core/slots') 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; + } + +} -- cgit