I want something similar to Thread.sleep, but not stop all activity. im doing this for modding minecraft. When an item is right clicked, a sound plays. the problem is that the sound is a second or 2 long, but the player can right click more than once a second.
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
Minecraft mc = ModLoader.getMinecraftInstance();
mc.sndManager.playSoundFX("zFiendfan1Mod.bark", 1.0F, 1.0F);