package JAKJ . RedstoneInMotion ;

import java . util . List ;
import net . minecraft . entity . player . EntityPlayer ;
import net . minecraft . item . ItemBlock ;
import net . minecraft . item . ItemStack ;

public abstract class BlockItem extends ItemBlock
{
	public BlockItem ( int Id )
	{
		super ( Id ) ;

		setHasSubtypes ( true ) ;
	}

	public abstract String GetName ( Stack Stack ) ;

	@Override
	public String getItemDisplayName ( ItemStack Stack )
	{
		return ( GetName ( new Stack ( Stack ) ) ) ;
	}

	public List AdditionalTooltipLines ;

	public void PopulateTooltip ( String Line )
	{
		AdditionalTooltipLines . add ( Line ) ;
	}

	public void PopulateTooltip ( Stack Stack )
	{
	}

	@Override
	public void addInformation ( ItemStack Stack , EntityPlayer Player , List Lines , boolean Advanced )
	{
		AdditionalTooltipLines = Lines ;

		PopulateTooltip ( new Stack ( Stack ) ) ;

		AdditionalTooltipLines = null ;
	}

	public boolean HasEnchantmentEffect ( Stack Stack )
	{
		return ( false ) ;
	}

	@Override
	public boolean hasEffect ( ItemStack Stack )
	{
		return ( HasEnchantmentEffect ( new Stack ( Stack ) ) ) ;
	}
}
