Alloy furnace GUI - Re-added empty configuration tab
This commit is contained in:
parent
e0c7157a88
commit
14ef4ce12e
1 changed files with 21 additions and 2 deletions
|
@ -75,6 +75,7 @@ public class TBAlloyFurnaceGui
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SideOnly( Side.CLIENT )
|
||||||
private static class RecipeTab
|
private static class RecipeTab
|
||||||
extends A_UGTab
|
extends A_UGTab
|
||||||
{
|
{
|
||||||
|
@ -207,6 +208,22 @@ public class TBAlloyFurnaceGui
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SideOnly( Side.CLIENT )
|
||||||
|
private static class ConfigTab
|
||||||
|
extends A_UGTab
|
||||||
|
{
|
||||||
|
|
||||||
|
private ConfigTab( )
|
||||||
|
{
|
||||||
|
super( );
|
||||||
|
this.setBackground( TBAlloyFurnaceGui.TEXTURES[ 2 ] ) //
|
||||||
|
.setHeight( 194 ) //
|
||||||
|
.setIconPosition( 223 , 0 )//
|
||||||
|
.setSlotGroups( ) //
|
||||||
|
.setTooltip( "gui.mmm.configure" );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private ArrayList< MAlloyRecipe > recipes;
|
private ArrayList< MAlloyRecipe > recipes;
|
||||||
private int currentRecipe = 0;
|
private int currentRecipe = 0;
|
||||||
private String searchString = "";
|
private String searchString = "";
|
||||||
|
@ -214,8 +231,10 @@ public class TBAlloyFurnaceGui
|
||||||
|
|
||||||
public TBAlloyFurnaceGui( final InventoryPlayer inventoryPlayer , final TBAlloyFurnaceTileEntity tileEntity )
|
public TBAlloyFurnaceGui( final InventoryPlayer inventoryPlayer , final TBAlloyFurnaceTileEntity tileEntity )
|
||||||
{
|
{
|
||||||
super( new TBAlloyFurnaceContainer( inventoryPlayer , tileEntity ) , TBAlloyFurnaceGui.TEXTURES[ 0 ] ,
|
super( new TBAlloyFurnaceContainer( inventoryPlayer , tileEntity ) , TBAlloyFurnaceGui.TEXTURES[ 0 ] , //
|
||||||
new MainTab( ) , new RecipeTab( ) );
|
new MainTab( ) , //
|
||||||
|
new RecipeTab( ) , //
|
||||||
|
new ConfigTab( ) );
|
||||||
this.xSize = 176;
|
this.xSize = 176;
|
||||||
this.recipes = MAlloyRecipe.REGISTRY.getRecipes( );
|
this.recipes = MAlloyRecipe.REGISTRY.getRecipes( );
|
||||||
this.setRecipe( this.getRecipeIndex( tileEntity.recipe ) );
|
this.setRecipe( this.getRecipeIndex( tileEntity.recipe ) );
|
||||||
|
|
Reference in a new issue