Package be.seeseemelk.mockbukkit.sound
Class AudioExperience
java.lang.Object
be.seeseemelk.mockbukkit.sound.AudioExperience
-
Constructor Summary
ConstructorsConstructorDescriptionAudioExperience
(@NotNull String sound, @NotNull SoundCategory category, @NotNull Location loc, float volume, float pitch) Constructs a newAudioExperience
with the provided parameters.AudioExperience
(@NotNull net.kyori.adventure.sound.Sound sound, @NotNull Location loc) Constructs a newAudioExperience
with the provided sound and location.AudioExperience
(@NotNull Sound sound, @NotNull SoundCategory category, @NotNull Location loc, float volume, float pitch) Constructs a newAudioExperience
with the provided parameters. -
Method Summary
Modifier and TypeMethodDescription@NotNull SoundCategory
This method returns theSoundCategory
with which theSound
was played.@NotNull Location
float
getPitch()
The pitch of thisSound
@NotNull String
getSound()
This returns theSound
that was played.@NotNull net.kyori.adventure.sound.Sound.Source
This method returns theSound.Source
with which theSound
was played.float
The volume of thisSound
-
Constructor Details
-
AudioExperience
@Internal public AudioExperience(@NotNull @NotNull String sound, @NotNull @NotNull SoundCategory category, @NotNull @NotNull Location loc, float volume, float pitch) Constructs a newAudioExperience
with the provided parameters.- Parameters:
sound
- The sound name that was heard.category
- The category of the sound.loc
- The location the sound was played at.volume
- The volume of the sound.pitch
- The pitch of the sound.
-
AudioExperience
@Internal public AudioExperience(@NotNull @NotNull Sound sound, @NotNull @NotNull SoundCategory category, @NotNull @NotNull Location loc, float volume, float pitch) Constructs a newAudioExperience
with the provided parameters.- Parameters:
sound
- The sound name that was heard.category
- The category of the sound.loc
- The location the sound was played at.volume
- The volume of the sound.pitch
- The pitch of the sound.
-
AudioExperience
@Internal public AudioExperience(@NotNull net.kyori.adventure.sound.Sound sound, @NotNull @NotNull Location loc) Constructs a newAudioExperience
with the provided sound and location.- Parameters:
sound
- The sound name that was heard.loc
- The location the sound was played at.
-
-
Method Details
-
getSound
-
getCategory
This method returns theSoundCategory
with which theSound
was played.- Returns:
- The
SoundCategory
-
getSource
public @NotNull net.kyori.adventure.sound.Sound.Source getSource()This method returns theSound.Source
with which theSound
was played.- Returns:
- The
Sound.Source
-
getLocation
- Returns:
- The
Location
-
getVolume
public float getVolume()The volume of thisSound
- Returns:
- The volume
-
getPitch
public float getPitch()The pitch of thisSound
- Returns:
- The pitch
-