Package net.luckperms.api.node.types
Interface WeightNode
-
- All Superinterfaces:
Node,ScopedNode<WeightNode,WeightNode.Builder>
public interface WeightNode extends ScopedNode<WeightNode,WeightNode.Builder>
A sub-type ofNodeused to mark the weight of the node's holder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceWeightNode.BuilderAWeightNodebuilder.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static @NonNull WeightNode.Builderbuilder()Creates aWeightNodebuilder.static @NonNull WeightNode.Builderbuilder(int weight)Creates aWeightNodebuilder.default @NonNull NodeType<WeightNode>getType()Gets the type of the node.intgetWeight()Gets the weight value.-
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<WeightNode> 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
static @NonNull WeightNode.Builder builder()
Creates aWeightNodebuilder.- Returns:
- the builder
-
builder
static @NonNull WeightNode.Builder builder(int weight)
Creates aWeightNodebuilder.- Parameters:
weight- the weight to set- Returns:
- the builder
-
-