Package org.bukkit

Interface SoundGroup


public interface SoundGroup
Represents a group of sounds for blocks that are played when various actions happen (ie stepping, breaking, hitting, etc).
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    Gets the corresponding breaking sound for this group.
    Gets the corresponding fall sound for this group.
    Gets the corresponding hit sound for this group.
    float
    Gets the pitch these sounds are played at.
    Gets the corresponding place sound for this group.
    Gets the corresponding step sound for this group.
    float
    Get the volume these sounds are played at.
  • Method Details Link icon

    • getVolume Link icon

      float getVolume()
      Get the volume these sounds are played at. Note that this volume does not always represent the actual volume received by the client.
      Returns:
      volume
    • getPitch Link icon

      float getPitch()
      Gets the pitch these sounds are played at. Note that this pitch does not always represent the actual pitch received by the client.
      Returns:
      pitch
    • getBreakSound Link icon

      @NotNull Sound getBreakSound()
      Gets the corresponding breaking sound for this group.
      Returns:
      the break sound
    • getStepSound Link icon

      @NotNull Sound getStepSound()
      Gets the corresponding step sound for this group.
      Returns:
      the step sound
    • getPlaceSound Link icon

      @NotNull Sound getPlaceSound()
      Gets the corresponding place sound for this group.
      Returns:
      the place sound
    • getHitSound Link icon

      @NotNull Sound getHitSound()
      Gets the corresponding hit sound for this group.
      Returns:
      the hit sound
    • getFallSound Link icon

      @NotNull Sound getFallSound()
      Gets the corresponding fall sound for this group.
      Returns:
      the fall sound