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) AudioExperience(@NotNull Sound sound, @NotNull SoundCategory category, @NotNull Location loc, float volume, float pitch) -
Method Summary
Modifier and TypeMethodDescription@NotNull SoundCategoryThis method returns theSoundCategorywith which theSoundwas played.@NotNull LocationfloatgetPitch()The pitch of thisSound@NotNull StringgetSound()This returns theSoundthat was played.floatThe volume of thisSound
-
Constructor Details
-
AudioExperience
public AudioExperience(@NotNull @NotNull String sound, @NotNull @NotNull SoundCategory category, @NotNull @NotNull Location loc, float volume, float pitch) -
AudioExperience
public AudioExperience(@NotNull @NotNull Sound sound, @NotNull @NotNull SoundCategory category, @NotNull @NotNull Location loc, float volume, float pitch)
-
-
Method Details
-
getSound
-
getCategory
This method returns theSoundCategorywith which theSoundwas played.- Returns:
- The
SoundCategory
-
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
-