aboutsummaryrefslogtreecommitdiff
path: root/main/java/gregtech/common/gui
diff options
context:
space:
mode:
Diffstat (limited to 'main/java/gregtech/common/gui')
-rw-r--r--main/java/gregtech/common/gui/GT_Container_Boiler.java97
-rw-r--r--main/java/gregtech/common/gui/GT_Container_BronzeBlastFurnace.java40
-rw-r--r--main/java/gregtech/common/gui/GT_Container_ChestBuffer.java94
-rw-r--r--main/java/gregtech/common/gui/GT_Container_Filter.java149
-rw-r--r--main/java/gregtech/common/gui/GT_Container_Regulator.java180
-rw-r--r--main/java/gregtech/common/gui/GT_Container_SuperBuffer.java89
-rw-r--r--main/java/gregtech/common/gui/GT_Container_TypeFilter.java129
-rw-r--r--main/java/gregtech/common/gui/GT_GUIContainer_Boiler.java53
-rw-r--r--main/java/gregtech/common/gui/GT_GUIContainer_BronzeBlastFurnace.java39
-rw-r--r--main/java/gregtech/common/gui/GT_GUIContainer_ChestBuffer.java28
-rw-r--r--main/java/gregtech/common/gui/GT_GUIContainer_Filter.java28
-rw-r--r--main/java/gregtech/common/gui/GT_GUIContainer_Regulator.java42
-rw-r--r--main/java/gregtech/common/gui/GT_GUIContainer_SuperBuffer.java28
-rw-r--r--main/java/gregtech/common/gui/GT_GUIContainer_TypeFilter.java28
14 files changed, 1024 insertions, 0 deletions
diff --git a/main/java/gregtech/common/gui/GT_Container_Boiler.java b/main/java/gregtech/common/gui/GT_Container_Boiler.java
new file mode 100644
index 0000000000..11aea0bc57
--- /dev/null
+++ b/main/java/gregtech/common/gui/GT_Container_Boiler.java
@@ -0,0 +1,97 @@
+/* 1: */ package gregtech.common.gui;
+/* 2: */
+/* 3: */ import cpw.mods.fml.relauncher.Side;
+/* 4: */ import cpw.mods.fml.relauncher.SideOnly;
+/* 5: */ import gregtech.api.gui.GT_ContainerMetaTile_Machine;
+/* 6: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+/* 7: */ import gregtech.common.tileentities.boilers.GT_MetaTileEntity_Boiler;
+/* 8: */ import java.util.Iterator;
+/* 9: */ import java.util.List;
+/* 10: */ import net.minecraft.entity.player.InventoryPlayer;
+/* 11: */ import net.minecraft.inventory.ICrafting;
+/* 12: */ import net.minecraft.inventory.Slot;
+/* 13: */ import net.minecraftforge.fluids.FluidStack;
+/* 14: */
+/* 15: */ public class GT_Container_Boiler
+/* 16: */ extends GT_ContainerMetaTile_Machine
+/* 17: */ {
+/* 18: */ public GT_Container_Boiler(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, int aSteamCapacity)
+/* 19: */ {
+/* 20:20 */ super(aInventoryPlayer, aTileEntity);
+/* 21:21 */ this.mSteamCapacity = aSteamCapacity;
+/* 22: */ }
+/* 23: */
+/* 24: */ public void addSlots(InventoryPlayer aInventoryPlayer)
+/* 25: */ {
+/* 26:26 */ addSlotToContainer(new Slot(this.mTileEntity, 2, 116, 62));
+/* 27:27 */ addSlotToContainer(new Slot(this.mTileEntity, 0, 44, 26));
+/* 28:28 */ addSlotToContainer(new Slot(this.mTileEntity, 1, 44, 62));
+/* 29:29 */ addSlotToContainer(new Slot(this.mTileEntity, 3, 116, 26));
+/* 30: */ }
+/* 31: */
+/* 32: */ public int getSlotCount()
+/* 33: */ {
+/* 34:34 */ return 4;
+/* 35: */ }
+/* 36: */
+/* 37: */ public int getShiftClickSlotCount()
+/* 38: */ {
+/* 39:39 */ return 1;
+/* 40: */ }
+/* 41: */
+/* 42:42 */ public int mWaterAmount = 0;
+/* 43:42 */ public int mSteamAmount = 0;
+/* 44:42 */ public int mProcessingEnergy = 0;
+/* 45:42 */ public int mTemperature = 2;
+/* 46: */ private final int mSteamCapacity;
+/* 47: */
+/* 48: */ public void detectAndSendChanges()
+/* 49: */ {
+/* 50:46 */ super.detectAndSendChanges();
+/* 51:47 */ if ((this.mTileEntity.isClientSide()) || (this.mTileEntity.getMetaTileEntity() == null)) {
+/* 52:47 */ return;
+/* 53: */ }
+/* 54:49 */ this.mTemperature = ((GT_MetaTileEntity_Boiler)this.mTileEntity.getMetaTileEntity()).mTemperature;
+/* 55:50 */ this.mProcessingEnergy = ((GT_MetaTileEntity_Boiler)this.mTileEntity.getMetaTileEntity()).mProcessingEnergy;
+/* 56:51 */ this.mSteamAmount = (((GT_MetaTileEntity_Boiler)this.mTileEntity.getMetaTileEntity()).mSteam == null ? 0 : ((GT_MetaTileEntity_Boiler)this.mTileEntity.getMetaTileEntity()).mSteam.amount);
+/* 57:52 */ this.mWaterAmount = (((GT_MetaTileEntity_Boiler)this.mTileEntity.getMetaTileEntity()).mFluid == null ? 0 : ((GT_MetaTileEntity_Boiler)this.mTileEntity.getMetaTileEntity()).mFluid.amount);
+/* 58: */
+/* 59:54 */ this.mTemperature = Math.min(54, Math.max(0, this.mTemperature * 54 / (((GT_MetaTileEntity_Boiler)this.mTileEntity.getMetaTileEntity()).maxProgresstime() - 10)));
+/* 60:55 */ this.mSteamAmount = Math.min(54, Math.max(0, this.mSteamAmount * 54 / (this.mSteamCapacity - 100)));
+/* 61:56 */ this.mWaterAmount = Math.min(54, Math.max(0, this.mWaterAmount * 54 / 15900));
+/* 62:57 */ this.mProcessingEnergy = Math.min(14, Math.max(this.mProcessingEnergy > 0 ? 1 : 0, this.mProcessingEnergy * 14 / 1000));
+/* 63: */
+/* 64:59 */ Iterator var2 = this.crafters.iterator();
+/* 65:60 */ while (var2.hasNext())
+/* 66: */ {
+/* 67:61 */ ICrafting var1 = (ICrafting)var2.next();
+/* 68:62 */ var1.sendProgressBarUpdate(this, 100, this.mTemperature);
+/* 69:63 */ var1.sendProgressBarUpdate(this, 101, this.mProcessingEnergy);
+/* 70:64 */ var1.sendProgressBarUpdate(this, 102, this.mSteamAmount);
+/* 71:65 */ var1.sendProgressBarUpdate(this, 103, this.mWaterAmount);
+/* 72: */ }
+/* 73: */ }
+/* 74: */
+/* 75: */ @SideOnly(Side.CLIENT)
+/* 76: */ public void updateProgressBar(int par1, int par2)
+/* 77: */ {
+/* 78:72 */ super.updateProgressBar(par1, par2);
+/* 79:73 */ switch (par1)
+/* 80: */ {
+/* 81: */ case 100:
+/* 82:74 */ this.mTemperature = par2; break;
+/* 83: */ case 101:
+/* 84:75 */ this.mProcessingEnergy = par2; break;
+/* 85: */ case 102:
+/* 86:76 */ this.mSteamAmount = par2; break;
+/* 87: */ case 103:
+/* 88:77 */ this.mWaterAmount = par2;
+/* 89: */ }
+/* 90: */ }
+/* 91: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.gui.GT_Container_Boiler
+ * JD-Core Version: 0.7.0.1
+ */ \ No newline at end of file
diff --git a/main/java/gregtech/common/gui/GT_Container_BronzeBlastFurnace.java b/main/java/gregtech/common/gui/GT_Container_BronzeBlastFurnace.java
new file mode 100644
index 0000000000..d3f36ff115
--- /dev/null
+++ b/main/java/gregtech/common/gui/GT_Container_BronzeBlastFurnace.java
@@ -0,0 +1,40 @@
+/* 1: */ package gregtech.common.gui;
+/* 2: */
+/* 3: */ import gregtech.api.gui.GT_ContainerMetaTile_Machine;
+/* 4: */ import gregtech.api.gui.GT_Slot_Output;
+/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+/* 6: */ import net.minecraft.entity.player.InventoryPlayer;
+/* 7: */ import net.minecraft.inventory.Slot;
+/* 8: */
+/* 9: */ public class GT_Container_BronzeBlastFurnace
+/* 10: */ extends GT_ContainerMetaTile_Machine
+/* 11: */ {
+/* 12: */ public GT_Container_BronzeBlastFurnace(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
+/* 13: */ {
+/* 14:12 */ super(aInventoryPlayer, aTileEntity);
+/* 15: */ }
+/* 16: */
+/* 17: */ public void addSlots(InventoryPlayer aInventoryPlayer)
+/* 18: */ {
+/* 19:17 */ addSlotToContainer(new Slot(this.mTileEntity, 0, 34, 16));
+/* 20:18 */ addSlotToContainer(new Slot(this.mTileEntity, 1, 34, 34));
+/* 21:19 */ addSlotToContainer(new GT_Slot_Output(this.mTileEntity, 2, 86, 25));
+/* 22:20 */ addSlotToContainer(new GT_Slot_Output(this.mTileEntity, 3, 104, 25));
+/* 23: */ }
+/* 24: */
+/* 25: */ public int getSlotCount()
+/* 26: */ {
+/* 27:25 */ return 4;
+/* 28: */ }
+/* 29: */
+/* 30: */ public int getShiftClickSlotCount()
+/* 31: */ {
+/* 32:30 */ return 2;
+/* 33: */ }
+/* 34: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.gui.GT_Container_BronzeBlastFurnace
+ * JD-Core Version: 0.7.0.1
+ */ \ No newline at end of file
diff --git a/main/java/gregtech/common/gui/GT_Container_ChestBuffer.java b/main/java/gregtech/common/gui/GT_Container_ChestBuffer.java
new file mode 100644
index 0000000000..d1924183a4
--- /dev/null
+++ b/main/java/gregtech/common/gui/GT_Container_ChestBuffer.java
@@ -0,0 +1,94 @@
+/* 1: */ package gregtech.common.gui;
+/* 2: */
+/* 3: */ import gregtech.api.gui.GT_ContainerMetaTile_Machine;
+/* 4: */ import gregtech.api.gui.GT_Slot_Holo;
+/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+/* 6: */ import gregtech.api.util.GT_Utility;
+/* 7: */ import gregtech.common.tileentities.automation.GT_MetaTileEntity_ChestBuffer;
+/* 8: */ import java.util.List;
+/* 9: */ import net.minecraft.entity.player.EntityPlayer;
+/* 10: */ import net.minecraft.entity.player.InventoryPlayer;
+/* 11: */ import net.minecraft.inventory.Slot;
+/* 12: */ import net.minecraft.item.ItemStack;
+/* 13: */
+/* 14: */ public class GT_Container_ChestBuffer
+/* 15: */ extends GT_ContainerMetaTile_Machine
+/* 16: */ {
+/* 17: */ public GT_Container_ChestBuffer(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
+/* 18: */ {
+/* 19:16 */ super(aInventoryPlayer, aTileEntity);
+/* 20: */ }
+/* 21: */
+/* 22: */ public void addSlots(InventoryPlayer aInventoryPlayer)
+/* 23: */ {
+/* 24:21 */ for (int y = 0; y < 3; y++) {
+/* 25:21 */ for (int x = 0; x < 9; x++) {
+/* 26:21 */ addSlotToContainer(new Slot(this.mTileEntity, x + y * 9, 8 + x * 18, 5 + y * 18));
+/* 27: */ }
+/* 28: */ }
+/* 29:22 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 27, 8, 63, false, true, 1));
+/* 30:23 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 27, 26, 63, false, true, 1));
+/* 31:24 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 27, 44, 63, false, true, 1));
+/* 32: */ }
+/* 33: */
+/* 34: */ public ItemStack slotClick(int aSlotIndex, int aMouseclick, int aShifthold, EntityPlayer aPlayer)
+/* 35: */ {
+/* 36:29 */ if (aSlotIndex < 27) {
+/* 37:29 */ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
+/* 38: */ }
+/* 39:31 */ Slot tSlot = (Slot)this.inventorySlots.get(aSlotIndex);
+/* 40:32 */ if (tSlot != null)
+/* 41: */ {
+/* 42:33 */ if (this.mTileEntity.getMetaTileEntity() == null) {
+/* 43:33 */ return null;
+/* 44: */ }
+/* 45:34 */ if (aSlotIndex == 27)
+/* 46: */ {
+/* 47:35 */ ((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bOutput = (!((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bOutput);
+/* 48:36 */ if (((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bOutput) {
+/* 49:37 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit Energy to Outputside");
+/* 50: */ } else {
+/* 51:39 */ GT_Utility.sendChatToPlayer(aPlayer, "Don't emit Energy");
+/* 52: */ }
+/* 53:40 */ return null;
+/* 54: */ }
+/* 55:41 */ if (aSlotIndex == 28)
+/* 56: */ {
+/* 57:42 */ ((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull = (!((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull);
+/* 58:43 */ if (((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull) {
+/* 59:44 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit Redstone if no Slot is free");
+/* 60: */ } else {
+/* 61:46 */ GT_Utility.sendChatToPlayer(aPlayer, "Don't emit Redstone");
+/* 62: */ }
+/* 63:47 */ return null;
+/* 64: */ }
+/* 65:48 */ if (aSlotIndex == 29)
+/* 66: */ {
+/* 67:49 */ ((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bInvert = (!((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bInvert);
+/* 68:50 */ if (((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bInvert) {
+/* 69:51 */ GT_Utility.sendChatToPlayer(aPlayer, "Invert Redstone");
+/* 70: */ } else {
+/* 71:53 */ GT_Utility.sendChatToPlayer(aPlayer, "Don't invert Redstone");
+/* 72: */ }
+/* 73:54 */ return null;
+/* 74: */ }
+/* 75: */ }
+/* 76:58 */ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
+/* 77: */ }
+/* 78: */
+/* 79: */ public int getSlotCount()
+/* 80: */ {
+/* 81:64 */ return 27;
+/* 82: */ }
+/* 83: */
+/* 84: */ public int getShiftClickSlotCount()
+/* 85: */ {
+/* 86:69 */ return 27;
+/* 87: */ }
+/* 88: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.gui.GT_Container_ChestBuffer
+ * JD-Core Version: 0.7.0.1
+ */ \ No newline at end of file
diff --git a/main/java/gregtech/common/gui/GT_Container_Filter.java b/main/java/gregtech/common/gui/GT_Container_Filter.java
new file mode 100644
index 0000000000..276b06d25d
--- /dev/null
+++ b/main/java/gregtech/common/gui/GT_Container_Filter.java
@@ -0,0 +1,149 @@
+/* 1: */ package gregtech.common.gui;
+/* 2: */
+/* 3: */ import gregtech.api.gui.GT_ContainerMetaTile_Machine;
+/* 4: */ import gregtech.api.gui.GT_Slot_Holo;
+/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+/* 6: */ import gregtech.api.util.GT_Utility;
+/* 7: */ import gregtech.common.tileentities.automation.GT_MetaTileEntity_Filter;
+/* 8: */ import java.util.List;
+/* 9: */ import net.minecraft.entity.player.EntityPlayer;
+/* 10: */ import net.minecraft.entity.player.InventoryPlayer;
+/* 11: */ import net.minecraft.inventory.Slot;
+/* 12: */ import net.minecraft.item.ItemStack;
+/* 13: */
+/* 14: */ public class GT_Container_Filter
+/* 15: */ extends GT_ContainerMetaTile_Machine
+/* 16: */ {
+/* 17: */ public GT_Container_Filter(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
+/* 18: */ {
+/* 19: 17 */ super(aInventoryPlayer, aTileEntity);
+/* 20: */ }
+/* 21: */
+/* 22: */ public void addSlots(InventoryPlayer aInventoryPlayer)
+/* 23: */ {
+/* 24: 22 */ addSlotToContainer(new Slot(this.mTileEntity, 0, 98, 5));
+/* 25: 23 */ addSlotToContainer(new Slot(this.mTileEntity, 1, 116, 5));
+/* 26: 24 */ addSlotToContainer(new Slot(this.mTileEntity, 2, 134, 5));
+/* 27: 25 */ addSlotToContainer(new Slot(this.mTileEntity, 3, 98, 23));
+/* 28: 26 */ addSlotToContainer(new Slot(this.mTileEntity, 4, 116, 23));
+/* 29: 27 */ addSlotToContainer(new Slot(this.mTileEntity, 5, 134, 23));
+/* 30: 28 */ addSlotToContainer(new Slot(this.mTileEntity, 6, 98, 41));
+/* 31: 29 */ addSlotToContainer(new Slot(this.mTileEntity, 7, 116, 41));
+/* 32: 30 */ addSlotToContainer(new Slot(this.mTileEntity, 8, 134, 41));
+/* 33: */
+/* 34: 32 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 9, 18, 6, false, true, 1));
+/* 35: 33 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 10, 35, 6, false, true, 1));
+/* 36: 34 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 11, 52, 6, false, true, 1));
+/* 37: 35 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 12, 18, 23, false, true, 1));
+/* 38: 36 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 13, 35, 23, false, true, 1));
+/* 39: 37 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 14, 52, 23, false, true, 1));
+/* 40: 38 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 15, 18, 40, false, true, 1));
+/* 41: 39 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 16, 35, 40, false, true, 1));
+/* 42: 40 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 17, 52, 40, false, true, 1));
+/* 43: */
+/* 44: 42 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 8, 63, false, true, 1));
+/* 45: 43 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 26, 63, false, true, 1));
+/* 46: 44 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 44, 63, false, true, 1));
+/* 47: 45 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 62, 63, false, true, 1));
+/* 48: 46 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 80, 63, false, true, 1));
+/* 49: */ }
+/* 50: */
+/* 51: */ public ItemStack slotClick(int aSlotIndex, int aMouseclick, int aShifthold, EntityPlayer aPlayer)
+/* 52: */ {
+/* 53: 51 */ if (aSlotIndex < 9) {
+/* 54: 51 */ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
+/* 55: */ }
+/* 56: 53 */ Slot tSlot = (Slot)this.inventorySlots.get(aSlotIndex);
+/* 57: 54 */ if (tSlot != null)
+/* 58: */ {
+/* 59: 55 */ if (this.mTileEntity.getMetaTileEntity() == null) {
+/* 60: 55 */ return null;
+/* 61: */ }
+/* 62: 56 */ if (aSlotIndex < 18)
+/* 63: */ {
+/* 64: 57 */ ItemStack tStack = aPlayer.inventory.getItemStack();
+/* 65: 58 */ if (tStack == null)
+/* 66: */ {
+/* 67: 59 */ tStack = tSlot.getStack();
+/* 68: 60 */ if (aMouseclick == 0) {
+/* 69: 61 */ tSlot.putStack(null);
+/* 70: 63 */ } else if (tStack != null) {
+/* 71: 64 */ tStack.setItemDamage(32767);
+/* 72: */ }
+/* 73: */ }
+/* 74: */ else
+/* 75: */ {
+/* 76: 68 */ tSlot.putStack(GT_Utility.copyAmount(1L, new Object[] { tStack }));
+/* 77: */ }
+/* 78: 70 */ return null;
+/* 79: */ }
+/* 80: 71 */ if (aSlotIndex == 18)
+/* 81: */ {
+/* 82: 72 */ ((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bOutput = (!((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bOutput);
+/* 83: 73 */ if (((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bOutput) {
+/* 84: 74 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit Energy to Outputside");
+/* 85: */ } else {
+/* 86: 76 */ GT_Utility.sendChatToPlayer(aPlayer, "Don't emit Energy");
+/* 87: */ }
+/* 88: 77 */ return null;
+/* 89: */ }
+/* 90: 78 */ if (aSlotIndex == 19)
+/* 91: */ {
+/* 92: 79 */ ((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull = (!((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull);
+/* 93: 80 */ if (((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull) {
+/* 94: 81 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit Redstone if slots contain something");
+/* 95: */ } else {
+/* 96: 83 */ GT_Utility.sendChatToPlayer(aPlayer, "Don't emit Redstone");
+/* 97: */ }
+/* 98: 84 */ return null;
+/* 99: */ }
+/* 100: 85 */ if (aSlotIndex == 20)
+/* 101: */ {
+/* 102: 86 */ ((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bInvert = (!((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bInvert);
+/* 103: 87 */ if (((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bInvert) {
+/* 104: 88 */ GT_Utility.sendChatToPlayer(aPlayer, "Invert Redstone");
+/* 105: */ } else {
+/* 106: 90 */ GT_Utility.sendChatToPlayer(aPlayer, "Don't invert Redstone");
+/* 107: */ }
+/* 108: 91 */ return null;
+/* 109: */ }
+/* 110: 92 */ if (aSlotIndex == 21)
+/* 111: */ {
+/* 112: 93 */ ((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bInvertFilter = (!((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bInvertFilter);
+/* 113: 94 */ if (((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bInvertFilter) {
+/* 114: 95 */ GT_Utility.sendChatToPlayer(aPlayer, "Invert Filter");
+/* 115: */ } else {
+/* 116: 97 */ GT_Utility.sendChatToPlayer(aPlayer, "Don't invert Filter");
+/* 117: */ }
+/* 118: 98 */ return null;
+/* 119: */ }
+/* 120: 99 */ if (aSlotIndex == 22)
+/* 121: */ {
+/* 122:100 */ ((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bIgnoreNBT = (!((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bIgnoreNBT);
+/* 123:101 */ if (((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bIgnoreNBT) {
+/* 124:102 */ GT_Utility.sendChatToPlayer(aPlayer, "Ignore NBT");
+/* 125: */ } else {
+/* 126:104 */ GT_Utility.sendChatToPlayer(aPlayer, "NBT has to match");
+/* 127: */ }
+/* 128:105 */ return null;
+/* 129: */ }
+/* 130: */ }
+/* 131:108 */ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
+/* 132: */ }
+/* 133: */
+/* 134: */ public int getSlotCount()
+/* 135: */ {
+/* 136:113 */ return 9;
+/* 137: */ }
+/* 138: */
+/* 139: */ public int getShiftClickSlotCount()
+/* 140: */ {
+/* 141:118 */ return 9;
+/* 142: */ }
+/* 143: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.gui.GT_Container_Filter
+ * JD-Core Version: 0.7.0.1
+ */ \ No newline at end of file
diff --git a/main/java/gregtech/common/gui/GT_Container_Regulator.java b/main/java/gregtech/common/gui/GT_Container_Regulator.java
new file mode 100644
index 0000000000..2a9b305758
--- /dev/null
+++ b/main/java/gregtech/common/gui/GT_Container_Regulator.java
@@ -0,0 +1,180 @@
+/* 1: */ package gregtech.common.gui;
+/* 2: */
+/* 3: */ import cpw.mods.fml.relauncher.Side;
+/* 4: */ import cpw.mods.fml.relauncher.SideOnly;
+/* 5: */ import gregtech.api.gui.GT_ContainerMetaTile_Machine;
+/* 6: */ import gregtech.api.gui.GT_Slot_Holo;
+/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+/* 8: */ import gregtech.api.util.GT_Utility;
+/* 9: */ import gregtech.common.tileentities.automation.GT_MetaTileEntity_Regulator;
+/* 10: */ import java.util.Iterator;
+/* 11: */ import java.util.List;
+/* 12: */ import net.minecraft.entity.player.EntityPlayer;
+/* 13: */ import net.minecraft.entity.player.InventoryPlayer;
+/* 14: */ import net.minecraft.inventory.ICrafting;
+/* 15: */ import net.minecraft.inventory.Slot;
+/* 16: */ import net.minecraft.item.ItemStack;
+/* 17: */
+/* 18: */ public class GT_Container_Regulator
+/* 19: */ extends GT_ContainerMetaTile_Machine
+/* 20: */ {
+/* 21: */ public GT_Container_Regulator(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
+/* 22: */ {
+/* 23: 22 */ super(aInventoryPlayer, aTileEntity);
+/* 24: */ }
+/* 25: */
+/* 26: */ public void addSlots(InventoryPlayer aInventoryPlayer)
+/* 27: */ {
+/* 28: 27 */ this.mTargetSlots = new int[] { 0, 0, 0, 0, 0, 0, 0, 0, 0 };
+/* 29: */
+/* 30: 29 */ addSlotToContainer(new Slot(this.mTileEntity, 0, 8, 6));
+/* 31: 30 */ addSlotToContainer(new Slot(this.mTileEntity, 1, 26, 6));
+/* 32: 31 */ addSlotToContainer(new Slot(this.mTileEntity, 2, 44, 6));
+/* 33: 32 */ addSlotToContainer(new Slot(this.mTileEntity, 3, 8, 24));
+/* 34: 33 */ addSlotToContainer(new Slot(this.mTileEntity, 4, 26, 24));
+/* 35: 34 */ addSlotToContainer(new Slot(this.mTileEntity, 5, 44, 24));
+/* 36: 35 */ addSlotToContainer(new Slot(this.mTileEntity, 6, 8, 42));
+/* 37: 36 */ addSlotToContainer(new Slot(this.mTileEntity, 7, 26, 42));
+/* 38: 37 */ addSlotToContainer(new Slot(this.mTileEntity, 8, 44, 42));
+/* 39: */
+/* 40: 39 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 9, 64, 7, false, true, 1));
+/* 41: 40 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 10, 81, 7, false, true, 1));
+/* 42: 41 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 11, 98, 7, false, true, 1));
+/* 43: 42 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 12, 64, 24, false, true, 1));
+/* 44: 43 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 13, 81, 24, false, true, 1));
+/* 45: 44 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 14, 98, 24, false, true, 1));
+/* 46: 45 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 15, 64, 41, false, true, 1));
+/* 47: 46 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 16, 81, 41, false, true, 1));
+/* 48: 47 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 17, 98, 41, false, true, 1));
+/* 49: */
+/* 50: 49 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 119, 7, false, true, 1));
+/* 51: 50 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 136, 7, false, true, 1));
+/* 52: 51 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 153, 7, false, true, 1));
+/* 53: 52 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 119, 24, false, true, 1));
+/* 54: 53 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 136, 24, false, true, 1));
+/* 55: 54 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 153, 24, false, true, 1));
+/* 56: 55 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 119, 41, false, true, 1));
+/* 57: 56 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 136, 41, false, true, 1));
+/* 58: 57 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 153, 41, false, true, 1));
+/* 59: */
+/* 60: 59 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 8, 63, false, true, 1));
+/* 61: */ }
+/* 62: */
+/* 63: */ public ItemStack slotClick(int aSlotIndex, int aMouseclick, int aShifthold, EntityPlayer aPlayer)
+/* 64: */ {
+/* 65: 66 */ if (aSlotIndex < 9) {
+/* 66: 66 */ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
+/* 67: */ }
+/* 68: 67 */ Slot tSlot = (Slot)this.inventorySlots.get(aSlotIndex);
+/* 69: 68 */ if (tSlot != null)
+/* 70: */ {
+/* 71: 69 */ if (this.mTileEntity.getMetaTileEntity() == null) {
+/* 72: 69 */ return null;
+/* 73: */ }
+/* 74: 70 */ if (aSlotIndex == 27)
+/* 75: */ {
+/* 76: 71 */ ((GT_MetaTileEntity_Regulator)this.mTileEntity.getMetaTileEntity()).bOutput = (!((GT_MetaTileEntity_Regulator)this.mTileEntity.getMetaTileEntity()).bOutput);
+/* 77: 72 */ if (((GT_MetaTileEntity_Regulator)this.mTileEntity.getMetaTileEntity()).bOutput) {
+/* 78: 73 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit Energy to Outputside");
+/* 79: */ } else {
+/* 80: 75 */ GT_Utility.sendChatToPlayer(aPlayer, "Don't emit Energy");
+/* 81: */ }
+/* 82: 76 */ return null;
+/* 83: */ }
+/* 84: 77 */ if ((aSlotIndex >= 9) && (aSlotIndex < 18))
+/* 85: */ {
+/* 86: 78 */ ItemStack tStack = aPlayer.inventory.getItemStack();
+/* 87: 79 */ if (tStack != null) {
+/* 88: 80 */ tSlot.putStack(GT_Utility.copy(new Object[] { tStack }));
+/* 89: 82 */ } else if (tSlot.getStack() != null) {
+/* 90: 83 */ if (aMouseclick == 0)
+/* 91: */ {
+/* 92: 84 */ tSlot.getStack().stackSize -= (aShifthold == 1 ? 8 : 1);
+/* 93: 85 */ if (tSlot.getStack().stackSize <= 0) {
+/* 94: 86 */ tSlot.putStack(null);
+/* 95: */ }
+/* 96: */ }
+/* 97: */ else
+/* 98: */ {
+/* 99: 89 */ tSlot.getStack().stackSize += (aShifthold == 1 ? 8 : 1);
+/* 100: 90 */ if (tSlot.getStack().stackSize > tSlot.getStack().getMaxStackSize()) {
+/* 101: 91 */ tSlot.getStack().stackSize = tSlot.getStack().getMaxStackSize();
+/* 102: */ }
+/* 103: */ }
+/* 104: */ }
+/* 105: 96 */ return null;
+/* 106: */ }
+/* 107: 97 */ if ((aSlotIndex >= 18) && (aSlotIndex < 27))
+/* 108: */ {
+/* 109: 98 */ ((GT_MetaTileEntity_Regulator)this.mTileEntity.getMetaTileEntity()).mTargetSlots[(aSlotIndex - 18)] = Math.min(99, Math.max(0, ((GT_MetaTileEntity_Regulator)this.mTileEntity.getMetaTileEntity()).mTargetSlots[(aSlotIndex - 18)] + (aMouseclick == 0 ? -1 : 1) * (aShifthold == 0 ? 1 : 16)));
+/* 110: 99 */ return null;
+/* 111: */ }
+/* 112: */ }
+/* 113:102 */ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
+/* 114: */ }
+/* 115: */
+/* 116:105 */ public int[] mTargetSlots = { 0, 0, 0, 0, 0, 0, 0, 0, 0 };
+/* 117: */
+/* 118: */ public void detectAndSendChanges()
+/* 119: */ {
+/* 120:109 */ super.detectAndSendChanges();
+/* 121:110 */ if ((this.mTileEntity.isClientSide()) || (this.mTileEntity.getMetaTileEntity() == null)) {
+/* 122:110 */ return;
+/* 123: */ }
+/* 124:111 */ this.mTargetSlots = new int[9];
+/* 125:112 */ for (int i = 0; i < 9; i++) {
+/* 126:112 */ this.mTargetSlots[i] = ((GT_MetaTileEntity_Regulator)this.mTileEntity.getMetaTileEntity()).mTargetSlots[i];
+/* 127: */ }
+/* 128:114 */ Iterator var2 = this.crafters.iterator();
+/* 129:115 */ while (var2.hasNext())
+/* 130: */ {
+/* 131:116 */ ICrafting var1 = (ICrafting)var2.next();
+/* 132:117 */ for (int i = 0; i < 9; i++) {
+/* 133:117 */ var1.sendProgressBarUpdate(this, 100 + i, this.mTargetSlots[i]);
+/* 134: */ }
+/* 135: */ }
+/* 136: */ }
+/* 137: */
+/* 138: */ @SideOnly(Side.CLIENT)
+/* 139: */ public void updateProgressBar(int par1, int par2)
+/* 140: */ {
+/* 141:124 */ super.updateProgressBar(par1, par2);
+/* 142:125 */ switch (par1)
+/* 143: */ {
+/* 144: */ case 100:
+/* 145:126 */ this.mTargetSlots[0] = par2; break;
+/* 146: */ case 101:
+/* 147:127 */ this.mTargetSlots[1] = par2; break;
+/* 148: */ case 102:
+/* 149:128 */ this.mTargetSlots[2] = par2; break;
+/* 150: */ case 103:
+/* 151:129 */ this.mTargetSlots[3] = par2; break;
+/* 152: */ case 104:
+/* 153:130 */ this.mTargetSlots[4] = par2; break;
+/* 154: */ case 105:
+/* 155:131 */ this.mTargetSlots[5] = par2; break;
+/* 156: */ case 106:
+/* 157:132 */ this.mTargetSlots[6] = par2; break;
+/* 158: */ case 107:
+/* 159:133 */ this.mTargetSlots[7] = par2; break;
+/* 160: */ case 108:
+/* 161:134 */ this.mTargetSlots[8] = par2;
+/* 162: */ }
+/* 163: */ }
+/* 164: */
+/* 165: */ public int getSlotCount()
+/* 166: */ {
+/* 167:140 */ return 9;
+/* 168: */ }
+/* 169: */
+/* 170: */ public int getShiftClickSlotCount()
+/* 171: */ {
+/* 172:145 */ return 9;
+/* 173: */ }
+/* 174: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.gui.GT_Container_Regulator
+ * JD-Core Version: 0.7.0.1
+ */ \ No newline at end of file
diff --git a/main/java/gregtech/common/gui/GT_Container_SuperBuffer.java b/main/java/gregtech/common/gui/GT_Container_SuperBuffer.java
new file mode 100644
index 0000000000..1c390f2da2
--- /dev/null
+++ b/main/java/gregtech/common/gui/GT_Container_SuperBuffer.java
@@ -0,0 +1,89 @@
+/* 1: */ package gregtech.common.gui;
+/* 2: */
+/* 3: */ import gregtech.api.gui.GT_ContainerMetaTile_Machine;
+/* 4: */ import gregtech.api.gui.GT_Slot_Holo;
+/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+/* 6: */ import gregtech.api.util.GT_Utility;
+/* 7: */ import gregtech.common.tileentities.automation.GT_MetaTileEntity_ChestBuffer;
+/* 8: */ import java.util.List;
+/* 9: */ import net.minecraft.entity.player.EntityPlayer;
+/* 10: */ import net.minecraft.entity.player.InventoryPlayer;
+/* 11: */ import net.minecraft.inventory.Slot;
+/* 12: */ import net.minecraft.item.ItemStack;
+/* 13: */
+/* 14: */ public class GT_Container_SuperBuffer
+/* 15: */ extends GT_ContainerMetaTile_Machine
+/* 16: */ {
+/* 17: */ public GT_Container_SuperBuffer(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
+/* 18: */ {
+/* 19:16 */ super(aInventoryPlayer, aTileEntity);
+/* 20: */ }
+/* 21: */
+/* 22: */ public void addSlots(InventoryPlayer aInventoryPlayer)
+/* 23: */ {
+/* 24:21 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 256, 8, 63, false, true, 1));
+/* 25:22 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 256, 26, 63, false, true, 1));
+/* 26:23 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 256, 44, 63, false, true, 1));
+/* 27: */ }
+/* 28: */
+/* 29: */ public ItemStack slotClick(int aSlotIndex, int aMouseclick, int aShifthold, EntityPlayer aPlayer)
+/* 30: */ {
+/* 31:28 */ if (aSlotIndex < 0) {
+/* 32:28 */ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
+/* 33: */ }
+/* 34:30 */ Slot tSlot = (Slot)this.inventorySlots.get(aSlotIndex);
+/* 35:31 */ if (tSlot != null)
+/* 36: */ {
+/* 37:32 */ if (this.mTileEntity.getMetaTileEntity() == null) {
+/* 38:32 */ return null;
+/* 39: */ }
+/* 40:33 */ if (aSlotIndex == 0)
+/* 41: */ {
+/* 42:34 */ ((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bOutput = (!((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bOutput);
+/* 43:35 */ if (((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bOutput) {
+/* 44:36 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit Energy to Outputside");
+/* 45: */ } else {
+/* 46:38 */ GT_Utility.sendChatToPlayer(aPlayer, "Don't emit Energy");
+/* 47: */ }
+/* 48:39 */ return null;
+/* 49: */ }
+/* 50:40 */ if (aSlotIndex == 1)
+/* 51: */ {
+/* 52:41 */ ((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull = (!((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull);
+/* 53:42 */ if (((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull) {
+/* 54:43 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit Redstone if no Slot is free");
+/* 55: */ } else {
+/* 56:45 */ GT_Utility.sendChatToPlayer(aPlayer, "Don't emit Redstone");
+/* 57: */ }
+/* 58:46 */ return null;
+/* 59: */ }
+/* 60:47 */ if (aSlotIndex == 2)
+/* 61: */ {
+/* 62:48 */ ((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bInvert = (!((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bInvert);
+/* 63:49 */ if (((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bInvert) {
+/* 64:50 */ GT_Utility.sendChatToPlayer(aPlayer, "Invert Redstone");
+/* 65: */ } else {
+/* 66:52 */ GT_Utility.sendChatToPlayer(aPlayer, "Don't invert Redstone");
+/* 67: */ }
+/* 68:53 */ return null;
+/* 69: */ }
+/* 70: */ }
+/* 71:57 */ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
+/* 72: */ }
+/* 73: */
+/* 74: */ public int getSlotCount()
+/* 75: */ {
+/* 76:62 */ return 0;
+/* 77: */ }
+/* 78: */
+/* 79: */ public int getShiftClickSlotCount()
+/* 80: */ {
+/* 81:67 */ return 0;
+/* 82: */ }
+/* 83: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.gui.GT_Container_SuperBuffer
+ * JD-Core Version: 0.7.0.1
+ */ \ No newline at end of file
diff --git a/main/java/gregtech/common/gui/GT_Container_TypeFilter.java b/main/java/gregtech/common/gui/GT_Container_TypeFilter.java
new file mode 100644
index 0000000000..ae3df0e9bd
--- /dev/null
+++ b/main/java/gregtech/common/gui/GT_Container_TypeFilter.java
@@ -0,0 +1,129 @@
+/* 1: */ package gregtech.common.gui;
+/* 2: */
+/* 3: */ import gregtech.api.gui.GT_ContainerMetaTile_Machine;
+/* 4: */ import gregtech.api.gui.GT_Slot_Holo;
+/* 5: */ import gregtech.api.gui.GT_Slot_Render;
+/* 6: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+/* 7: */ import gregtech.api.util.GT_Utility;
+/* 8: */ import gregtech.common.tileentities.automation.GT_MetaTileEntity_TypeFilter;
+/* 9: */ import java.util.List;
+/* 10: */ import net.minecraft.entity.player.EntityPlayer;
+/* 11: */ import net.minecraft.entity.player.InventoryPlayer;
+/* 12: */ import net.minecraft.inventory.Slot;