Class ConfigTheme.Builder
java.lang.Object
net.ixdarklord.coolcatcore.api.config.ConfigTheme.Builder
- Enclosing class:
ConfigTheme
-
Method Summary
Modifier and TypeMethodDescriptionaccent(int color) Just the accent (of both modes), keeping the rest; an opaque RGB like0xFF8A3Dworks too.background(@Nullable net.minecraft.resources.ResourceLocation texture) A texture's full path, likemymod:textures/gui/config_background.png.backgroundInWorld(boolean backgroundInWorld) Draws the texture in a world too, instead of the blurred world.backgroundOpacity(float opacity) The opacity of the backdrop color over the background, from 0 (not drawn) to 1 (hides it); 0.35 by default.build()colors(ConfigColorScheme colors) Every color of the screens in dark mode.The effects, as a list.effects(net.minecraft.resources.ResourceLocation... effects) The effects the screens draw, by the ids they're registered under, instead ofConfigTheme.STARFALL; drawn in this order.icon(@Nullable net.minecraft.resources.ResourceLocation texture) An icon texture's full path for the top bar, instead of the mod's own icon.lightColors(ConfigColorScheme lightColors) Every color of the screens in light mode; by default the light scheme in the dark scheme's accent.popupSprite(@Nullable net.minecraft.resources.ResourceLocation sprite) A GUI sprite id (likemymod:config/popup, a texture intextures/gui/sprites/, usually with a nine-slice.mcmeta) drawn as the panel of popups instead of the scheme's flat panel.textureOpacity(float opacity) The background texture's opacity, from 0 (invisible) to 1 (opaque, the default).tiled(int tileSize) Tiles the texture at this size (in GUI pixels); 0 for the texture's own size.
-
Method Details
-
colors
Every color of the screens in dark mode. -
lightColors
Every color of the screens in light mode; by default the light scheme in the dark scheme's accent. -
accent
Just the accent (of both modes), keeping the rest; an opaque RGB like0xFF8A3Dworks too. -
icon
public ConfigTheme.Builder icon(@Nullable @Nullable net.minecraft.resources.ResourceLocation 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.ResourceLocation texture) A texture's full path, likemymod:textures/gui/config_background.png. -
mode
-
tiled
Tiles the texture at this size (in GUI pixels); 0 for the texture's own size. -
backgroundOpacity
The opacity of the backdrop color over the background, from 0 (not drawn) to 1 (hides it); 0.35 by default. -
textureOpacity
The background texture's opacity, from 0 (invisible) to 1 (opaque, the default). -
backgroundInWorld
Draws the texture in a world too, instead of the blurred world. -
popupSprite
public ConfigTheme.Builder popupSprite(@Nullable @Nullable net.minecraft.resources.ResourceLocation sprite) A GUI sprite id (likemymod:config/popup, a texture intextures/gui/sprites/, usually with a nine-slice.mcmeta) drawn as the panel of popups instead of the scheme's flat panel. -
effects
The effects the screens draw, by the ids they're registered under, instead ofConfigTheme.STARFALL; drawn in this order. With none, the screens are still. -
effects
The effects, as a list. -
build
-