mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-18 05:43:49 -07:00
SPIGOT-713: APIs to manipulate Entity's silent status.
By: Sansko1337 <sanderknauff@hotmail.com>
This commit is contained in:
@@ -373,4 +373,20 @@ public interface Entity extends Metadatable, CommandSender {
|
|||||||
* @return whether the entity is
|
* @return whether the entity is
|
||||||
*/
|
*/
|
||||||
public boolean isInvulnerable();
|
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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user