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.

@FunctionalInterface public static interface PermissionNode.PermissionResolver<T>
Utility Interface used for resolving the default value of PermissionNodes
  • Method Details

    • resolve

      T resolve(@Nullable @Nullable ServerPlayer player, UUID playerUUID, PermissionDynamicContext<?>... context)
      Parameters:
      player - an online player
      playerUUID - 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