Interface ColorSetting

All Superinterfaces:
GuiSetting

public non-sealed interface ColorSetting extends GuiSetting
A choice of one of the user's colors, with opacity.
  • Method Details

    • paint

      GuiPaint paint()
      Returns:
      The chosen color at full opacity
    • colorName

      String colorName()
      Returns:
      Name of the chosen color as the GUI shows it
    • isDefault

      boolean isDefault()
      Returns:
      Whether the setting uses its default color rather than one the user picked
    • fillOpacity

      float fillOpacity()
    • outlineOpacity

      float outlineOpacity()
    • singleOpacity

      boolean singleOpacity()
      Returns:
      Whether fill and outline share one opacity
    • editor

      GuiEditor editor()
      Returns:
      The color choice editor