use of net.minecraft.client.sound.PositionedSoundInstance in project BleachHack by BleachDrinker420.
the class NotebotUtils method play.
private static void play(SoundEvent sound, float pitch) {
MinecraftClient mc = MinecraftClient.getInstance();
Vec3d vec = mc.player == null ? Vec3d.ZERO : mc.player.getPos();
mc.getSoundManager().play(new PositionedSoundInstance(sound, SoundCategory.RECORDS, 3.0F, pitch, vec.x, vec.y, vec.z));
}
use of net.minecraft.client.sound.PositionedSoundInstance in project mineclub-expanded by Blobanium.
the class SoundPlayer method playSound.
public static void playSound(float pitch) {
SoundEvent sound = registerSound();
PositionedSoundInstance posSound = PositionedSoundInstance.master(sound, pitch, getVolume(ConfigReader.outbidVolume));
MinecraftClient.getInstance().getSoundManager().play(posSound);
}
Aggregations