Work on NEI module

This commit is contained in:
Aidan C. Brady committed 2014-06-14 14:33:02 +02:00
1 parent a40ab961c6
commit 3b99d376a4
7 files changed
+30 -27

No files matched your search

@@ -1,8 +1,8 @@
package mekanism.client.nei;
import static codechicken.lib.gui.GuiDraw.changeTexture;
import static codechicken.lib.gui.GuiDraw.drawTexturedModalRect;
import static codechicken.lib.gui.GuiDraw.drawString;
import static codechicken.lib.gui.GuiDraw.drawTexturedModalRect;
import java.awt.Rectangle;
import java.util.Map;
@@ -18,13 +18,19 @@ import codechicken.nei.NEIServerUtils;
import codechicken.nei.PositionedStack;
import codechicken.nei.recipe.TemplateRecipeHandler;
public abstract class ChanceMachineRecipeHandler extends TemplateRecipeHandler
public abstract class ChanceMachineRecipeHandler extends BaseRecipeHandler
{
private int ticksPassed;
public abstract String getRecipeId();
public abstract Set<Entry<ItemStack, ChanceOutput>> getRecipes();
@Override
public void addGuiElements()
{
}
@Override
public void drawBackground(int i)
@@ -93,6 +99,12 @@ public abstract class ChanceMachineRecipeHandler extends TemplateRecipeHandler
}
}
}
@Override
public String getGuiTexture()
{
return "mekanism:gui/GuiAdvancedMachine.png";
}
@Override
public void loadUsageRecipes(ItemStack ingredient)