Interface SoundGroup
public interface SoundGroup
Represents a group of sounds for blocks that are played when various actions
happen (ie stepping, breaking, hitting, etc).
- Since:
- 1.16.4
-
Method Summary
Modifier and TypeMethodDescription@NotNull SoundGets the corresponding breaking sound for this group.@NotNull SoundGets the corresponding fall sound for this group.@NotNull SoundGets the corresponding hit sound for this group.floatgetPitch()Gets the pitch these sounds are played at.@NotNull SoundGets the corresponding place sound for this group.@NotNull SoundGets the corresponding step sound for this group.floatGet the volume these sounds are played at.
-
Method Details
-
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
- Since:
- 1.16.4
-
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
- Since:
- 1.16.4
-
getBreakSound
Gets the corresponding breaking sound for this group.- Returns:
- the break sound
- Since:
- 1.16.4
-
getStepSound
Gets the corresponding step sound for this group.- Returns:
- the step sound
- Since:
- 1.16.4
-
getPlaceSound
Gets the corresponding place sound for this group.- Returns:
- the place sound
- Since:
- 1.16.4
-
getHitSound
Gets the corresponding hit sound for this group.- Returns:
- the hit sound
- Since:
- 1.16.4
-
getFallSound
Gets the corresponding fall sound for this group.- Returns:
- the fall sound
- Since:
- 1.16.4
-