21 lines
No EOL
618 B
Java
21 lines
No EOL
618 B
Java
package MysticOres.Items;
|
|
|
|
import net.minecraft.client.renderer.texture.IconRegister;
|
|
import net.minecraft.item.EnumToolMaterial;
|
|
import net.minecraft.item.ItemSword;
|
|
import MysticOres.MysticOres;
|
|
|
|
public class ItemSwords extends ItemSword
|
|
{
|
|
public ItemSwords(int par1, EnumToolMaterial par2EnumToolMaterial)
|
|
{
|
|
super(par1, par2EnumToolMaterial);
|
|
setCreativeTab(MysticOres.MysticOresTab);
|
|
}
|
|
|
|
@Override
|
|
public void registerIcons(IconRegister iconRegister)
|
|
{
|
|
itemIcon = iconRegister.registerIcon("MysticTextures" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
|
|
}
|
|
} |