Class SoundHelper

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

public class SoundHelper extends Object
A helper class containing various methods designed to play sound from a side independent context.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    playSound(net.minecraft.world.entity.Entity target, Supplier<net.minecraft.sounds.SoundEvent> soundEvent)
     
    static void
    playSound(net.minecraft.world.entity.Entity target, Supplier<net.minecraft.sounds.SoundEvent> soundEvent, double volume, double pitch)
     
    static void
    playSound(net.minecraft.world.entity.Entity target, net.minecraft.sounds.SoundEvent soundEvent)
     
    static void
    playSound(net.minecraft.world.entity.Entity target, net.minecraft.sounds.SoundEvent soundEvent, double volume, double pitch)
     
    static void
    playSound(net.minecraft.world.entity.Entity target, net.minecraft.sounds.SoundEvent soundEvent, net.minecraft.sounds.SoundSource soundSource, double volume, double pitch)
     
    static void
    playSound(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.sounds.SoundEvent soundEvent, net.minecraft.sounds.SoundSource soundSource)
     
    static void
    playSound(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.sounds.SoundEvent soundEvent, net.minecraft.sounds.SoundSource soundSource, double volume, double pitch)
     
    static void
    playSoundRandomPitch(net.minecraft.world.entity.Entity target, Supplier<net.minecraft.sounds.SoundEvent> soundEvent, double minPitch, double maxPitch)
     
    static void
    playSoundRandomPitch(net.minecraft.world.entity.Entity target, Supplier<net.minecraft.sounds.SoundEvent> soundEvent, double volume, double minPitch, double maxPitch)
     
    static void
    playSoundRandomPitch(net.minecraft.world.entity.Entity target, net.minecraft.sounds.SoundEvent soundEvent, double minPitch, double maxPitch)
     
    static void
    playSoundRandomPitch(net.minecraft.world.entity.Entity target, net.minecraft.sounds.SoundEvent soundEvent, double volume, double minPitch, double maxPitch)
     
    static void
    playSoundRandomPitch(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.sounds.SoundEvent soundEvent, net.minecraft.sounds.SoundSource soundSource, double minPitch, double maxPitch)
     
    static void
    playSoundRandomPitch(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.sounds.SoundEvent soundEvent, net.minecraft.sounds.SoundSource soundSource, double volume, double minPitch, double maxPitch)
     

    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

    • playSoundRandomPitch

      public static void playSoundRandomPitch(net.minecraft.world.entity.Entity target, Supplier<net.minecraft.sounds.SoundEvent> soundEvent, double minPitch, double maxPitch)
    • playSoundRandomPitch

      public static void playSoundRandomPitch(net.minecraft.world.entity.Entity target, Supplier<net.minecraft.sounds.SoundEvent> soundEvent, double volume, double minPitch, double maxPitch)
    • playSoundRandomPitch

      public static void playSoundRandomPitch(net.minecraft.world.entity.Entity target, net.minecraft.sounds.SoundEvent soundEvent, double minPitch, double maxPitch)
    • playSoundRandomPitch

      public static void playSoundRandomPitch(net.minecraft.world.entity.Entity target, net.minecraft.sounds.SoundEvent soundEvent, double volume, double minPitch, double maxPitch)
    • playSound

      public static void playSound(net.minecraft.world.entity.Entity target, Supplier<net.minecraft.sounds.SoundEvent> soundEvent)
    • playSound

      public static void playSound(net.minecraft.world.entity.Entity target, Supplier<net.minecraft.sounds.SoundEvent> soundEvent, double volume, double pitch)
    • playSound

      public static void playSound(net.minecraft.world.entity.Entity target, net.minecraft.sounds.SoundEvent soundEvent)
    • playSound

      public static void playSound(net.minecraft.world.entity.Entity target, net.minecraft.sounds.SoundEvent soundEvent, double volume, double pitch)
    • playSound

      public static void playSound(net.minecraft.world.entity.Entity target, net.minecraft.sounds.SoundEvent soundEvent, net.minecraft.sounds.SoundSource soundSource, double volume, double pitch)
    • playSoundRandomPitch

      public static void playSoundRandomPitch(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.sounds.SoundEvent soundEvent, net.minecraft.sounds.SoundSource soundSource, double minPitch, double maxPitch)
    • playSoundRandomPitch

      public static void playSoundRandomPitch(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.sounds.SoundEvent soundEvent, net.minecraft.sounds.SoundSource soundSource, double volume, double minPitch, double maxPitch)
    • playSound

      public static void playSound(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.sounds.SoundEvent soundEvent, net.minecraft.sounds.SoundSource soundSource)
    • playSound

      public static void playSound(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.sounds.SoundEvent soundEvent, net.minecraft.sounds.SoundSource soundSource, double volume, double pitch)