Enum EPlaceholderType

    • Method Detail

      • values

        public static EPlaceholderType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (EPlaceholderType c : EPlaceholderType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EPlaceholderType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getDetailedDescription

        public abstract String getDetailedDescription​(PlaceHolder placeholder,
                                                      Locale locale)
        Specified by:
        getDetailedDescription in interface IPlaceholderType
        Parameters:
        placeholder - A placeholder of this type for which to get the description.
        locale - The current language settings
        Returns:
        A detailed description for the given placeholder.
      • getIcon

        public abstract IGuiIcon getIcon​(PlaceHolder placeholder)
        Specified by:
        getIcon in interface IPlaceholderType
        Parameters:
        placeholder - A placeholder of this type for which to get the icon.
        Returns:
        Icon to be shown for the given placeholder. May be either a default icon for this group or a specific icon for the given placeholder.
      • getId

        public String getId()
        Specified by:
        getId in interface IPlaceholderType
        Returns:
        The ID of this placeholder type, used for grouping individual placeholders according to their type.
      • getShortDescription

        public abstract String getShortDescription​(PlaceHolder placeholder,
                                                   Locale locale)
        Specified by:
        getShortDescription in interface IPlaceholderType
        Parameters:
        placeholder - A placeholder of this type for which to get the description.
        locale - The current language settings
        Returns:
        A short description for the given placeholder
      • getSortKeyFirst

        public int getSortKeyFirst()
        Specified by:
        getSortKeyFirst in interface IPlaceholderType
        Returns:
        Key by which placeholders types are sorted first.
      • isExpandInitially

        public abstract boolean isExpandInitially()
        Specified by:
        isExpandInitially in interface IPlaceholderType
        Returns:
        true True if this category should be expanded initially, false otherwise.