Package me.lucko.luckperms.common.model
Interface PrimaryGroupHolder
- All Known Implementing Classes:
PrimaryGroupHolder.AllParentsByWeight,PrimaryGroupHolder.ParentsByWeight,PrimaryGroupHolder.Stored
public interface PrimaryGroupHolder
Calculates and caches a User's "primary group"
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic classSimple implementation which just holds a stored value. -
Method Summary
Modifier and TypeMethodDescriptioncalculateValue(net.luckperms.api.query.QueryOptions queryOptions) Gets the name of the primary group, or null.Gets the primary group which is stored against the user's data.voidsetStoredValue(String value) Sets the primary group which is stored against the user's data.
-
Method Details
-
calculateValue
Gets the name of the primary group, or null.- Parameters:
queryOptions- the query options to lookup with- Returns:
- the name of the primary group, or null.
-
getStoredValue
Gets the primary group which is stored against the user's data.- Returns:
- the stored value
-
setStoredValue
Sets the primary group which is stored against the user's data.- Parameters:
value- the new stored value
-