mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-05-23 17:43:37 +02:00
33 lines
1.1 KiB
Java
33 lines
1.1 KiB
Java
package ellpeck.someprettytechystuff.items.tools;
|
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
|
import ellpeck.someprettytechystuff.creative.CreativeTab;
|
|
import ellpeck.someprettytechystuff.util.Util;
|
|
import net.minecraft.client.renderer.texture.IIconRegister;
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.item.ItemPickaxe;
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import java.util.List;
|
|
|
|
public class ItemPickaxeSPTS extends ItemPickaxe{
|
|
|
|
public ItemPickaxeSPTS(ToolMaterial toolMat, String unlocalizedName){
|
|
super(toolMat);
|
|
this.setUnlocalizedName(unlocalizedName);
|
|
this.setCreativeTab(CreativeTab.instance);
|
|
}
|
|
|
|
@SuppressWarnings("unchecked")
|
|
@SideOnly(Side.CLIENT)
|
|
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean isHeld) {
|
|
Util.addStandardInformation(this);
|
|
}
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
public void registerIcons(IIconRegister iconReg){
|
|
this.itemIcon = iconReg.registerIcon(Util.MOD_ID + ":" + this.getUnlocalizedName().substring(5));
|
|
}
|
|
}
|