Class PlayerScorer

java.lang.Object
cn.nukkit.scoreboard.scorer.PlayerScorer
All Implemented Interfaces:
IScorer

@PowerNukkitXOnly @Since("1.19.30-r1") public class PlayerScorer extends Object implements IScorer
  • Constructor Details

    • PlayerScorer

      public PlayerScorer(UUID uuid)
    • PlayerScorer

      public PlayerScorer(String uuid)
    • PlayerScorer

      public PlayerScorer(Player player)
  • Method Details

    • getPlayer

      public Player getPlayer()
    • isOnline

      public boolean isOnline()
    • getScorerType

      public ScorerType getScorerType()
      Description copied from interface: IScorer
      获取追踪对象类型
      Specified by:
      getScorerType in interface IScorer
      Returns:
      追踪对象类型
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getName

      public String getName()
      Description copied from interface: IScorer
      获取名称
      Specified by:
      getName in interface IScorer
      Returns:
      追踪对象类型
    • toNetworkInfo

      public SetScorePacket.ScoreInfo toNetworkInfo(IScoreboard scoreboard, IScoreboardLine line)
      Description copied from interface: IScorer
      内部方法 转换到network信息
      Specified by:
      toNetworkInfo in interface IScorer
      Parameters:
      scoreboard - 所属计分板
      line - 所属行
      Returns:
      network信息
    • getUuid

      public UUID getUuid()