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 Type
    Method
    Description
    net.minecraft.network.chat.Component
    Gets 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.Component
    Gets the text component of the name of this node, to be used in UIs.
    Gets the user-configured string representation of this node.
    Gets the type of value stored with this permission node.
  • Method Details

    • getDefaultNodeString

      @Nonnull String getDefaultNodeString()
      Gets the default string representation of this node.
      Returns:
      default string representation of this node, not null
    • getNodeString

      @Nonnull String 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

      @Nonnull Class<T> getType()
      Gets the type of value stored with this permission node.
      Returns:
      the type of value stored with this permission node, not null