From 072f6322fb789703f163030edf4b60bf5a0201af Mon Sep 17 00:00:00 2001 From: Draknyte1 Date: Sat, 27 Aug 2016 01:34:08 +1000 Subject: + Attempted to add custom IC2 generators. % Refactored the xmod package to be a parent, beside core. No longer is it a child, it needs room to grow. --- src/Java/miscutil/core/slots/SlotRTG.java | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/Java/miscutil/core/slots/SlotRTG.java (limited to 'src/Java/miscutil/core/slots') diff --git a/src/Java/miscutil/core/slots/SlotRTG.java b/src/Java/miscutil/core/slots/SlotRTG.java new file mode 100644 index 0000000000..b653cc62d1 --- /dev/null +++ b/src/Java/miscutil/core/slots/SlotRTG.java @@ -0,0 +1,25 @@ +package miscutil.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; + } + +} -- cgit