mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-11 01:51:37 +01:00
#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:
parent
7ba363e6b2
commit
86d3c9caa7
@ -520,6 +520,32 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
|
|||||||
*/
|
*/
|
||||||
public boolean isCustomNameVisible();
|
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.
|
* Sets whether the entity has a team colored (default: white) glow.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user