Class PrimaryGroupHolder.Stored
java.lang.Object
me.lucko.luckperms.common.model.PrimaryGroupHolder.Stored
- All Implemented Interfaces:
PrimaryGroupHolder
- Direct Known Subclasses:
PrimaryGroupHolder.AllParentsByWeight, PrimaryGroupHolder.ParentsByWeight
- Enclosing interface:
PrimaryGroupHolder
Simple implementation which just holds a stored value.
-
Nested Class Summary
Nested classes/interfaces inherited from interface PrimaryGroupHolder
PrimaryGroupHolder.AllParentsByWeight, PrimaryGroupHolder.ParentsByWeight, PrimaryGroupHolder.Stored -
Field Summary
Fields -
Constructor Summary
Constructors -
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.
-
Field Details
-
user
-
-
Constructor Details
-
Stored
-
-
Method Details
-
calculateValue
Description copied from interface:PrimaryGroupHolderGets the name of the primary group, or null.- Specified by:
calculateValuein interfacePrimaryGroupHolder- Parameters:
queryOptions- the query options to lookup with- Returns:
- the name of the primary group, or null.
-
getStoredValue
Description copied from interface:PrimaryGroupHolderGets the primary group which is stored against the user's data.- Specified by:
getStoredValuein interfacePrimaryGroupHolder- Returns:
- the stored value
-
setStoredValue
Description copied from interface:PrimaryGroupHolderSets the primary group which is stored against the user's data.- Specified by:
setStoredValuein interfacePrimaryGroupHolder- Parameters:
value- the new stored value
-