Class ConfigCategory

  • All Implemented Interfaces:
    java.lang.Comparable<ConfigCategory>

    public final class ConfigCategory
    extends java.lang.Object
    implements java.lang.Comparable<ConfigCategory>
    A config category represents the 1st tier of the config menu. Platform provided categories are defined as static instances on this class.
    • Constructor Detail

      • ConfigCategory

        public ConfigCategory​(java.lang.String name,
                              java.lang.String displayKey)
        Create a new config category. Order will be set to 10,000, the default order number where categories are then sorted alphabetically by keyname.
        Parameters:
        name - The id/name of the category. Should be short, lower-case, no spaces or punctuation.
        displayKey - The resource key of the display string for this category.
      • ConfigCategory

        public ConfigCategory​(java.lang.String name,
                              java.lang.String displayKey,
                              int order)
        Creates a category with an explicit order.
    • Method Detail

      • getName

        public java.lang.String getName()
      • getDisplayKey

        public java.lang.String getDisplayKey()