类 PlayerFatigueApi

java.lang.Object
cn.handyplus.fatigue.api.PlayerFatigueApi

public class PlayerFatigueApi extends Object
api
  • 构造器详细资料

    • PlayerFatigueApi

      public PlayerFatigueApi()
  • 方法详细资料

    • getAmount

      public static Integer getAmount(UUID playerUuid)
      根据玩家名称查询玩家疲劳值
      参数:
      playerUuid - 玩家uuid
      返回:
      玩家疲劳值
    • getMaxAmount

      public static Integer getMaxAmount(UUID playerUuid)
      根据玩家名称查询玩家最大疲劳值
      参数:
      playerUuid - 玩家uuid
      返回:
      玩家最大疲劳值
    • give

      public static boolean give(UUID playerUuid, Integer amount)
      根据玩家uuid增加玩家疲劳值
      参数:
      playerUuid - 玩家uuid
      amount - 疲劳值
      返回:
      是否成功
    • take

      public static boolean take(UUID playerUuid, Integer amount)
      根据玩家uuid减少玩家疲劳值
      参数:
      playerUuid - 玩家uuid
      amount - 疲劳值
      返回:
      是否成功
    • set

      public static boolean set(UUID playerUuid, Integer amount)
      根据玩家uuid设置玩家疲劳值
      参数:
      playerUuid - 玩家uuid
      amount - 疲劳值
      返回:
      是否成功
    • sendActionBarMsg

      public static void sendActionBarMsg(org.bukkit.entity.Player player)
      发送剩余疲劳值消息
      参数:
      player - 玩家
      从以下版本开始:
      1.3.6