From 5cb4c6e24033cf337812390d99a6817d24d21eab Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Sun, 12 Feb 2017 20:43:03 +0300 Subject: Removed explosion radius limitations. Explosion calculation optimized (reduced memory usage). One more detonator and explosive pack recipe. GT6 recipes for both chemical reactors and cryogenic distiller. Max stack size of muffle furnace is limited to 32. A lot of old features are removed. --- .../VacuumInductionMeltingFurnaceGui.java | 85 ---------------------- 1 file changed, 85 deletions(-) delete mode 100644 ihl/processing/metallurgy/VacuumInductionMeltingFurnaceGui.java (limited to 'ihl/processing/metallurgy/VacuumInductionMeltingFurnaceGui.java') diff --git a/ihl/processing/metallurgy/VacuumInductionMeltingFurnaceGui.java b/ihl/processing/metallurgy/VacuumInductionMeltingFurnaceGui.java deleted file mode 100644 index 2f22a4d..0000000 --- a/ihl/processing/metallurgy/VacuumInductionMeltingFurnaceGui.java +++ /dev/null @@ -1,85 +0,0 @@ -package ihl.processing.metallurgy; - -import ic2.core.IC2; -import ihl.collector.GuiMultiTextureButton; -import net.minecraft.client.gui.GuiButton; -import net.minecraft.client.gui.inventory.GuiContainer; -import net.minecraft.util.ResourceLocation; -import net.minecraft.util.StatCollector; -import org.lwjgl.opengl.GL11; - -public class VacuumInductionMeltingFurnaceGui extends GuiContainer { - protected static final ResourceLocation background = new ResourceLocation("ihl", "textures/gui/GUIVacuumInductionMeltingFurnace.png"); - private VacuumInductionMeltingFurnaceContainer container; - private GuiMultiTextureButton button1; - private int timer=10; - - - public VacuumInductionMeltingFurnaceGui(VacuumInductionMeltingFurnaceContainer vacuumInductionMeltingFurnaceContainer) { - //the container is instanciated and passed to the superclass for handling - super(vacuumInductionMeltingFurnaceContainer); - this.container=vacuumInductionMeltingFurnaceContainer; - } - - @SuppressWarnings("unchecked") - @Override - public void initGui() - { - super.initGui(); - int x = (width - xSize) / 2; - int y = (height - ySize) / 2; - button1=new GuiMultiTextureButton(0, x+13, y+55, 27, 27, background,13,55,229,229); - this.buttonList.add(button1); - } - - @Override - public void actionPerformed(GuiButton button) - { - super.actionPerformed(button); - IC2.network.get().initiateClientTileEntityEvent(this.container.tileEntity, button.id); - if (button.id == 0) - { - button1.isActive=false; - timer=10; - } - } - - @Override - protected void drawGuiContainerForegroundLayer(int par1, int par2) { - GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); - fontRendererObj.drawString(StatCollector.translateToLocal("ihl.gui.muffleFurnace"), 40, 12, 14722081); - this.mc.renderEngine.bindTexture(background); - int i1; - if (this.container.tileEntity.getEnergy() > 0D) - { - i1 = Math.min(this.container.tileEntity.getGUIEnergy(12),12); - this.drawTexturedModalRect(8, 6 + 12 - i1, 179, 12 - i1, 14, i1 + 2); - } - if (this.container.tileEntity.progress > 0) - { - i1 = Math.min(this.container.tileEntity.gaugeProgressScaled(50),50); - GL11.glEnable(GL11.GL_BLEND); - GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); - this.drawTexturedModalRect(64, 63, 197, 0, i1 + 1, 13); - } - } - - @Override - protected void drawGuiContainerBackgroundLayer(float par1, int par2, - int par3) { - //draw your Gui here, only thing you need to change is the path - GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); - this.mc.renderEngine.bindTexture(background); - int x = (width - xSize) / 2; - int y = (height - ySize) / 2; - this.drawTexturedModalRect(x, y, 0, 0, xSize, ySize); - if(timer>0) - { - timer--; - } - if(timer==1) - { - button1.isActive=true; - } - } -} -- cgit v1.2.3