Package team.lodestar.lodestone.helpers
Class SoundHelper
java.lang.Object
team.lodestar.lodestone.helpers.SoundHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidplaySound(net.minecraft.world.entity.Entity target, net.minecraft.sounds.SoundEvent soundEvent, float volume, float pitch) static voidplaySound(net.minecraft.world.entity.Entity target, net.minecraft.sounds.SoundEvent soundEvent, net.minecraft.sounds.SoundSource soundSource, float volume, float pitch) Plays a sound at a target's location, mimicking the behavior ofPlayer.playSound(net.minecraft.sounds.SoundEvent, float, float)but allowing for the sound to be heard even if not played on both logical sides.
-
Constructor Details
-
SoundHelper
public SoundHelper()
-
-
Method Details
-
playSound
public static void playSound(net.minecraft.world.entity.Entity target, net.minecraft.sounds.SoundEvent soundEvent, float volume, float pitch) -
playSound
public static void playSound(net.minecraft.world.entity.Entity target, net.minecraft.sounds.SoundEvent soundEvent, net.minecraft.sounds.SoundSource soundSource, float volume, float pitch) Plays a sound at a target's location, mimicking the behavior ofPlayer.playSound(net.minecraft.sounds.SoundEvent, float, float)but allowing for the sound to be heard even if not played on both logical sides.
-