public interface NodeFactory
Node instances.| Modifier and Type | Method and Description |
|---|---|
Node.Builder |
makeChatMetaNode(ChatMetaType type,
int priority,
String value)
Creates a node builder for the given chat meta type
|
Node.Builder |
makeGroupNode(Group group)
Creates a node builder from a group
|
Node.Builder |
makeGroupNode(String groupName)
Creates a node builder from a group
|
Node.Builder |
makeMetaNode(String key,
String value)
Creates a node builder from a key value pair
|
Node.Builder |
makePrefixNode(int priority,
String prefix)
Creates a node builder from a prefix string and priority
|
Node.Builder |
makeSuffixNode(int priority,
String suffix)
Creates a node builder from a prefix string and priority
|
Node.Builder |
newBuilder(String permission)
Creates a new node builder from a given base permission string
|
Node.Builder |
newBuilderFromExisting(Node other)
Creates a node builder instance from an existing node
|
@Nonnull Node.Builder newBuilder(@Nonnull String permission)
permission - the permissionNullPointerException - if the permission is null@Nonnull Node.Builder newBuilderFromExisting(@Nonnull Node other)
other - the other nodeNullPointerException - if the other node is null@Nonnull Node.Builder makeGroupNode(@Nonnull Group group)
group - the groupNullPointerException - if the group is nullIllegalStateException - if the group instance was not obtained from LuckPerms.@Nonnull Node.Builder makeGroupNode(@Nonnull String groupName)
groupName - the name of the groupNullPointerException - if the groupName is null@Nonnull Node.Builder makeMetaNode(@Nonnull String key, @Nonnull String value)
key - the keyvalue - the valueNullPointerException - if the key or value is null@Nonnull Node.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 null@Nonnull Node.Builder makePrefixNode(int priority, @Nonnull String prefix)
priority - the priorityprefix - the prefix stringNullPointerException - if the prefix is null@Nonnull Node.Builder makeSuffixNode(int priority, @Nonnull String suffix)
priority - the prioritysuffix - the suffix stringNullPointerException - if the suffix is nullCopyright © 2018. All rights reserved.