Interface IPermissionNodeAPI<T>
public interface IPermissionNodeAPI<T>
A representation of a player permission node.
All nodes used by the mod can be accessed in UsedPermissionNodes
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.ComponentGets the text component of the comment/tooltip for this node, to be used in UIs.Gets the default string representation of this node.net.minecraft.network.chat.ComponentgetName()Gets the text component of the name of this node, to be used in UIs.Gets the user-configured string representation of this node.getType()Gets the type of value stored with this permission node.
-
Method Details
-
getDefaultNodeString
Gets the default string representation of this node.- Returns:
- default string representation of this node, not null
-
getNodeString
Gets the user-configured string representation of this node.- Returns:
- the user-configured string representation of this node, not null
-
getName
@Nonnull net.minecraft.network.chat.Component getName()Gets the text component of the name of this node, to be used in UIs.- Returns:
- the text component of the name, not null
-
getComment
@Nonnull net.minecraft.network.chat.Component getComment()Gets the text component of the comment/tooltip for this node, to be used in UIs.- Returns:
- the text component of the comment/tooltip, not null
-
getType
Gets the type of value stored with this permission node.- Returns:
- the type of value stored with this permission node, not null
-