Roll & Gracefull Roll have sounds now

This commit is contained in:
nossr50
2019-01-20 02:23:18 -08:00
parent 87f84a5f66
commit b1be43154a
2 changed files with 11 additions and 0 deletions

View File

@ -23,6 +23,12 @@ public class SoundManager {
player.playSound(location, getSound(soundType), soundCategory, getVolume(soundType), getPitch(soundType));
}
public static void sendCategorizedSound(Player player, Location location, SoundType soundType, SoundCategory soundCategory, float pitchModifier)
{
float totalPitch = Math.min(2.0F, (getPitch(soundType) + pitchModifier));
player.playSound(location, getSound(soundType), soundCategory, getVolume(soundType), totalPitch);
}
public static void worldSendSound(World world, Location location, SoundType soundType)
{
world.playSound(location, getSound(soundType), getVolume(soundType), getPitch(soundType));