Class Sounds.Sound
java.lang.Object
nl.sbdeveloper.vehiclesplus.api.vehicles.settings.impl.Sounds.Sound
- Enclosing class:
Sounds
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
The duration to play it for.float
getPitch()
The pitch to play it at.getSound()
The sound to play.float
The volume to play it at.void
playSound
(DrivableVehicle drivableVehicle, org.bukkit.entity.Player player) To play the soundvoid
playSound
(org.bukkit.Location location) Play the sound at the given location.void
setDuration
(int duration) The duration to play it for.void
setPitch
(float pitch) The pitch to play it at.void
The sound to play.void
setVolume
(float volume) The volume to play it at.toString()
-
Constructor Details
-
Sound
-
Sound
Creates a newSound
instance.- Parameters:
sound
- The sound to play.volume
- The volume to play it at.pitch
- The pitch to play it at.duration
- The duration to play it for.
-
Sound
public Sound()
-
-
Method Details
-
playSound
To play the sound- Parameters:
player
- the player where the sound comes from
-
playSound
public void playSound(org.bukkit.Location location) Play the sound at the given location.- Parameters:
location
- The location to play the sound at.
-
toString
-
getSound
The sound to play. -
getVolume
public float getVolume()The volume to play it at. -
getPitch
public float getPitch()The pitch to play it at. -
getDuration
public int getDuration()The duration to play it for. -
setSound
The sound to play. -
setVolume
public void setVolume(float volume) The volume to play it at. -
setPitch
public void setPitch(float pitch) The pitch to play it at. -
setDuration
public void setDuration(int duration) The duration to play it for.
-