Package wbs.utils.util
Class WbsSound
java.lang.Object
wbs.utils.util.WbsSound
- All Implemented Interfaces:
Serializable
Simple wrapper for a
Sound with a given pitch and volume.- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
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
-