package openblocks.enchantments.flimflams;

import java.util.List;

import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.network.play.server.S29PacketSoundEffect;
import openblocks.api.IFlimFlamAction;
import openmods.utils.CollectionUtils;

import com.google.common.collect.ImmutableList;

public class SoundFlimFlam implements IFlimFlamAction {

	private static final List<String> sounds = ImmutableList.of(
			"openblocks:mosquito",
			"openblocks:alarmclock",
			"openblocks:vibrate",
			"openblocks:fart",
			"random.fuse",
			"random.explode",
			"random.break",
			"mob.blaze.breathe",
			"mob.endermen.stare",
			"mob.ghast.charge",
			"mob.zombiepig.zpigangry",
			"mob.creeper.say"
			);

	@Override
	public boolean execute(EntityPlayerMP target) {
		String sound = CollectionUtils.getRandom(sounds);
		target.playerNetServerHandler.sendPacket(new S29PacketSoundEffect(sound, target.posX, target.posY, target.posZ, 1, 1));
		return true;
	}

}

@@ -437,16 +437,25 @@
 nblocks:
+annoying.
 mosquito
@@ -472,16 +472,25 @@
 nblocks:
+annoying.
 alarmclo
@@ -509,16 +509,25 @@
 nblocks:
+annoying.
 vibrate%22
@@ -547,30 +547,52 @@
 cks:
-fart%22,%0A%09%09%09%22random.fuse
+best.feature.ever.fart%22,%0A%09%09%09%22game.tnt.primed
 %22,%0A%09

Fix flim-flam sound names