13
0
geforkt von Mirrors/Paper

SPIGOT-713: APIs to manipulate Entity's silent status.

By: Sansko1337 <sanderknauff@hotmail.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2016-05-27 17:33:08 +02:00
Ursprung 45f0e39e4d
Commit b29158219c

Datei anzeigen

@ -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);
} }