#811: Add API to allow entities to be invisible by default

Designed to make creating per-player entities easier

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2023-03-04 09:15:46 +11:00
parent 7ba363e6b2
commit 86d3c9caa7

View File

@ -520,6 +520,32 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
*/
public boolean isCustomNameVisible();
/**
* Sets whether or not this entity is visible by default.
*
* If this entity is not visible by default, then
* {@link Player#showEntity(org.bukkit.plugin.Plugin, org.bukkit.entity.Entity)}
* will need to be called before the entity is visible to a given player.
*
* @param visible default visibility status
* @deprecated draft API
*/
@Deprecated
public void setVisibleByDefault(boolean visible);
/**
* Gets whether or not this entity is visible by default.
*
* If this entity is not visible by default, then
* {@link Player#showEntity(org.bukkit.plugin.Plugin, org.bukkit.entity.Entity)}
* will need to be called before the entity is visible to a given player.
*
* @return default visibility status
* @deprecated draft API
*/
@Deprecated
public boolean isVisibleByDefault();
/**
* Sets whether the entity has a team colored (default: white) glow.
*