类 PlayerFatigueApi
java.lang.Object
cn.handyplus.fatigue.api.PlayerFatigueApi
api
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static Integer
根据玩家名称查询玩家疲劳值static Integer
getMaxAmount
(UUID playerUuid) 根据玩家名称查询玩家最大疲劳值static boolean
根据玩家uuid增加玩家疲劳值static void
sendActionBarMsg
(org.bukkit.entity.Player player) 发送剩余疲劳值消息static boolean
根据玩家uuid设置玩家疲劳值static boolean
根据玩家uuid减少玩家疲劳值
-
构造器详细资料
-
PlayerFatigueApi
public PlayerFatigueApi()
-
-
方法详细资料
-
getAmount
根据玩家名称查询玩家疲劳值- 参数:
playerUuid
- 玩家uuid- 返回:
- 玩家疲劳值
-
getMaxAmount
根据玩家名称查询玩家最大疲劳值- 参数:
playerUuid
- 玩家uuid- 返回:
- 玩家最大疲劳值
-
give
根据玩家uuid增加玩家疲劳值- 参数:
playerUuid
- 玩家uuidamount
- 疲劳值- 返回:
- 是否成功
-
take
根据玩家uuid减少玩家疲劳值- 参数:
playerUuid
- 玩家uuidamount
- 疲劳值- 返回:
- 是否成功
-
set
根据玩家uuid设置玩家疲劳值- 参数:
playerUuid
- 玩家uuidamount
- 疲劳值- 返回:
- 是否成功
-
sendActionBarMsg
public static void sendActionBarMsg(org.bukkit.entity.Player player) 发送剩余疲劳值消息- 参数:
player
- 玩家- 从以下版本开始:
- 1.3.6
-