Class TextFakeTextFakeEntity

java.lang.Object
cn.nukkit.math.Vector3
cn.nukkit.level.Position
cn.lanink.gamecore.entity.TextFakeTextFakeEntity
All Implemented Interfaces:
ITextFakeEntity, Cloneable

public class TextFakeTextFakeEntity extends cn.nukkit.level.Position implements ITextFakeEntity
Author:
lt_name
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private boolean
     
    protected String
     
    static final cn.nukkit.entity.data.EntityMetadata
     
    private final Set<cn.nukkit.Player>
     
    protected final long
     
    private int
     
    protected final Map<cn.nukkit.Player,String>
     
    private long
     

    Fields inherited from class cn.nukkit.level.Position

    level

    Fields inherited from class cn.nukkit.math.Vector3

    x, y, z
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    despawnFrom(@NotNull cn.nukkit.Player player)
     
    cn.nukkit.level.Position
     
    boolean
     
    boolean
     
    boolean
     
    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)
     

    Methods inherited from class cn.nukkit.level.Position

    abs, add, add, add, add, ceil, clone, divide, floor, fromObject, fromObject, getChunk, getLevel, getLevelBlock, getLevelBlockAround, getLevelBlockAround, getLevelBlockAtLayer, getLevelName, getLocation, getSide, getSide, getValidLevel, isValid, multiply, round, setComponents, setComponents, setLevel, setStrong, setWeak, subtract, subtract, subtract, subtract, subtract, toString

    Methods inherited from class cn.nukkit.math.Vector3

    angleBetween, 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, west

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface cn.lanink.gamecore.entity.ITextFakeEntity

    getShowTextMap
  • Field Details

    • id

      protected final long id
    • entityMetadata

      public static final cn.nukkit.entity.data.EntityMetadata entityMetadata
    • closed

      private boolean closed
    • surviveTick

      private long surviveTick
    • hasSpawned

      private final Set<cn.nukkit.Player> hasSpawned
    • defaultShowText

      protected String defaultShowText
    • showTextMap

      protected final Map<cn.nukkit.Player,String> showTextMap
    • maxCanSeeDistance

      private int maxCanSeeDistance
  • Constructor Details

    • TextFakeTextFakeEntity

      public TextFakeTextFakeEntity()
    • TextFakeTextFakeEntity

      public TextFakeTextFakeEntity(long id)
  • Method Details

    • setPosition

      public void setPosition(@NotNull @NotNull cn.nukkit.level.Position position)
      Specified by:
      setPosition in interface ITextFakeEntity
    • getPosition

      public cn.nukkit.level.Position getPosition()
      Specified by:
      getPosition in interface ITextFakeEntity
    • setShowText

      public void setShowText(@NotNull @NotNull String showText)
    • setShowText

      public void setShowText(@NotNull @NotNull cn.nukkit.Player player, @NotNull @NotNull String showText)
      Specified by:
      setShowText in interface ITextFakeEntity
    • setMaxCanSeeDistance

      public void setMaxCanSeeDistance(int maxCanSeeDistance)
      Specified by:
      setMaxCanSeeDistance in interface ITextFakeEntity
    • needTick

      public boolean needTick()
      Specified by:
      needTick in interface ITextFakeEntity
    • onTick

      public void onTick(int i)
      Specified by:
      onTick in interface ITextFakeEntity
    • needAsyncTick

      public boolean needAsyncTick()
      Specified by:
      needAsyncTick in interface ITextFakeEntity
    • onAsyncTick

      public void onAsyncTick(int i)
      Specified by:
      onAsyncTick in interface ITextFakeEntity
    • hasDefaultShowText

      public boolean hasDefaultShowText()
    • spawnTo

      public void spawnTo(@NotNull @NotNull cn.nukkit.Player player)
      Specified by:
      spawnTo in interface ITextFakeEntity
    • despawnFrom

      public void despawnFrom(@NotNull @NotNull cn.nukkit.Player player)
      Specified by:
      despawnFrom in interface ITextFakeEntity
    • close

      public void close()
      Specified by:
      close in interface ITextFakeEntity
    • sendText

      private void sendText(@NotNull @NotNull cn.nukkit.Player player, @NotNull @NotNull String string)
    • sendData

      private void sendData(@NotNull @NotNull cn.nukkit.Player[] players, @NotNull @NotNull cn.nukkit.entity.data.EntityMetadata data)