Package net.luckperms.api.node.types
Interface WeightNode
- All Superinterfaces:
Node,ScopedNode<WeightNode,WeightNode.Builder>
A sub-type of
Node used to mark the weight of the node's holder.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull WeightNode.Builderbuilder()Creates aWeightNodebuilder.static @NonNull WeightNode.Builderbuilder(int weight) Creates aWeightNodebuilder.default @NonNull NodeType<WeightNode>getType()Gets the type of the node.intGets the weight value.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<WeightNode,WeightNode.Builder> - Returns:
- the node type
-
getWeight
int getWeight()Gets the weight value.- Returns:
- the weight
-
builder
Creates aWeightNodebuilder.- Returns:
- the builder
-
builder
Creates aWeightNodebuilder.- Parameters:
weight- the weight to set- Returns:
- the builder
-