public final class AudioExperience
extends java.lang.Object
Sound that was heard by a Player.| Constructor and Description |
|---|
AudioExperience(@NotNull org.bukkit.Sound sound,
@NotNull org.bukkit.SoundCategory category,
@NotNull org.bukkit.Location loc,
float volume,
float pitch) |
AudioExperience(@NotNull java.lang.String sound,
@NotNull org.bukkit.SoundCategory category,
@NotNull org.bukkit.Location loc,
float volume,
float pitch) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull org.bukkit.SoundCategory |
getCategory()
This method returns the
SoundCategory with which the Sound was played. |
@NotNull org.bukkit.Location |
getLocation()
This returns the
Location at which this Sound was played. |
float |
getPitch()
The pitch of this
Sound |
@NotNull java.lang.String |
getSound()
This returns the
Sound that was played. |
float |
getVolume()
The volume of this
Sound |
public AudioExperience(@NotNull
@NotNull java.lang.String sound,
@NotNull
@NotNull org.bukkit.SoundCategory category,
@NotNull
@NotNull org.bukkit.Location loc,
float volume,
float pitch)
public AudioExperience(@NotNull
@NotNull org.bukkit.Sound sound,
@NotNull
@NotNull org.bukkit.SoundCategory category,
@NotNull
@NotNull org.bukkit.Location loc,
float volume,
float pitch)
@NotNull public @NotNull java.lang.String getSound()
Sound that was played. We return the String representation of the actual sound,
not the sound itself.String of the heard Sound.@NotNull public @NotNull org.bukkit.SoundCategory getCategory()
SoundCategory with which the Sound was played.SoundCategory@NotNull public @NotNull org.bukkit.Location getLocation()
Location at which this Sound was played.Locationpublic float getVolume()
Soundpublic float getPitch()
Sound