aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/slots/SlotFuelRod.java
diff options
context:
space:
mode:
authordraknyte1 <draknyte1@hotmail.com>2017-03-12 13:55:59 +1000
committerdraknyte1 <draknyte1@hotmail.com>2017-03-12 13:55:59 +1000
commitd30eb824cb12b0a7301c435330875cf1c60fb29a (patch)
tree68be4a02d45ca04bb9b71d6f66ae3250f7f83b64 /src/Java/gtPlusPlus/core/slots/SlotFuelRod.java
parentf11f2ebc76a5a80851da94b03cbafb0608fc2a7d (diff)
downloadGT5-Unofficial-d30eb824cb12b0a7301c435330875cf1c60fb29a.tar.gz
GT5-Unofficial-d30eb824cb12b0a7301c435330875cf1c60fb29a.tar.bz2
GT5-Unofficial-d30eb824cb12b0a7301c435330875cf1c60fb29a.zip
+ Added missing classes from the Helium Generator. Forgot to commit them last time.
Diffstat (limited to 'src/Java/gtPlusPlus/core/slots/SlotFuelRod.java')
-rw-r--r--src/Java/gtPlusPlus/core/slots/SlotFuelRod.java25
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;
+ }
+
+}