Class CustomColor.Builder

  • Enclosing class:
    CustomColor

    public static class CustomColor.Builder
    extends Object
    Simple builder for a CustomColor.
    Author:
    XIMA MEDIA GmbH
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • build

        public IGuiColor build()
        Returns:
        The custom color with the current settings.
      • with

        public <T extends SerializableCustomColor.Builder with​(IColorField<T> field,
                                                                 T value)
        Adss the given field to the custom color.
        Type Parameters:
        T - Type of the field value.
        Parameters:
        field - A field to support.
        value - The value of the field.
        Returns:
        this for chaining.