Package net.luckperms.api.node.types
Interface InheritanceNode
- All Superinterfaces:
Node,ScopedNode<InheritanceNode,InheritanceNode.Builder>
A sub-type of
Node used to mark that the holder of the node should inherit
from another group.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull InheritanceNode.Builderbuilder()Creates aInheritanceNodebuilder.static @NonNull InheritanceNode.BuilderCreates aInheritanceNodebuilder.static @NonNull InheritanceNode.BuilderSets the name of group to inherit.Gets the name of the group to be inherited.default @NonNull NodeType<InheritanceNode>getType()Gets the type of the node.Methods inherited from interface net.luckperms.api.node.Node
equals, equals, getContexts, getExpiry, getExpiryDuration, getKey, getMetadata, getValue, hasExpired, hasExpiry, isNegated, metadata, resolveShorthandMethods inherited from interface net.luckperms.api.node.ScopedNode
toBuilder
-
Method Details
-
getType
Description copied from interface:NodeGets the type of the node.- Specified by:
getTypein interfaceNode- Specified by:
getTypein interfaceScopedNode<InheritanceNode,InheritanceNode.Builder> - Returns:
- the node type
-
getGroupName
Gets the name of the group to be inherited.This is no guarantee that this group exists.
- Returns:
- the name of the group
-
builder
Creates aInheritanceNodebuilder.- Returns:
- the builder
-
builder
Creates aInheritanceNodebuilder.- Parameters:
group- the group to set- Returns:
- the builder
-
builder
Sets the name of group to inherit.- Parameters:
group- the group name- Returns:
- the builder
-