Package | Description |
---|---|
org.bukkit |
The root package of the Bukkit API, contains generalized API classes.
|
org.bukkit.entity |
Interfaces for non-voxel objects that can exist in a
world , including all players, monsters, projectiles, etc. |
org.bukkit.event.entity |
Modifier and Type | Method | Description |
---|---|---|
static SoundCategory |
SoundCategory.valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static SoundCategory[] |
SoundCategory.values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method | Description |
---|---|---|
void |
World.playSound(@NotNull Location location,
@NotNull String sound,
@NotNull SoundCategory category,
float volume,
float pitch) |
Play a Sound at the provided Location in the World.
|
void |
World.playSound(@NotNull Location location,
@NotNull Sound sound,
@NotNull SoundCategory category,
float volume,
float pitch) |
Play a Sound at the provided Location in the World.
|
Modifier and Type | Method | Description |
---|---|---|
void |
Player.playSound(@NotNull Location location,
@NotNull String sound,
@NotNull SoundCategory category,
float volume,
float pitch) |
Play a sound for a player at the location.
|
void |
Player.playSound(@NotNull Location location,
@NotNull Sound sound,
@NotNull SoundCategory category,
float volume,
float pitch) |
Play a sound for a player at the location.
|
void |
Player.stopSound(@NotNull String sound,
@Nullable SoundCategory category) |
Stop the specified sound from playing.
|
void |
Player.stopSound(@NotNull Sound sound,
@Nullable SoundCategory category) |
Stop the specified sound from playing.
|
Modifier and Type | Method | Description |
---|---|---|
SoundCategory |
EntityDeathEvent.getDeathSoundCategory() |
Get the sound category that the death sound should play in
|
Modifier and Type | Method | Description |
---|---|---|
void |
EntityDeathEvent.setDeathSoundCategory(SoundCategory soundCategory) |
Set the sound category that the death sound should play in.
|
Copyright © 2020. All rights reserved.