extends item now instead of the old ItemMysticWorld

This commit is contained in:
Roger Schoellgen 2013-06-21 19:24:54 -07:00
commit b6de497e56
2 changed files with 11 additions and 9 deletions

View file

@ -11,21 +11,22 @@ import net.minecraft.world.World;
public class ItemStaffAir extends Item {
public ItemStaffAir(int id) {
public ItemStaffAir(int id)
{
super(id);
this.setMaxStackSize(1);
this.setMaxDamage(64);
this.setCreativeTab(MysticWorld.MysticWorldTab);
}
@Override
public void registerIcons(IconRegister iconRegister)
{
itemIcon = iconRegister.registerIcon("MysticTextures" + ":" + "item.AirStaff");
}
@Override
public void registerIcons(IconRegister iconRegister)
{
itemIcon = iconRegister.registerIcon("MysticTextures" + ":" + "item.AirStaff");
}
public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer entityPlayer){
public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer entityPlayer)
{
world.playAuxSFXAtEntity((EntityPlayer)null, 1009, (int)entityPlayer.posX, (int)entityPlayer.posY, (int)entityPlayer.posZ, 0);
if (!world.isRemote)