Class CustomGuiIcon.Builder

  • Enclosing class:
    CustomGuiIcon

    public static final class CustomGuiIcon.Builder
    extends Object
    A new builder for a custom GUI icon.
    Since:
    8.0.1
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • style

        public CustomGuiIcon.Builder style​(String style)
        Sets the inline style of the icon.
        Parameters:
        style - Style of the icon.
        Returns:
        This builder instance for chaining method calls.
      • styleClass

        public CustomGuiIcon.Builder styleClass​(String styleClass)
        Sets the style class of the icon.
        Parameters:
        styleClass - Style class of the icon.
        Returns:
        This builder instance for chaining method calls.
      • value

        public CustomGuiIcon.Builder value​(String value)
        Sets the value (text content) of the icon, usually used by icons implemented via ligatures.
        Parameters:
        value - Text content of the icon.
        Returns:
        This builder instance for chaining method calls.
      • build

        public CustomGuiIcon build()
        Returns:
        A new custom GUI icon with the current settings.