Package org.bukkit
Interface SoundGroup
-
public interface SoundGroupRepresents a group of sounds for blocks that are played when various actions happen (ie stepping, breaking, hitting, etc).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SoundgetBreakSound()Gets the corresponding breaking sound for this group.SoundgetFallSound()Gets the corresponding fall sound for this group.SoundgetHitSound()Gets the corresponding hit sound for this group.floatgetPitch()Gets the pitch these sounds are played at.SoundgetPlaceSound()Gets the corresponding place sound for this group.SoundgetStepSound()Gets the corresponding step sound for this group.floatgetVolume()Get the volume these sounds are played at.
-
-
-
Method Detail
-
getVolume
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
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
@NotNull Sound getBreakSound()
Gets the corresponding breaking sound for this group.- Returns:
- the break sound
-
getStepSound
@NotNull Sound getStepSound()
Gets the corresponding step sound for this group.- Returns:
- the step sound
-
getPlaceSound
@NotNull Sound getPlaceSound()
Gets the corresponding place sound for this group.- Returns:
- the place sound
-
getHitSound
@NotNull Sound getHitSound()
Gets the corresponding hit sound for this group.- Returns:
- the hit sound
-
-