Package org.spongepowered.api.block
Interface BlockSoundGroup
-
public interface BlockSoundGroupRepresents sounds for a block.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SoundTypebreakSound()Gets the sound played when the block is breaking.SoundTypefallSound()Gets the sound played when aLivingentity falls onto the block.SoundTypehitSound()Gets the sound played when the block is hit.doublepitch()Gets the pitch used when playing sounds.SoundTypeplaceSound()Gets the sound played when the block is placed.SoundTypestepSound()Gets the sound played when the block is stepped on.doublevolume()Gets the volume used when playing sounds.
-
-
-
Method Detail
-
volume
double volume()
Gets the volume used when playing sounds.- Returns:
- The volume
-
pitch
double pitch()
Gets the pitch used when playing sounds.- Returns:
- The pitch
-
breakSound
SoundType breakSound()
Gets the sound played when the block is breaking.- Returns:
- The break sound
-
stepSound
SoundType stepSound()
Gets the sound played when the block is stepped on.- Returns:
- The step sound
-
placeSound
SoundType placeSound()
Gets the sound played when the block is placed.- Returns:
- The place sound
-
hitSound
SoundType hitSound()
Gets the sound played when the block is hit.- Returns:
- The hit sound
-
-