接口 PermissionNode.PermissionResolver<T>
- 类型参数:
T
- generic value of the PermissionType of a PermissionNode
- 封闭类:
PermissionNode<T>
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
Utility Interface used for resolving the default value of PermissionNodes
-
方法概要
修饰符和类型方法说明resolve
(@Nullable ServerPlayer player, UUID playerUUID, PermissionDynamicContext<?>... context)
-
方法详细资料
-
resolve
T resolve(@Nullable @Nullable ServerPlayer player, UUID playerUUID, PermissionDynamicContext<?>... context) - 参数:
player
- an online playerplayerUUID
- if the player is null, this UUID belongs to an offline player, otherwise it must match the UUID of the passed in player.context
- may contain DynamicContext if it was provided- 返回:
- according Permission Value
-