| Package | Description |
|---|---|
| me.lucko.luckperms.api | |
| me.lucko.luckperms.api.context |
| Modifier and Type | Method and Description |
|---|---|
default ContextSet |
LuckPermsApi.getContextForPlayer(Object player)
Gets set of contexts applicable to a player using the platforms
ContextCalculators. |
ContextSet |
Node.getContexts()
Gets the extra contexts required for this node to apply
|
ContextSet |
HeldPermission.getContexts()
Gets the extra context for the permission.
|
ContextSet |
Contexts.getContexts()
Gets the contexts that apply for this lookup
|
ContextSet |
Node.getFullContexts()
The same as
Node.getContexts(), but also includes values for "server" and "world" keys if present. |
| Modifier and Type | Method and Description |
|---|---|
void |
PermissionHolder.clearMeta(ContextSet contextSet)
Clears all meta held by the object in a specific context
|
void |
PermissionHolder.clearNodes(ContextSet contextSet)
Clears all nodes held by the object in a specific context
|
void |
PermissionHolder.clearParents(ContextSet contextSet)
Clears all parent groups in a specific context
|
boolean |
PermissionHolder.inheritsGroup(Group group,
ContextSet contextSet)
Check to see if this holder inherits another group directly
|
static Contexts |
Contexts.of(ContextSet context,
boolean includeGlobal,
boolean includeGlobalWorld,
boolean applyGroups,
boolean applyGlobalGroups,
boolean applyGlobalWorldGroups,
boolean op) |
boolean |
Node.shouldApplyWithContext(ContextSet context)
Gets if this node should apply in the given context
|
Node.Builder |
Node.Builder.withExtraContext(ContextSet set)
Appends extra contexts onto the node.
|
| Constructor and Description |
|---|
Contexts(ContextSet context,
boolean includeGlobal,
boolean includeGlobalWorld,
boolean applyGroups,
boolean applyGlobalGroups,
boolean applyGlobalWorldGroups,
boolean op) |
| Modifier and Type | Class and Description |
|---|---|
class |
ImmutableContextSet
An immutable implementation of
ContextSet. |
class |
MutableContextSet
A mutable implementation of
ContextSet. |
| Modifier and Type | Method and Description |
|---|---|
void |
MutableContextSet.addAll(ContextSet contextSet)
Adds of of the contexts in another
ContextSet to this set. |
ImmutableContextSet.Builder |
ImmutableContextSet.Builder.addAll(ContextSet contextSet)
Adds of of the contexts in another
ContextSet to the set. |
static MutableContextSet |
MutableContextSet.fromSet(ContextSet contextSet)
Creates a new
MutableContextSet from an existing Set. |
static ImmutableContextSet |
ImmutableContextSet.fromSet(ContextSet contextSet)
Creates an new
ImmutableContextSet from an existing Set. |
static ImmutableContextSet |
ContextSet.fromSet(ContextSet contextSet)
Creates an new
ImmutableContextSet from an existing Set. |
default boolean |
ContextSet.isSatisfiedBy(ContextSet other)
Returns if this
ContextSet is fully "satisfied" by another set. |
default boolean |
ContextSet.isSatisfiedBy(ContextSet other,
boolean caseSensitive)
Returns if this
ContextSet is fully "satisfied" by another set. |
Copyright © 2018. All rights reserved.