Applied-Energistics-2-tiler.../items/tools/quartz/ToolQuartzCuttingKnife.java

45 lines
841 B
Java
Raw Normal View History

package appeng.items.tools.quartz;
import java.util.EnumSet;
import net.minecraft.item.ItemStack;
import appeng.core.features.AEFeature;
import appeng.items.AEBaseItem;
public class ToolQuartzCuttingKnife extends AEBaseItem
{
public ToolQuartzCuttingKnife(AEFeature type) {
super( ToolQuartzCuttingKnife.class, type.name() );
setfeature( EnumSet.of( type, AEFeature.QuartzKnife ) );
setMaxDamage( 50 );
setMaxStackSize( 1 );
}
@Override
public boolean isRepairable()
{
return false;
}
@Override
public boolean doesContainerItemLeaveCraftingGrid(ItemStack par1ItemStack)
{
return false;
}
@Override
public boolean hasContainerItem()
{
return true;
}
@Override
2014-02-09 02:34:52 +01:00
public ItemStack getContainerItem(ItemStack itemStack)
{
itemStack.setItemDamage( itemStack.getItemDamage() + 1 );
return itemStack;
}
}