Class SoundHelper

java.lang.Object
team.lodestar.lodestone.helpers.SoundHelper

public class SoundHelper extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    playSound(net.minecraft.world.entity.Entity target, net.minecraft.sounds.SoundEvent soundEvent, float volume, float pitch)
     
    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 of Player.playSound(net.minecraft.sounds.SoundEvent, float, float) but allowing for the sound to be heard even if not played on both logical sides.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 of Player.playSound(net.minecraft.sounds.SoundEvent, float, float) but allowing for the sound to be heard even if not played on both logical sides.