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