Interface PermissionNode.PermissionResolver<T>
- Type Parameters:
T
- generic value of the PermissionType of a PermissionNode
- Enclosing class:
- PermissionNode<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Utility Interface used for resolving the default value of PermissionNodes
-
Method Summary
Modifier and TypeMethodDescriptionresolve
(@Nullable ServerPlayer player, UUID playerUUID, PermissionDynamicContext<?>... context)
-
Method Details
-
resolve
T resolve(@Nullable @Nullable ServerPlayer player, UUID playerUUID, PermissionDynamicContext<?>... context) - Parameters:
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- Returns:
- according Permission Value
-