Package | Description |
---|---|
com.destroystokyo.paper.block | |
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 and Description |
---|---|
@NotNull Sound |
BlockSoundGroup.getBreakSound()
Gets the sound that plays when breaking this block
|
@NotNull Sound |
BlockSoundGroup.getFallSound()
Gets the sound that plays when this block falls
|
@NotNull Sound |
BlockSoundGroup.getHitSound()
Gets the sound that plays when hitting this block
|
@NotNull Sound |
BlockSoundGroup.getPlaceSound()
Gets the sound that plays when placing this block
|
@NotNull Sound |
BlockSoundGroup.getStepSound()
Gets the sound that plays when stepping on this block
|
Modifier and Type | Field and Description |
---|---|
static Registry<Sound> |
Registry.SOUNDS
Sound keys.
|
Modifier and Type | Method and Description |
---|---|
@NotNull Sound |
SoundGroup.getBreakSound()
Gets the corresponding breaking sound for this group.
|
@NotNull Sound |
SoundGroup.getFallSound()
Gets the corresponding fall sound for this group.
|
@NotNull Sound |
SoundGroup.getHitSound()
Gets the corresponding hit sound for this group.
|
@NotNull Sound |
SoundGroup.getPlaceSound()
Gets the corresponding place sound for this group.
|
@NotNull Sound |
SoundGroup.getStepSound()
Gets the corresponding step sound for this group.
|
static Sound |
Sound.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Sound[] |
Sound.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
World.playSound(@NotNull Location location,
@NotNull Sound sound,
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 and Description |
---|---|
void |
Player.playSound(@NotNull Location location,
@NotNull Sound sound,
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 Sound sound)
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 and Description |
---|---|
Sound |
EntityDeathEvent.getDeathSound()
Get the sound that the entity makes when dying
|
Modifier and Type | Method and Description |
---|---|
void |
EntityDeathEvent.setDeathSound(Sound sound)
Set the sound that the entity makes when dying
|
Copyright © 2021. All rights reserved.