Index
All Classes and Interfaces|All Packages
A
- amount() - Method in class me.kzheart.klib.hook.economy.CurrencyResult
- amount() - Method in class me.kzheart.klib.hook.economy.CurrencyResult.Uncompensated
- available() - Method in interface me.kzheart.klib.hook.Hook
- available() - Method in interface me.kzheart.klib.hook.papi.PapiRegistrar
B
- balance(Player) - Method in interface me.kzheart.klib.hook.economy.Currency
C
- cause() - Method in class me.kzheart.klib.hook.economy.CurrencyResult
- compensated() - Method in class me.kzheart.klib.hook.cost.CostResult
- compensated() - Method in class me.kzheart.klib.hook.economy.CurrencyResult
- Cost - Interface in me.kzheart.klib.hook.cost
-
一项消耗或前置条件。
CostPlan保证只在全部Cost.test(org.bukkit.entity.Player)通过后才调用Cost.take(org.bukkit.entity.Player)。 - CostLine - Class in me.kzheart.klib.hook.cost
-
某项消耗的描述及玩家当前是否满足,用于渲染 lore 或提示消息。
- CostResult - Class in me.kzheart.klib.hook.cost
-
CostPlan.charge 的结果;Java 声明保留可空平台返回类型。
- CostType - Interface in me.kzheart.klib.hook.cost
-
把配置条目冒号后的参数解析为
Cost;参数非法时抛出IllegalArgumentException。 - Currency - Interface in me.kzheart.klib.hook.economy
-
独立于任何具体经济插件 API 的货币。
- currencyId() - Method in class me.kzheart.klib.hook.economy.CurrencyResult.Uncompensated
- CurrencyResult - Class in me.kzheart.klib.hook.economy
-
一次余额修改的结果,包括补偿失败信息。
- CurrencyResult.Uncompensated - Class in me.kzheart.klib.hook.economy
-
因补偿失败而残留在玩家账户上的一笔扣款。
D
- dependency() - Method in interface me.kzheart.klib.hook.Hook
- describe() - Method in interface me.kzheart.klib.hook.cost.Cost
-
面向玩家的描述,例如
金币 500。 - describe() - Method in interface me.kzheart.klib.hook.cost.Reward
- description() - Method in class me.kzheart.klib.hook.cost.CostLine
- detail() - Method in interface me.kzheart.klib.hook.Hook
E
F
- failedCost() - Method in class me.kzheart.klib.hook.cost.CostResult
- failure(BigDecimal, String) - Static method in class me.kzheart.klib.hook.economy.CurrencyResult
- failure(BigDecimal, String, Throwable) - Static method in class me.kzheart.klib.hook.economy.CurrencyResult
- format(BigDecimal) - Method in interface me.kzheart.klib.hook.economy.Currency
G
- give(Player, BigDecimal) - Method in interface me.kzheart.klib.hook.economy.Currency
- grant(Player) - Method in interface me.kzheart.klib.hook.cost.Reward
H
- has(Player, BigDecimal) - Method in interface me.kzheart.klib.hook.economy.Currency
- Hook<T> - Interface in me.kzheart.klib.hook
-
已检测到的可选依赖及其适配器公开的值。
I
L
- lines() - Method in class me.kzheart.klib.hook.cost.CostResult
M
- me.kzheart.klib.hook - package me.kzheart.klib.hook
-
具有显式、由作用域持有生命周期的可选插件钩子。
- me.kzheart.klib.hook.cost - package me.kzheart.klib.hook.cost
-
从配置字符串解析的消耗条件与奖励,扣除失败时自动退还。
- me.kzheart.klib.hook.economy - package me.kzheart.klib.hook.economy
- me.kzheart.klib.hook.papi - package me.kzheart.klib.hook.papi
- message() - Method in class me.kzheart.klib.hook.cost.CostResult
- message() - Method in class me.kzheart.klib.hook.economy.CurrencyResult
- minorUnit() - Method in interface me.kzheart.klib.hook.economy.Currency
-
该货币可扣除或存入的最小金额;任意精度时返回
null。 整数货币应返回BigDecimal.ONE,使组合规划向下取整其份额, 避免发起注定失败的扣款。
P
- PapiExpansion - Class in me.kzheart.klib.hook.papi
-
已编译占位符解析器;Java 入口保留未命中时的平台类型 null 返回。
- PapiRegistrar - Interface in me.kzheart.klib.hook.papi
-
面向 PlaceholderAPI 的集成所实现的运行时桥接。
- parse(String) - Method in interface me.kzheart.klib.hook.cost.CostType
- parse(String) - Method in interface me.kzheart.klib.hook.cost.RewardType
R
- refundFailures() - Method in class me.kzheart.klib.hook.cost.CostResult
- register(String, PapiExpansion) - Method in interface me.kzheart.klib.hook.papi.PapiRegistrar
- resolve(OfflinePlayer, String) - Method in class me.kzheart.klib.hook.papi.PapiExpansion
- Reward - Interface in me.kzheart.klib.hook.cost
-
一项奖励。
Reward.grant(org.bukkit.entity.Player)会访问玩家状态,应在 Bukkit 主线程调用;失败时抛出异常。 - RewardType - Interface in me.kzheart.klib.hook.cost
-
把配置条目冒号后的参数解析为
Reward;参数非法时抛出IllegalArgumentException。
S
- satisfied() - Method in class me.kzheart.klib.hook.cost.CostLine
- status() - Method in interface me.kzheart.klib.hook.Hook
- success() - Method in class me.kzheart.klib.hook.cost.CostResult
- success() - Method in class me.kzheart.klib.hook.economy.CurrencyResult
- success(BigDecimal) - Static method in class me.kzheart.klib.hook.economy.CurrencyResult
T
- take(Player) - Method in interface me.kzheart.klib.hook.cost.Cost
-
执行扣除并返回可退还的结果;只检查不扣除的条件返回
Charge.free()。 - take(Player, BigDecimal) - Method in interface me.kzheart.klib.hook.economy.Currency
- test(Player) - Method in interface me.kzheart.klib.hook.cost.Cost
- toString() - Method in class me.kzheart.klib.hook.cost.CostLine
U
- uncompensated() - Method in class me.kzheart.klib.hook.economy.CurrencyResult
-
组合支付失败后无法补偿的扣款。
V
A B C D E F G H I L M P R S T U VAll Classes and Interfaces|All Packages