diff options
author | draknyte1 <draknyte1@hotmail.com> | 2017-03-12 14:48:09 +1000 |
---|---|---|
committer | draknyte1 <draknyte1@hotmail.com> | 2017-03-12 14:48:09 +1000 |
commit | 802e9f212db00cf9d8179534cc782b6585b2637e (patch) | |
tree | 569434f6e5daa19c4d3c5bb400c755c910db8fdb /src/Java/gtPlusPlus/core/slots | |
parent | bf03b8cc8f2c74b9bd5ddf695ea76ae16c8e7de4 (diff) | |
download | GT5-Unofficial-802e9f212db00cf9d8179534cc782b6585b2637e.tar.gz GT5-Unofficial-802e9f212db00cf9d8179534cc782b6585b2637e.tar.bz2 GT5-Unofficial-802e9f212db00cf9d8179534cc782b6585b2637e.zip |
+ Added more misc. item textures.
$ Fixed Helium Generator slot handling.
$ Fixed HG slot locations within the GUI.
Diffstat (limited to 'src/Java/gtPlusPlus/core/slots')
-rw-r--r-- | src/Java/gtPlusPlus/core/slots/SlotFuelRod.java | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/src/Java/gtPlusPlus/core/slots/SlotFuelRod.java b/src/Java/gtPlusPlus/core/slots/SlotFuelRod.java index f925376c69..7933ea136e 100644 --- a/src/Java/gtPlusPlus/core/slots/SlotFuelRod.java +++ b/src/Java/gtPlusPlus/core/slots/SlotFuelRod.java @@ -1,5 +1,6 @@ package gtPlusPlus.core.slots; +import gregtech.api.enums.ItemList; import ic2.core.Ic2Items; import net.minecraft.inventory.IInventory; import net.minecraft.inventory.Slot; @@ -14,7 +15,40 @@ public class SlotFuelRod extends Slot{ @Override public boolean isItemValid(final ItemStack itemstack) { - return itemstack.getItem().getClass() == Ic2Items.fuelRod.getItem().getClass(); + boolean returnValue = false; + //Uranium Rods + if (itemstack.getItem() == Ic2Items.reactorUraniumSimple.getItem()){ + returnValue = true; + } + else if (itemstack.getItem() == Ic2Items.reactorUraniumDual.getItem()){ + returnValue = true; + } + else if (itemstack.getItem() == Ic2Items.reactorUraniumQuad.getItem()){ + returnValue = true; + } + + //Mox Rods + if (itemstack.getItem() == Ic2Items.reactorMOXSimple.getItem()){ + returnValue = true; + } + else if (itemstack.getItem() == Ic2Items.reactorMOXDual.getItem()){ + returnValue = true; + } + else if (itemstack.getItem() == Ic2Items.reactorMOXQuad.getItem()){ + returnValue = true; + } + + //Thorium Rods + if (itemstack.getItem() == ItemList.ThoriumCell_1.getItem()){ + returnValue = true; + } + else if (itemstack.getItem() == ItemList.ThoriumCell_2.getItem()){ + returnValue = true; + } + else if (itemstack.getItem() == ItemList.ThoriumCell_4.getItem()){ + returnValue = true; + } + return returnValue; } @Override |