Class SFX

java.lang.Object
valorless.valorlessutils.sound.SFX

public class SFX extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    SFX()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.Sound
     
    static void
    Play(String sound, float volume, float pitch, org.bukkit.entity.Player player)
    Play a sound at the location of the player with the given volume and pitch.
    static void
    Play(String sound, float volume, float pitch, org.bukkit.Location location)
    Play a sound at a location with the given volume and pitch.
    static void
    PlayNamespace(String sound, float volume, float pitch, org.bukkit.entity.Player player)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SFX

      public SFX()
  • Method Details

    • Play

      public static void Play(String sound, float volume, float pitch, org.bukkit.entity.Player player)
      Play a sound at the location of the player with the given volume and pitch.
      Parameters:
      sound - The name of the sound to play.
      volume - The volume of the sound (1.0 is normal volume).
      pitch - The pitch of the sound (1.0 is normal pitch).
      player - The player for whom the sound will be played.
    • PlayNamespace

      public static void PlayNamespace(String sound, float volume, float pitch, org.bukkit.entity.Player player)
    • Play

      public static void Play(String sound, float volume, float pitch, org.bukkit.Location location)
      Play a sound at a location with the given volume and pitch.
      Parameters:
      sound - The name of the sound to play.
      volume - The volume of the sound (1.0 is normal volume).
      pitch - The pitch of the sound (1.0 is normal pitch).
      location - The location where the sound will be played.
    • GetSound

      public static org.bukkit.Sound GetSound(String sound)