Package net.kyori.adventure.sound
Interface Sound
- All Superinterfaces:
- net.kyori.examination.Examinable
public interface Sound
extends net.kyori.examination.Examinable
A sound.
- Since:
- 4.0.0
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classSound.SourceThe sound source.static interfaceSound.TypeA sound type.
- 
Method SummaryModifier and Type Method Description @NonNull Keyname()Gets the name.floatpitch()Gets the pitch.static @NonNull Soundsound(@NonNull Supplier<? extends Sound.Type> type, @NonNull Sound.Source source, float volume, float pitch)Creates a new sound.static @NonNull Soundsound(@NonNull Key name, @NonNull Sound.Source source, float volume, float pitch)Creates a new sound.static @NonNull Soundsound(@NonNull Sound.Type type, @NonNull Sound.Source source, float volume, float pitch)Creates a new sound.@NonNull Sound.Sourcesource()Gets the source.floatvolume()Gets the volume.
- 
Method Details- 
soundstatic @NonNull Sound sound(@NonNull Key name, @NonNull Sound.Source source, float volume, float pitch)Creates a new sound.- Parameters:
- name- the name
- source- the source
- volume- the volume
- pitch- the pitch
- Returns:
- the sound
- Since:
- 4.0.0
 
- 
soundstatic @NonNull Sound sound(@NonNull Sound.Type type, @NonNull Sound.Source source, float volume, float pitch)Creates a new sound.- Parameters:
- type- the type
- source- the source
- volume- the volume
- pitch- the pitch
- Returns:
- the sound
- Since:
- 4.0.0
 
- 
soundstatic @NonNull Sound sound(@NonNull Supplier<? extends Sound.Type> type, @NonNull Sound.Source source, float volume, float pitch)Creates a new sound.- Parameters:
- type- the type
- source- the source
- volume- the volume
- pitch- the pitch
- Returns:
- the sound
- Since:
- 4.0.0
 
- 
name@NonNull Key name()Gets the name.- Returns:
- the name
- Since:
- 4.0.0
 
- 
source@NonNull Sound.Source source()Gets the source.- Returns:
- the source
- Since:
- 4.0.0
 
- 
volumefloat volume()Gets the volume.- Returns:
- the volume
- Since:
- 4.0.0
 
- 
pitchfloat pitch()Gets the pitch.- Returns:
- the pitch
- Since:
- 4.0.0
 
 
-