From aa42aedecd2d2842351088085e8fd9d69ec79565 Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Fri, 14 Apr 2017 07:58:16 +0300 Subject: Colourful lights --- .../chemistry/CryogenicDistillerContainer.java | 60 +++------------------- 1 file changed, 6 insertions(+), 54 deletions(-) (limited to 'ihl/processing/chemistry/CryogenicDistillerContainer.java') diff --git a/ihl/processing/chemistry/CryogenicDistillerContainer.java b/ihl/processing/chemistry/CryogenicDistillerContainer.java index be35e2a..d04ec4e 100644 --- a/ihl/processing/chemistry/CryogenicDistillerContainer.java +++ b/ihl/processing/chemistry/CryogenicDistillerContainer.java @@ -10,36 +10,18 @@ import net.minecraft.inventory.ICrafting; import net.minecraft.inventory.Slot; import net.minecraftforge.fluids.FluidStack; -public class CryogenicDistillerContainer extends ContainerBase { +public class CryogenicDistillerContainer extends BasicElectricMotorContainer { public CryogenicDistillerTileEntity tileEntity; - public int lastProgress = -1; - private short lastEnergy = -1; private int lastNumberOfFluids = -1; private int lastFluidAmount = -1; - private final static int height=166; public List fluidTankFluidList; public CryogenicDistillerContainer(EntityPlayer entityPlayer, CryogenicDistillerTileEntity lathePart1TileEntity) { - super(lathePart1TileEntity); + super(entityPlayer, lathePart1TileEntity); tileEntity=lathePart1TileEntity; fluidTankFluidList=tileEntity.fluidTankProducts.getFluidList(); - int col; - - for (col = 0; col < 3; ++col) - { - for (int col1 = 0; col1 < 9; ++col1) - { - this.addSlotToContainer(new Slot(entityPlayer.inventory, col1 + col * 9 + 9, 8 + col1 * 18, height + -82 + col * 18)); - } - } - - for (col = 0; col < 9; ++col) - { - this.addSlotToContainer(new Slot(entityPlayer.inventory, col, 8 + col * 18, height + -24)); - } - this.addSlotToContainer(new SlotInvSlot(lathePart1TileEntity.dischargeSlot,0, 8, 32)); this.addSlotToContainer(new SlotInvSlot(lathePart1TileEntity.fillInputSlotInput,0, 58, 51)); this.addSlotToContainer(new SlotInvSlot(lathePart1TileEntity.fillInputSlotProducts,0, 103, 51)); this.addSlotToContainer(new SlotInvSlot(lathePart1TileEntity.fluidItemsSlot,0, 58, 15)); @@ -50,41 +32,11 @@ public class CryogenicDistillerContainer extends ContainerBase