#786: Add methods to get sounds from entities

By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
Bukkit/Spigot
2022-09-11 22:24:08 +10:00
parent 04574c48bb
commit 38ba2e3273
4 changed files with 120 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
package org.bukkit.entity;
import org.bukkit.Sound;
import org.bukkit.block.Block;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public interface Raider extends Monster {
@@ -47,4 +49,12 @@ public interface Raider extends Monster {
* @param join CanJoinRaid status
*/
void setCanJoinRaid(boolean join);
/**
* Get the {@link Sound} this entity will play when celebrating.
*
* @return the celebration sound
*/
@NotNull
Sound getCelebrationSound();
}