Package net.luckperms.api.node.types
Interface InheritanceNode
-
- All Superinterfaces:
Node,ScopedNode<InheritanceNode,InheritanceNode.Builder>
public interface InheritanceNode extends ScopedNode<InheritanceNode,InheritanceNode.Builder>
A sub-type ofNodeused to mark that the holder of the node should inherit from another group.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceInheritanceNode.BuilderAInheritanceNodebuilder.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static @NonNull InheritanceNode.Builderbuilder()Creates aInheritanceNodebuilder.static @NonNull InheritanceNode.Builderbuilder(@NonNull String group)Creates aInheritanceNodebuilder.static @NonNull InheritanceNode.Builderbuilder(@NonNull Group group)Sets the name of group to inherit.@NonNull StringgetGroupName()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, resolveShorthand
-
Methods inherited from interface net.luckperms.api.node.ScopedNode
toBuilder
-
-
-
-
Method Detail
-
getType
default @NonNull NodeType<InheritanceNode> 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
@NonNull String 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
static @NonNull InheritanceNode.Builder builder()
Creates aInheritanceNodebuilder.- Returns:
- the builder
-
builder
static @NonNull InheritanceNode.Builder builder(@NonNull String group)
Creates aInheritanceNodebuilder.- Parameters:
group- the group to set- Returns:
- the builder
-
builder
static @NonNull InheritanceNode.Builder builder(@NonNull Group group)
Sets the name of group to inherit.- Parameters:
group- the group name- Returns:
- the builder
-
-