1
0
mirror of https://github.com/lucko/LuckPerms.git synced 2025-09-02 19:02:33 +02:00

Implement accumulation of static contexts from a file

This commit is contained in:
Luck
2017-04-03 01:42:49 +01:00
parent 2749563f5d
commit 0ec19a8fee
12 changed files with 93 additions and 75 deletions

View File

@@ -22,8 +22,6 @@
package me.lucko.luckperms.api.context;
import java.util.Map;
/**
* Calculates whether contexts are applicable to {@link T}
*
@@ -43,13 +41,4 @@ public interface ContextCalculator<T> {
*/
MutableContextSet giveApplicableContext(T subject, MutableContextSet accumulator);
/**
* Checks to see if a context is applicable to a subject
*
* @param subject the subject to check against
* @param context the context to check for
* @return true if met, or false if not. If this calculator does not calculate the given context, return false.
*/
boolean isContextApplicable(T subject, Map.Entry<String, String> context);
}