java.lang.Object
nl.sbdeveloper.vehiclesplus.api.vehicles.settings.impl.Sounds.Sound
Enclosing class:
Sounds

public static class Sounds.Sound extends Object
  • Constructor Details

    • Sound

      public Sound(String sound, int duration)
    • Sound

      public Sound(String sound, float volume, float pitch, int duration)
      Creates a new Sound 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

      public void playSound(DrivableVehicle drivableVehicle, org.bukkit.entity.Player player)
      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

      public String toString()
      Overrides:
      toString in class Object
    • getSound

      public String 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

      public void setSound(String sound)
      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.