mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Moved NEI handlers to plugins package, added drying rack handler
This commit is contained in:
1 parent
9e7eec8215
commit
66a45e0145
15 files changed
+249
-124
No files matched your search
@@ -0,0 +1,41 @@
|
||||
package tconstruct.plugins.nei;
|
||||
|
||||
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 RecipeHandlerCastingBasin extends RecipeHandlerCastingBase
|
||||
{
|
||||
|
||||
@Override
|
||||
public String getRecipeName ()
|
||||
{
|
||||
return "Casting Basin";
|
||||
}
|
||||
|
||||
@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, 62, 112, 55);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<CastingRecipe> getCastingRecipes ()
|
||||
{
|
||||
LiquidCasting casting = TConstructRegistry.getBasinCasting();
|
||||
if (casting == null)
|
||||
{
|
||||
return new ArrayList<CastingRecipe>();
|
||||
}
|
||||
return casting.getCastingRecipes();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user