mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-23 21:49:58 +00:00
Fix missed GUI textures in NEI handlers
This commit is contained in:
1 parent
b38c51a291
commit
8f615b1740
5 files changed
+16
-9
No files matched your search
@@ -21,7 +21,7 @@ public abstract class GuiContainerBaseEIO extends GuiContainerBase {
|
||||
public GuiContainerBaseEIO(Container par1Container, String... guiTexture) {
|
||||
super(par1Container);
|
||||
for (String string : guiTexture) {
|
||||
guiTextures.add(new ResourceLocation(EnderIO.DOMAIN + TEXTURE_PATH + string + TEXTURE_EXT));
|
||||
guiTextures.add(getGuiTexture(string));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,4 +37,8 @@ public abstract class GuiContainerBaseEIO extends GuiContainerBase {
|
||||
return guiTextures.size() > id ? guiTextures.get(id) : null;
|
||||
}
|
||||
|
||||
public static ResourceLocation getGuiTexture(String name) {
|
||||
return new ResourceLocation(EnderIO.DOMAIN + TEXTURE_PATH + name + TEXTURE_EXT);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -19,6 +19,7 @@ import net.minecraft.util.StatCollector;
|
||||
import codechicken.lib.gui.GuiDraw;
|
||||
import codechicken.nei.PositionedStack;
|
||||
import codechicken.nei.recipe.TemplateRecipeHandler;
|
||||
import crazypants.enderio.gui.GuiContainerBaseEIO;
|
||||
import crazypants.enderio.gui.IconEIO;
|
||||
import crazypants.enderio.machine.enchanter.EnchanterRecipe;
|
||||
import crazypants.enderio.machine.enchanter.EnchanterRecipeManager;
|
||||
@@ -35,7 +36,7 @@ public class EnchanterRecipeHandler extends TemplateRecipeHandler {
|
||||
|
||||
@Override
|
||||
public String getGuiTexture() {
|
||||
return "enderio:textures/gui/enchanter.png";
|
||||
return GuiContainerBaseEIO.getGuiTexture("enchanter").toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -17,6 +17,7 @@ import com.enderio.core.client.render.EnderWidget;
|
||||
import codechicken.lib.gui.GuiDraw;
|
||||
import codechicken.nei.PositionedStack;
|
||||
import codechicken.nei.recipe.TemplateRecipeHandler;
|
||||
import crazypants.enderio.gui.GuiContainerBaseEIO;
|
||||
import crazypants.enderio.gui.IconEIO;
|
||||
import crazypants.enderio.machine.power.PowerDisplayUtil;
|
||||
import crazypants.enderio.machine.recipe.IRecipe;
|
||||
@@ -34,7 +35,7 @@ public class SliceAndSpliceRecipeHandler extends TemplateRecipeHandler {
|
||||
|
||||
@Override
|
||||
public String getGuiTexture() {
|
||||
return "enderio:textures/gui/sliceAndSplice.png";
|
||||
return GuiContainerBaseEIO.getGuiTexture("sliceAndSplice").toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -104,7 +105,7 @@ public class SliceAndSpliceRecipeHandler extends TemplateRecipeHandler {
|
||||
|
||||
@Override
|
||||
public void drawExtras(int recipeIndex) {
|
||||
drawProgressBar(90, 35, 177, 14, 23, 17, 120, 0);
|
||||
drawProgressBar(91, 38, 177, 14, 23, 17, 120, 0);
|
||||
|
||||
SliceAndSpliceRecipe recipe = (SliceAndSpliceRecipe) arecipes.get(recipeIndex);
|
||||
String energyString = PowerDisplayUtil.formatPower(recipe.getEnergy()) + " " + PowerDisplayUtil.abrevation();
|
||||
@@ -148,7 +149,6 @@ public class SliceAndSpliceRecipeHandler extends TemplateRecipeHandler {
|
||||
}
|
||||
|
||||
public SliceAndSpliceRecipe(IRecipe recipe) {
|
||||
int recipeSize = recipe.getInputs().length;
|
||||
input = new ArrayList<PositionedStack>();
|
||||
int yOff = 11;
|
||||
int xOff = 13;
|
||||
|
||||
@@ -20,6 +20,7 @@ import codechicken.nei.PositionedStack;
|
||||
import codechicken.nei.recipe.TemplateRecipeHandler;
|
||||
import crazypants.enderio.EnderIO;
|
||||
import crazypants.enderio.ModObject;
|
||||
import crazypants.enderio.gui.GuiContainerBaseEIO;
|
||||
import crazypants.enderio.gui.IconEIO;
|
||||
import crazypants.enderio.machine.IMachineRecipe;
|
||||
import crazypants.enderio.machine.MachineRecipeRegistry;
|
||||
@@ -36,7 +37,7 @@ public class SoulBinderRecipeHandler extends TemplateRecipeHandler {
|
||||
|
||||
@Override
|
||||
public String getGuiTexture() {
|
||||
return "enderio:textures/gui/soulFuser.png";
|
||||
return GuiContainerBaseEIO.getGuiTexture("soulFuser").toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -24,6 +24,7 @@ import com.enderio.core.client.render.EnderWidget;
|
||||
import com.enderio.core.client.render.RenderUtil;
|
||||
import com.enderio.core.common.util.FluidUtil;
|
||||
|
||||
import crazypants.enderio.gui.GuiContainerBaseEIO;
|
||||
import crazypants.enderio.gui.IconEIO;
|
||||
import crazypants.enderio.machine.power.PowerDisplayUtil;
|
||||
import crazypants.enderio.machine.recipe.IRecipe;
|
||||
@@ -46,7 +47,7 @@ public class VatRecipeHandler extends TemplateRecipeHandler {
|
||||
|
||||
@Override
|
||||
public String getGuiTexture() {
|
||||
return "enderio:textures/gui/vat.png";
|
||||
return GuiContainerBaseEIO.getGuiTexture("vat").toString();
|
||||
}
|
||||
|
||||
public PositionedStack getResult() {
|
||||
@@ -299,10 +300,10 @@ public class VatRecipeHandler extends TemplateRecipeHandler {
|
||||
|
||||
inputs = new ArrayList<PositionedStack>();
|
||||
|
||||
if(inputsOne != null) {
|
||||
if (!inputsOne.isEmpty()) {
|
||||
inputs.add(new PositionedStack(inputsOne, 51, 1));
|
||||
}
|
||||
if(inputsTwo != null) {
|
||||
if (!inputsTwo.isEmpty()) {
|
||||
inputs.add(new PositionedStack(inputsTwo, 100, 1));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user