package wehavecookies56.kk.item; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.world.World; import net.minecraftforge.fml.common.network.simpleimpl.IMessage; import wehavecookies56.kk.KingdomKeys; import wehavecookies56.kk.core.packet.MunnyPacket; import wehavecookies56.kk.lib.Strings; public class ItemMunny50 extends ItemKingdomKeys{ public ItemMunny50() { super(); this.setUnlocalizedName(Strings.Munny50); } @Override public ItemStack onItemRightClick(ItemStack item, World world, EntityPlayer entity) { IMessage packet = new MunnyPacket(new ItemStack(AddedItems.Munny50), 50); KingdomKeys.network.sendToServer(packet); entity.playSound("random.orb", 1, 1); return super.onItemRightClick(item, world, entity); } }