Fixed Crafting MB Names.
This commit is contained in:
@@ -17,6 +17,21 @@ public class BlockCraftingStorage extends BlockCraftingUnit
|
|||||||
setTileEntiy( TileCraftingStorageTile.class );
|
setTileEntiy( TileCraftingStorageTile.class );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getUnlocalizedName(ItemStack is)
|
||||||
|
{
|
||||||
|
if ( is.getItemDamage() == 1 )
|
||||||
|
return "tile.appliedenergistics2.BlockCraftingStorage4k";
|
||||||
|
|
||||||
|
if ( is.getItemDamage() == 2 )
|
||||||
|
return "tile.appliedenergistics2.BlockCraftingStorage16k";
|
||||||
|
|
||||||
|
if ( is.getItemDamage() == 3 )
|
||||||
|
return "tile.appliedenergistics2.BlockCraftingStorage64k";
|
||||||
|
|
||||||
|
return getItemUnlocalizedName( is );
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IIcon getIcon(int direction, int metadata)
|
public IIcon getIcon(int direction, int metadata)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -41,6 +41,20 @@ public class BlockCraftingUnit extends AEBaseBlock
|
|||||||
return meta & 3;
|
return meta & 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getUnlocalizedName(ItemStack is)
|
||||||
|
{
|
||||||
|
if ( is.getItemDamage() == 1 )
|
||||||
|
return "tile.appliedenergistics2.BlockCraftingAccelerator";
|
||||||
|
|
||||||
|
return getItemUnlocalizedName( is );
|
||||||
|
}
|
||||||
|
|
||||||
|
protected String getItemUnlocalizedName(ItemStack is)
|
||||||
|
{
|
||||||
|
return super.getUnlocalizedName( is );
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IIcon getIcon(int direction, int metadata)
|
public IIcon getIcon(int direction, int metadata)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user