mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
Implement getting / setting of Entity invulnerability.
By: Sansko1337 <sansko1337@users.noreply.github.com>
This commit is contained in:
parent
c24b820089
commit
3aed26f6b2
1 changed files with 17 additions and 0 deletions
|
@ -356,4 +356,21 @@ public interface Entity extends Metadatable, CommandSender {
|
||||||
* @return whether the entity is glowing
|
* @return whether the entity is glowing
|
||||||
*/
|
*/
|
||||||
boolean isGlowing();
|
boolean isGlowing();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets whether the entity is invulnerable or not.
|
||||||
|
* <p>
|
||||||
|
* When an entity is invulnerable it can only be damaged by players in
|
||||||
|
* creative mode.
|
||||||
|
*
|
||||||
|
* @param flag if the entity is invulnerable
|
||||||
|
*/
|
||||||
|
public void setInvulnerable(boolean flag);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets whether the entity is invulnerable or not.
|
||||||
|
*
|
||||||
|
* @return whether the entity is
|
||||||
|
*/
|
||||||
|
public boolean isInvulnerable();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue