Class WbsSound

java.lang.Object
wbs.utils.util.WbsSound
All Implemented Interfaces:
Serializable

public class WbsSound extends Object implements Serializable
Simple wrapper for a Sound with a given pitch and volume.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    WbsSound(org.bukkit.Sound sound)
     
    WbsSound(org.bukkit.Sound sound, float pitch)
     
    WbsSound(org.bukkit.Sound sound, float pitch, float volume)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    play(org.bukkit.Location loc)
    Play the sound.
    void
    setPitch(float pitch)
    Set the pitch to play the sound at.
    void
    setVolume(float volume)
    Set the volume to play the sound at.

    Methods inherited from class java.lang.Object

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

    • WbsSound

      public WbsSound(org.bukkit.Sound sound)
    • WbsSound

      public WbsSound(org.bukkit.Sound sound, float pitch)
    • WbsSound

      public WbsSound(org.bukkit.Sound sound, float pitch, float volume)
  • Method Details

    • play

      public void play(org.bukkit.Location loc)
      Play the sound.
      Parameters:
      loc - The location at which to play the sound
    • setPitch

      public void setPitch(float pitch)
      Set the pitch to play the sound at.
      Parameters:
      pitch - The desired pitch
    • setVolume

      public void setVolume(float volume)
      Set the volume to play the sound at.
      Parameters:
      volume - The desired volume