Package net.luckperms.api.node.types
Interface DisplayNameNode
-
- All Superinterfaces:
Node,ScopedNode<DisplayNameNode,DisplayNameNode.Builder>
public interface DisplayNameNode extends ScopedNode<DisplayNameNode,DisplayNameNode.Builder>
A sub-type ofNodeused to mark the display name of the node's holder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceDisplayNameNode.BuilderADisplayNameNodebuilder.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static @NonNull DisplayNameNode.Builderbuilder()Creates aDisplayNameNodebuilder.static @NonNull DisplayNameNode.Builderbuilder(@NonNull String displayName)Creates aDisplayNameNodebuilder.@NonNull StringgetDisplayName()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, resolveShorthand
-
Methods inherited from interface net.luckperms.api.node.ScopedNode
toBuilder
-
-
-
-
Method Detail
-
getType
default @NonNull NodeType<DisplayNameNode> 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
-
builder
static @NonNull DisplayNameNode.Builder builder()
Creates aDisplayNameNodebuilder.- Returns:
- the builder
-
builder
static @NonNull DisplayNameNode.Builder builder(@NonNull String displayName)
Creates aDisplayNameNodebuilder.- Parameters:
displayName- the display name to set- Returns:
- the builder
-
-