public interface NodeFactory
Node instances.| Modifier and Type | Method and Description |
|---|---|
Node.Builder |
makeChatMetaNode(@NonNull ChatMetaType type,
int priority,
@NonNull String value)
Creates a node builder for the given chat meta type
|
Node.Builder |
makeGroupNode(@NonNull Group group)
Creates a node builder from a group
|
Node.Builder |
makeGroupNode(@NonNull String groupName)
Creates a node builder from a group
|
Node.Builder |
makeMetaNode(@NonNull String key,
@NonNull String value)
Creates a node builder from a key value pair
|
Node.Builder |
makePrefixNode(int priority,
@NonNull String prefix)
Creates a node builder from a prefix string and priority
|
Node.Builder |
makeSuffixNode(int priority,
@NonNull String suffix)
Creates a node builder from a prefix string and priority
|
Node.Builder |
newBuilder(@NonNull String permission)
Creates a new node builder from a given base permission string
|
Node.Builder |
newBuilderFromExisting(@NonNull Node other)
Creates a node builder instance from an existing node
|
Node.Builder newBuilder(@NonNull String permission)
permission - the permissionNullPointerException - if the permission is nullNode.Builder newBuilderFromExisting(@NonNull Node other)
other - the other nodeNullPointerException - if the other node is nullNode.Builder makeGroupNode(@NonNull Group group)
group - the groupNullPointerException - if the group is nullIllegalStateException - if the group instance was not obtained from LuckPerms.Node.Builder makeGroupNode(@NonNull String groupName)
groupName - the name of the groupNullPointerException - if the groupName is nullNode.Builder makeMetaNode(@NonNull String key, @NonNull String value)
key - the keyvalue - the valueNullPointerException - if the key or value is nullNode.Builder makeChatMetaNode(@NonNull ChatMetaType type, int priority, @NonNull String value)
type - the typepriority - the priorityvalue - the value for the prefix/suffixNullPointerException - if the type or value is nullNode.Builder makePrefixNode(int priority, @NonNull String prefix)
priority - the priorityprefix - the prefix stringNullPointerException - if the prefix is nullNode.Builder makeSuffixNode(int priority, @NonNull String suffix)
priority - the prioritysuffix - the suffix stringNullPointerException - if the suffix is null