mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-21 05:44:17 +00:00
Implement getting / setting of Entity invulnerability.
This commit is contained in:
parent
0052c3c5a7
commit
67b9a6f66b
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
|
||||
*/
|
||||
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…
Add table
Reference in a new issue