Package net.luckperms.api.node.types
Interface DisplayNameNode
- All Superinterfaces:
Node,ScopedNode<DisplayNameNode,DisplayNameNode.Builder>
A sub-type of
Node used to mark the display name of the node's holder.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull DisplayNameNode.Builderbuilder()Creates aDisplayNameNodebuilder.static @NonNull DisplayNameNode.BuilderCreates aDisplayNameNodebuilder.Gets the display name.default @NonNull NodeType<DisplayNameNode>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<DisplayNameNode,DisplayNameNode.Builder> - Returns:
- the node type
-
getDisplayName
Gets the display name.- Returns:
- the display name
-
builder
Creates aDisplayNameNodebuilder.- Returns:
- the builder
-
builder
Creates aDisplayNameNodebuilder.- Parameters:
displayName- the display name to set- Returns:
- the builder
-