package com.chaka.thebackwoods.item.tool;
import com.chaka.thebackwoods.util.Reference;
import com.chaka.thebackwoods.util.TBWTab;
import net.minecraft.item.ItemHoe;
import net.minecraft.item.ItemStack;
public class ItemTBWHoe extends ItemHoe {
public ItemTBWHoe(ToolMaterial material) {
super(material);
this.setCreativeTab(TBWTab.TAB_TOOLS);
}
@Override
public String getUnlocalizedName() {
return String.format("item.%s%s", Reference.MOD_ID.toLowerCase() + ":", getUnwrappedUnlocalizedName(super.getUnlocalizedName()));
}
@Override
public String getUnlocalizedName(ItemStack itemStack) {
return String.format("item.%s%s", Reference.MOD_ID.toLowerCase() + ":", getUnwrappedUnlocalizedName(super.getUnlocalizedName()));
}
protected String getUnwrappedUnlocalizedName(String unlocalizedName) {
return unlocalizedName.substring(unlocalizedName.indexOf(".") + 1);
}
}