Some small tweaks to the blast furnace, not tested
This commit is contained in:
parent
4409aec56a
commit
2616894527
4 changed files with 25 additions and 3 deletions
|
@ -1,5 +1,7 @@
|
||||||
package techreborn.client.gui;
|
package techreborn.client.gui;
|
||||||
|
|
||||||
|
import codechicken.nei.recipe.GuiUsageRecipe;
|
||||||
|
import net.minecraft.client.gui.GuiButton;
|
||||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||||
import net.minecraft.client.resources.I18n;
|
import net.minecraft.client.resources.I18n;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
|
@ -22,6 +24,7 @@ public class GuiBlastFurnace extends GuiContainer {
|
||||||
this.xSize = 176;
|
this.xSize = 176;
|
||||||
this.ySize = 167;
|
this.ySize = 167;
|
||||||
blastfurnace = tileblastfurnace;
|
blastfurnace = tileblastfurnace;
|
||||||
|
this.buttonList.add(new GuiButton(0, 0, 0, 20, 20, "R"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -43,4 +46,13 @@ public class GuiBlastFurnace extends GuiContainer {
|
||||||
I18n.format("container.inventory", new Object[0]), 8,
|
I18n.format("container.inventory", new Object[0]), 8,
|
||||||
this.ySize - 96 + 2, 4210752);
|
this.ySize - 96 + 2, 4210752);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void actionPerformed(GuiButton button) {
|
||||||
|
super.actionPerformed(button);
|
||||||
|
if(button.id == 0){
|
||||||
|
GuiUsageRecipe.openRecipeGui(rect.outputId, rect.results)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,7 @@ import net.minecraft.item.ItemStack;
|
||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
import techreborn.api.BlastFurnaceRecipe;
|
import techreborn.api.BlastFurnaceRecipe;
|
||||||
import techreborn.api.TechRebornAPI;
|
import techreborn.api.TechRebornAPI;
|
||||||
|
import techreborn.client.gui.GuiBlastFurnace;
|
||||||
import techreborn.client.gui.GuiCentrifuge;
|
import techreborn.client.gui.GuiCentrifuge;
|
||||||
import techreborn.config.ConfigTechReborn;
|
import techreborn.config.ConfigTechReborn;
|
||||||
|
|
||||||
|
@ -90,7 +91,7 @@ public class BlastFurnaceRecipeHandler extends TemplateRecipeHandler {
|
||||||
@Override
|
@Override
|
||||||
public Class<? extends GuiContainer> getGuiClass()
|
public Class<? extends GuiContainer> getGuiClass()
|
||||||
{
|
{
|
||||||
return GuiCentrifuge.class;
|
return GuiBlastFurnace.class;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
package techreborn.compat.nei;
|
package techreborn.compat.nei;
|
||||||
|
|
||||||
import techreborn.api.BlastFurnaceRecipe;
|
import codechicken.nei.recipe.GuiCraftingRecipe;
|
||||||
|
import codechicken.nei.recipe.TemplateRecipeHandler;
|
||||||
|
import net.minecraft.client.Minecraft;
|
||||||
|
import net.minecraft.client.gui.GuiScreen;
|
||||||
|
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||||
import techreborn.lib.ModInfo;
|
import techreborn.lib.ModInfo;
|
||||||
import codechicken.nei.api.API;
|
import codechicken.nei.api.API;
|
||||||
import codechicken.nei.api.IConfigureNEI;
|
import codechicken.nei.api.IConfigureNEI;
|
||||||
|
@ -40,4 +44,8 @@ public class NEIConfig implements IConfigureNEI {
|
||||||
API.registerRecipeHandler(blastFurnaceRecipeHandler);
|
API.registerRecipeHandler(blastFurnaceRecipeHandler);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static void openUsages(TemplateRecipeHandler.RecipeTransferRect rect, GuiContainer parent){
|
||||||
|
Minecraft.getMinecraft().displayGuiScreen(new GuiCraftingRecipe(parent, rect));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,8 @@ public class TileQuantumChest extends TileMachineBase implements IInventory,
|
||||||
// Slot 0 = Input
|
// Slot 0 = Input
|
||||||
// Slot 1 = Output
|
// Slot 1 = Output
|
||||||
// Slot 2 = Fake Item
|
// Slot 2 = Fake Item
|
||||||
|
|
||||||
|
//TODO use long so we can have 9,223,372,036,854,775,807 items instead of 2,147,483,647
|
||||||
int storage = (int) Double.MAX_VALUE;
|
int storage = (int) Double.MAX_VALUE;
|
||||||
|
|
||||||
public Inventory inventory = new Inventory(3, "TileQuantumChest",
|
public Inventory inventory = new Inventory(3, "TileQuantumChest",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue