Class ConfigTheme.Builder

java.lang.Object
net.ixdarklord.coolcatcore.api.config.ConfigTheme.Builder
Enclosing class:
ConfigTheme

public static final class ConfigTheme.Builder extends Object
  • Method Details

    • colors

      public ConfigTheme.Builder colors(ConfigColorScheme colors)
      Every color of the screens in dark mode.
    • lightColors

      public ConfigTheme.Builder lightColors(ConfigColorScheme lightColors)
      Every color of the screens in light mode; by default the light scheme in the dark scheme's accent.
    • accent

      public ConfigTheme.Builder accent(int color)
      Just the accent (of both modes), keeping the rest; an opaque RGB like 0xFF8A3D works too.
    • icon

      public ConfigTheme.Builder icon(@Nullable @Nullable net.minecraft.resources.Identifier texture)
      An icon texture's full path for the top bar, instead of the mod's own icon.
    • background

      public ConfigTheme.Builder background(@Nullable @Nullable net.minecraft.resources.Identifier texture)
      A texture's full path, like mymod:textures/gui/config_background.png.
    • mode

    • tiled

      public ConfigTheme.Builder tiled(int tileSize)
      Tiles the texture at this size (in GUI pixels); 0 for the texture's own size.
    • backgroundOpacity

      public ConfigTheme.Builder backgroundOpacity(float opacity)
      The opacity of the backdrop color over the background, from 0 (not drawn) to 1 (hides it); 0.35 by default.
    • textureOpacity

      public ConfigTheme.Builder textureOpacity(float opacity)
      The background texture's opacity, from 0 (invisible) to 1 (opaque, the default).
    • backgroundInWorld

      public ConfigTheme.Builder backgroundInWorld(boolean backgroundInWorld)
      Draws the texture in a world too, instead of the blurred world.
    • popupSprite

      public ConfigTheme.Builder popupSprite(@Nullable @Nullable net.minecraft.resources.Identifier sprite)
      A GUI sprite id (like mymod:config/popup, a texture in textures/gui/sprites/, usually with a nine-slice .mcmeta) drawn as the panel of popups instead of the scheme's flat panel.
    • effects

      public ConfigTheme.Builder effects(net.minecraft.resources.Identifier... effects)
      The effects the screens draw, by the ids they're registered under, instead of ConfigTheme.STARFALL; drawn in this order. With none, the screens are still.
    • effects

      public ConfigTheme.Builder effects(List<net.minecraft.resources.Identifier> effects)
      The effects, as a list.
    • build

      public ConfigTheme build()