public class TextFakeTextFakeEntity extends cn.nukkit.level.Position implements ITextFakeEntity
| Modifier and Type | Field and Description |
|---|---|
private boolean |
closed |
protected String |
defaultShowText |
static cn.nukkit.entity.data.EntityMetadata |
entityMetadata |
private Set<cn.nukkit.Player> |
hasSpawned |
protected long |
id |
private int |
maxCanSeeDistance |
protected Map<cn.nukkit.Player,String> |
showTextMap |
private long |
surviveTick |
| Constructor and Description |
|---|
TextFakeTextFakeEntity() |
TextFakeTextFakeEntity(long id) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
despawnFrom(@NotNull cn.nukkit.Player player) |
cn.nukkit.level.Position |
getPosition() |
boolean |
hasDefaultShowText() |
boolean |
needAsyncTick() |
boolean |
needTick() |
void |
onAsyncTick(int i) |
void |
onTick(int i) |
private void |
sendData(@NotNull cn.nukkit.Player[] players,
@NotNull cn.nukkit.entity.data.EntityMetadata data) |
private void |
sendText(@NotNull cn.nukkit.Player player,
@NotNull String string) |
void |
setMaxCanSeeDistance(int maxCanSeeDistance) |
void |
setPosition(@NotNull cn.nukkit.level.Position position) |
void |
setShowText(@NotNull cn.nukkit.Player player,
@NotNull String showText) |
void |
setShowText(@NotNull String showText) |
void |
spawnTo(@NotNull cn.nukkit.Player player) |
abs, add, add, add, add, ceil, clone, divide, floor, fromObject, fromObject, getChunk, getLevel, getLevelBlock, getLocation, getSide, getSide, isValid, multiply, round, setComponents, setLevel, setStrong, setWeak, subtract, subtract, subtract, subtract, subtract, toStringangleBetween, asBlockVector3, asVector3f, cross, distance, distanceSquared, dot, down, down, east, east, equals, getChunkX, getChunkZ, getFloorX, getFloorY, getFloorZ, getForward, getIntermediateWithXValue, getIntermediateWithYValue, getIntermediateWithZValue, getRight, getSideVec, getSouth, getUp, getWest, getX, getY, getZ, hashCode, length, lengthSquared, maxPlainDistance, maxPlainDistance, maxPlainDistance, maxPlainDistance, maxPlainDistance, normalize, north, north, rawHashCode, setX, setY, setZ, south, south, up, up, west, westfinalize, getClass, notify, notifyAll, wait, wait, waitgetShowTextMapprotected final long id
public static final cn.nukkit.entity.data.EntityMetadata entityMetadata
private boolean closed
private long surviveTick
private final Set<cn.nukkit.Player> hasSpawned
protected String defaultShowText
private int maxCanSeeDistance
public TextFakeTextFakeEntity()
public TextFakeTextFakeEntity(long id)
public void setPosition(@NotNull
@NotNull cn.nukkit.level.Position position)
setPosition in interface ITextFakeEntitypublic cn.nukkit.level.Position getPosition()
getPosition in interface ITextFakeEntitypublic void setShowText(@NotNull
@NotNull String showText)
public void setShowText(@NotNull
@NotNull cn.nukkit.Player player,
@NotNull
@NotNull String showText)
setShowText in interface ITextFakeEntitypublic void setMaxCanSeeDistance(int maxCanSeeDistance)
setMaxCanSeeDistance in interface ITextFakeEntitypublic boolean needTick()
needTick in interface ITextFakeEntitypublic void onTick(int i)
onTick in interface ITextFakeEntitypublic boolean needAsyncTick()
needAsyncTick in interface ITextFakeEntitypublic void onAsyncTick(int i)
onAsyncTick in interface ITextFakeEntitypublic boolean hasDefaultShowText()
public void spawnTo(@NotNull
@NotNull cn.nukkit.Player player)
spawnTo in interface ITextFakeEntitypublic void despawnFrom(@NotNull
@NotNull cn.nukkit.Player player)
despawnFrom in interface ITextFakeEntitypublic void close()
close in interface ITextFakeEntityprivate void sendText(@NotNull
@NotNull cn.nukkit.Player player,
@NotNull
@NotNull String string)
private void sendData(@NotNull
@NotNull cn.nukkit.Player[] players,
@NotNull
@NotNull cn.nukkit.entity.data.EntityMetadata data)
Copyright © 2022. All rights reserved.