mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-09-18 21:45:12 +00:00
SPIGOT-713: APIs to manipulate Entity's silent status.
This commit is contained in:
parent
8070822510
commit
688d644007
1 changed files with 16 additions and 0 deletions
|
@ -373,4 +373,20 @@ public interface Entity extends Metadatable, CommandSender {
|
|||
* @return whether the entity is
|
||||
*/
|
||||
public boolean isInvulnerable();
|
||||
|
||||
/**
|
||||
* Gets whether the entity is silent or not.
|
||||
*
|
||||
* @return whether the entity is silent.
|
||||
*/
|
||||
public boolean isSilent();
|
||||
|
||||
/**
|
||||
* Sets whether the entity is silent or not.
|
||||
* <p>
|
||||
* When an entity is silent it will not produce any sound.
|
||||
*
|
||||
* @param flag if the entity is silent
|
||||
*/
|
||||
public void setSilent(boolean flag);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue