mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:06:01 +01:00
SPIGOT-713: APIs to manipulate Entity's silent status.
By: Sansko1337 <sanderknauff@hotmail.com>
This commit is contained in:
parent
45f0e39e4d
commit
b29158219c
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