2014-09-19 13:58:12 +02:00
|
|
|
package tconstruct.plugins.nei;
|
2014-09-18 19:23:28 +02:00
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
import org.lwjgl.opengl.GL11;
|
|
|
|
|
|
|
|
|
|
import tconstruct.library.TConstructRegistry;
|
|
|
|
|
import tconstruct.library.crafting.CastingRecipe;
|
|
|
|
|
import tconstruct.library.crafting.LiquidCasting;
|
|
|
|
|
import codechicken.lib.gui.GuiDraw;
|
|
|
|
|
|
|
|
|
|
public class RecipeHandlerCastingTable extends RecipeHandlerCastingBase
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String getRecipeName ()
|
|
|
|
|
{
|
|
|
|
|
return "Casting Table";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void drawBackground (int recipe)
|
|
|
|
|
{
|
|
|
|
|
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
|
|
|
|
GuiDraw.changeTexture(this.getGuiTexture());
|
|
|
|
|
GuiDraw.drawTexturedModalRect(30, 0, 0, 0, 112, 55);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<CastingRecipe> getCastingRecipes ()
|
|
|
|
|
{
|
|
|
|
|
LiquidCasting casting = TConstructRegistry.getTableCasting();
|
|
|
|
|
if (casting == null)
|
|
|
|
|
{
|
|
|
|
|
return new ArrayList<CastingRecipe>();
|
|
|
|
|
}
|
|
|
|
|
return casting.getCastingRecipes();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|