Package me.kzheart.klib.hook.economy
Interface Currency
public interface Currency
独立于任何具体经济插件 API 的货币。
-
Method Summary
Modifier and TypeMethodDescriptionbalance(org.bukkit.entity.Player player) format(BigDecimal amount) give(org.bukkit.entity.Player player, BigDecimal amount) default booleanhas(org.bukkit.entity.Player player, BigDecimal amount) id()default BigDecimal该货币可扣除或存入的最小金额;任意精度时返回null。 整数货币应返回BigDecimal.ONE,使组合规划向下取整其份额, 避免发起注定失败的扣款。take(org.bukkit.entity.Player player, BigDecimal amount)
-
Method Details
-
id
String id() -
balance
-
has
-
take
-
give
-
format
-
minorUnit
该货币可扣除或存入的最小金额;任意精度时返回null。 整数货币应返回BigDecimal.ONE,使组合规划向下取整其份额, 避免发起注定失败的扣款。
-