Class ConfigScreens
java.lang.Object
net.ixdarklord.coolcatcore.api.config.client.ConfigScreens
Client only: config screens for Core's configs. Core has none of its own: they come from Glazed Menu (a separate,
client-side mod) when it's installed. Without it every method here opens nothing (returning null), and the configs
still work from their files;
isAvailable() tells which, and tellUnavailable(Config) tells the
player how to change a config without screens.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceWhat makes the screens: Glazed Menu sets it as it starts. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable net.minecraft.client.gui.screens.ScreencategoryPopup(@Nullable net.minecraft.client.gui.screens.Screen parent, String modId, String path) A popup editing one category of a mod's configs, or null when it has none there or there are no screens.static @Nullable net.minecraft.client.gui.screens.ScreencategoryPopup(@Nullable net.minecraft.client.gui.screens.Screen parent, Config config, String path) A popup editing one category of a config (its path, like"client.visuals"), or null without screens.static @Nullable net.minecraft.client.gui.screens.ScreencategoryPopup(@Nullable net.minecraft.client.gui.screens.Screen parent, Config config, String path, ConfigTheme theme) AscategoryPopup(Screen, Config, String), in its own theme.static @Nullable net.minecraft.client.gui.screens.ScreencolorPicker(@Nullable net.minecraft.client.gui.screens.Screen parent, net.minecraft.network.chat.Component title, int color, boolean alpha, IntConsumer onDone) A color picker in the screens' style, or null without screens.static @Nullable net.minecraft.client.gui.screens.ScreenThe mod's config screen (its configs' list, or the one config), or null when it has none or there are no screens.static @Nullable net.minecraft.client.gui.screens.ScreenThe screen editing one config, or null without screens.static @Nullable net.minecraft.client.gui.screens.ScreencreateModList(@Nullable net.minecraft.client.gui.screens.Screen parent) A screen listing every mod's configs, or null without screens.static booleanhasConfigs(String modId) Whether the mod has configs the screens can show; false without screens.static booleanWhether there are config screens: Glazed Menu is installed.static voidOpens a mod's config screen on top of the current screen; nothing without screens.static voidopenCategory(String modId, String path) OpenscategoryPopup(Screen, String, String)over the current screen; nothing without screens.static voidsetProvider(ConfigScreens.Provider screens) static voidtellUnavailable(Config config) PutsunavailableMessage(Config)in the player's chat.static net.minecraft.network.chat.ComponentunavailableMessage(Config config) Without screens: what to tell the player who wants to change the config in game.
-
Method Details
-
setProvider
-
isAvailable
public static boolean isAvailable()Whether there are config screens: Glazed Menu is installed. -
create
@Nullable public static @Nullable net.minecraft.client.gui.screens.Screen create(@Nullable @Nullable net.minecraft.client.gui.screens.Screen parent, String modId) The mod's config screen (its configs' list, or the one config), or null when it has none or there are no screens. -
create
@Nullable public static @Nullable net.minecraft.client.gui.screens.Screen create(@Nullable @Nullable net.minecraft.client.gui.screens.Screen parent, Config config) The screen editing one config, or null without screens. -
categoryPopup
-
categoryPopup
@Nullable public static @Nullable net.minecraft.client.gui.screens.Screen categoryPopup(@Nullable @Nullable net.minecraft.client.gui.screens.Screen parent, Config config, String path, ConfigTheme theme) AscategoryPopup(Screen, Config, String), in its own theme. -
categoryPopup
-
openCategory
OpenscategoryPopup(Screen, String, String)over the current screen; nothing without screens. -
createModList
@Nullable public static @Nullable net.minecraft.client.gui.screens.Screen createModList(@Nullable @Nullable net.minecraft.client.gui.screens.Screen parent) A screen listing every mod's configs, or null without screens. -
open
Opens a mod's config screen on top of the current screen; nothing without screens. -
colorPicker
@Nullable public static @Nullable net.minecraft.client.gui.screens.Screen colorPicker(@Nullable @Nullable net.minecraft.client.gui.screens.Screen parent, net.minecraft.network.chat.Component title, int color, boolean alpha, IntConsumer onDone) A color picker in the screens' style, or null without screens. -
hasConfigs
Whether the mod has configs the screens can show; false without screens.
-