Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- AbstractConfigScreen<T extends Serializable> - Class in net.uku3lig.ukulib.config.screen
-
A screen used to edit a config.
- AbstractConfigScreen(String, Screen, ConfigManager<T>) - Constructor for class net.uku3lig.ukulib.config.screen.AbstractConfigScreen
-
Creates a config screen.
- addAll(WidgetCreator[]) - Method in class net.uku3lig.ukulib.config.option.widget.WidgetCreatorList
-
Add an array of widget creators.
- addEntries(WidgetCreator, WidgetCreator) - Method in class net.uku3lig.ukulib.config.option.widget.WidgetCreatorList
-
Add two entries.
- addUkulibButton(CallbackInfo) - Method in class net.uku3lig.ukulib.mixin.MixinOptionsScreen
-
Adds a button to open the config screen.
- appendClickableNarrations(NarrationMessageBuilder) - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
- applyValue() - Method in class net.uku3lig.ukulib.config.option.widget.DoubleSlider
B
- BaseConfigScreen<T extends Serializable> - Class in net.uku3lig.ukulib.config.screen
-
Simple abstract class which provides utilities for config screens
- BaseConfigScreen(String, Screen, ConfigManager<T>) - Constructor for class net.uku3lig.ukulib.config.screen.BaseConfigScreen
-
Constructs the screen
- BOOL_TO_TEXT - Static variable in class net.uku3lig.ukulib.config.option.CyclingOption
-
Boolean to text converter.
- BOTTOM_LEFT - Enum constant in enum class net.uku3lig.ukulib.config.Position
-
The bottom left of the screen.
- BOTTOM_RIGHT - Enum constant in enum class net.uku3lig.ukulib.config.Position
-
The bottom right of the screen.
- BrokenConfigScreen - Class in net.uku3lig.ukulib.config.impl
-
Simple screen shown when a config screen is broken.
- BrokenConfigScreen(Screen) - Constructor for class net.uku3lig.ukulib.config.impl.BrokenConfigScreen
-
Creates the screen.
- build() - Method in class net.uku3lig.ukulib.utils.SilentButtonWidget.Builder
-
Build the button
- Builder(Text, ButtonWidget.PressAction) - Constructor for class net.uku3lig.ukulib.utils.SilentButtonWidget.Builder
-
Creates a builder for a silent button
- ButtonEntry(int, WidgetCreator, WidgetCreator) - Constructor for class net.uku3lig.ukulib.config.option.widget.WidgetCreatorList.ButtonEntry
-
Creates an entry.
- buttonList - Variable in class net.uku3lig.ukulib.config.screen.AbstractConfigScreen
-
The widget used to display the options.
- ButtonTab<T extends Serializable> - Class in net.uku3lig.ukulib.config.option.widget
-
A tab made with
WidgetCreatorfor ease of use. - ButtonTab(String, ConfigManager<T>) - Constructor for class net.uku3lig.ukulib.config.option.widget.ButtonTab
-
Creates a widget tab and adds all the
given widgetsto it. - ButtonTab(Text, ConfigManager<T>) - Constructor for class net.uku3lig.ukulib.config.option.widget.ButtonTab
-
Creates a widget tab and adds all the
given widgetsto it
C
- charTyped(char, int) - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
- CheckedOption - Interface in net.uku3lig.ukulib.config.option
-
An option that can be checked for validity.
- children() - Method in class net.uku3lig.ukulib.config.option.widget.WidgetCreatorList.ButtonEntry
- close() - Method in class net.uku3lig.ukulib.config.impl.BrokenConfigScreen
- close() - Method in class net.uku3lig.ukulib.config.screen.CloseableScreen
- CloseableScreen - Class in net.uku3lig.ukulib.config.screen
-
A screen that can be closed, returning to a parent screen.
- CloseableScreen(String, Screen) - Constructor for class net.uku3lig.ukulib.config.screen.CloseableScreen
-
Constructs a closeable screen from a translation key
- CloseableScreen(Text, Screen) - Constructor for class net.uku3lig.ukulib.config.screen.CloseableScreen
-
Constructs a closeable screen
- ColorInputWidget - Class in net.uku3lig.ukulib.config.option.widget
-
A widget that allows the user to input a color.
- ColorInputWidget(int, int, int, int, int, IntConsumer, String, boolean) - Constructor for class net.uku3lig.ukulib.config.option.widget.ColorInputWidget
-
Constructor.
- ColorOption - Class in net.uku3lig.ukulib.config.option
-
An option to select a color.
- ColorOption(String, int, IntConsumer) - Constructor for class net.uku3lig.ukulib.config.option.ColorOption
-
Constructor.
- ColorOption(String, int, IntConsumer, boolean) - Constructor for class net.uku3lig.ukulib.config.option.ColorOption
-
Constructor.
- ConfigManager<T extends Serializable> - Class in net.uku3lig.ukulib.config
-
Manages a config, by holding it, saving it and loading it.
- ConfigManager(ConfigSerializer<T>) - Constructor for class net.uku3lig.ukulib.config.ConfigManager
-
Creates a manager which provides an initial config by deserializing the file.
- ConfigManager(ConfigSerializer<T>, T) - Constructor for class net.uku3lig.ukulib.config.ConfigManager
-
Creates a manager.
- ConfigSerializer<T extends Serializable> - Interface in net.uku3lig.ukulib.config.serialization
-
Manages the serialization of a configuration file.
- createDefault(Class<T>, String) - Static method in class net.uku3lig.ukulib.config.ConfigManager
-
Creates a default config manager, with a default config serializer.
- createWidget(int, int, int, int) - Method in class net.uku3lig.ukulib.config.option.ColorOption
- createWidget(int, int, int, int) - Method in class net.uku3lig.ukulib.config.option.CyclingOption
- createWidget(int, int, int, int) - Method in class net.uku3lig.ukulib.config.option.InputOption
- createWidget(int, int, int, int) - Method in class net.uku3lig.ukulib.config.option.ScreenOpenButton
- createWidget(int, int, int, int) - Method in class net.uku3lig.ukulib.config.option.SimpleButton
- createWidget(int, int, int, int) - Method in class net.uku3lig.ukulib.config.option.SliderOption
- createWidget(int, int, int, int) - Method in class net.uku3lig.ukulib.config.option.TextOption
- createWidget(int, int, int, int) - Method in interface net.uku3lig.ukulib.config.option.WidgetCreator
-
Creates the widget.
- CyclingOption<T> - Class in net.uku3lig.ukulib.config.option
-
An option type based on a finite amount of cycling values of the same type.
- CyclingOption(String, Collection<T>, T, Consumer<T>, Function<T, Text>) - Constructor for class net.uku3lig.ukulib.config.option.CyclingOption
-
Constructs a new generic cycling option, with no tooltip.
- CyclingOption(String, Collection<T>, T, Consumer<T>, Function<T, Text>, SimpleOption.TooltipFactory<T>) - Constructor for class net.uku3lig.ukulib.config.option.CyclingOption
-
Constructs a new generic cycling option.
D
- DEFAULT_VALUE_TO_TEXT - Static variable in class net.uku3lig.ukulib.config.option.SliderOption
-
Displays a double with 2 decimals of precision.
- deserialize() - Method in interface net.uku3lig.ukulib.config.serialization.ConfigSerializer
-
Deserializes the config.
- deserialize() - Method in class net.uku3lig.ukulib.config.serialization.JsonConfigSerializer
- deserialize() - Method in class net.uku3lig.ukulib.config.serialization.TomlConfigSerializer
-
Reads the config from the file.
- dimensions(int, int, int, int) - Method in class net.uku3lig.ukulib.utils.SilentButtonWidget.Builder
-
Sets the dimensions
- doneButton(int, int, Screen) - Static method in class net.uku3lig.ukulib.utils.Ukutils
-
Creates a done button.
- DoubleSlider - Class in net.uku3lig.ukulib.config.option.widget
-
Implementation of a slider widget for use in
SliderOption. - DoubleSlider(String, DoubleFunction<Text>, double, double, double, double, DoubleConsumer, SimpleOption.TooltipFactory<Double>, int, int, int, int) - Constructor for class net.uku3lig.ukulib.config.option.widget.DoubleSlider
-
Constructs a new slider.
- draw(DrawContext, int, int, float, int, int) - Method in class net.uku3lig.ukulib.config.screen.PositionSelectScreen
-
Draws the screen and all the components in it.
- drawDefault(DrawContext, int, int, float) - Method in class net.uku3lig.ukulib.config.screen.PositionSelectScreen
-
Draws the screen and all the components in it, in their default position.
E
- enableModMenuIntegration() - Method in interface net.uku3lig.ukulib.api.UkulibAPI
-
This method is used to enable or disable the integration with Mod Menu.
- enumNameToText(T) - Static method in class net.uku3lig.ukulib.config.option.CyclingOption
-
Returns a text that contains the name of the enum constant.
- equals(Object) - Method in record class net.uku3lig.ukulib.utils.PlayerArgumentType.PlayerSelector
-
Indicates whether some other object is "equal to" this one.
- eraseCharacters(int) - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
-
Erases characters depending on the
characterOffset. - eraseWords(int) - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
-
Erases words depending on the
wordOffset.
G
- getConfig() - Method in class net.uku3lig.ukulib.config.ConfigManager
-
The config held by the manager.
- getConfigPath(String) - Static method in class net.uku3lig.ukulib.utils.Ukutils
-
Creates a config path for a file name.
- getCursor() - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
-
Returns the position of the cursor, or the beginning of the selection.
- getExamples() - Method in class net.uku3lig.ukulib.utils.PlayerArgumentType
- getId() - Method in enum class net.uku3lig.ukulib.config.Position
- getInnerWidth() - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
-
Returns width of the text field, without the border.
- getMaxLength() - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
-
The maximum length of the text.
- getNarrationMessage() - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
- getNavigationPath(GuiNavigation) - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
- getOption(Collection<Position>, Position, Consumer<Position>) - Static method in enum class net.uku3lig.ukulib.config.Position
-
Creates a
CyclingOptionthat allows to choose between all theallowedValues. - getOption(Position, Consumer<Position>) - Static method in enum class net.uku3lig.ukulib.config.Position
-
Creates a
CyclingOptionthat allows to choose between all of this enum's values. - getPlayer(String, CommandContext<FabricClientCommandSource>) - Static method in class net.uku3lig.ukulib.utils.PlayerArgumentType
-
Gets the player passed to the command.
- getProvidedConfigScreenFactories() - Method in class net.uku3lig.ukulib.utils.ModMenuRegistrar
- getProvidedConfigScreens() - Method in interface net.uku3lig.ukulib.api.UkulibProvider
-
The map of the config screens, linked to their mod id.
- getRowWidth() - Method in class net.uku3lig.ukulib.config.option.widget.WidgetCreatorList
- getScrollbarPositionX() - Method in class net.uku3lig.ukulib.config.option.widget.WidgetCreatorList
- getSelectedText() - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
-
Gets the currently selected text, if any.
- getTabs(T) - Method in class net.uku3lig.ukulib.config.screen.TabbedConfigScreen
-
The list of tabs to be displayed.
- getText() - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
-
The text.
- getText(OrderedText) - Static method in class net.uku3lig.ukulib.utils.Ukutils
-
Retrieves the string text from an ordered text.
- getTextCoords(Text, int, TextRenderer, int, int) - Static method in class net.uku3lig.ukulib.utils.Ukutils
-
Makes text coordinates based on the position of a standard 16x16 icon.
- getTextCoords(Text, int, TextRenderer, int, int, int, int) - Static method in class net.uku3lig.ukulib.utils.Ukutils
-
Makes text coordinates based on the position of an icon.
- getTranslationKey() - Method in enum class net.uku3lig.ukulib.config.Position
- getWidgets(T) - Method in class net.uku3lig.ukulib.config.option.widget.ButtonTab
-
The widgets to be shown in this tab
- getWidgets(T) - Method in class net.uku3lig.ukulib.config.screen.AbstractConfigScreen
-
The list of widgets that will be shown to the user when this screen is displayed.
- getWordSkipPosition(int) - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
-
Gets the position of the word to skip to.
H
- hashCode() - Method in record class net.uku3lig.ukulib.utils.PlayerArgumentType.PlayerSelector
-
Returns a hash code value for this object.
I
- IconButton - Class in net.uku3lig.ukulib.utils
-
A simple button with an icon.
- IconButton(int, int, int, int, int, int, int, Identifier, int, int, ButtonWidget.PressAction) - Constructor for class net.uku3lig.ukulib.utils.IconButton
-
Makes a new button with an icon.
- init() - Method in class net.uku3lig.ukulib.config.impl.UkulibConfigScreen
- init() - Method in class net.uku3lig.ukulib.config.screen.AbstractConfigScreen
- init() - Method in class net.uku3lig.ukulib.config.screen.BaseConfigScreen
- init() - Method in class net.uku3lig.ukulib.config.screen.PositionSelectScreen
- init() - Method in class net.uku3lig.ukulib.config.screen.TabbedConfigScreen
- initTabNavigation() - Method in class net.uku3lig.ukulib.config.screen.TabbedConfigScreen
- InputOption - Class in net.uku3lig.ukulib.config.option
-
An option to input text.
- InputOption(String, String, Consumer<String>) - Constructor for class net.uku3lig.ukulib.config.option.InputOption
-
Constructor.
- InputOption(String, String, Consumer<String>, Predicate<String>) - Constructor for class net.uku3lig.ukulib.config.option.InputOption
-
Constructor.
- InputOption(String, String, Consumer<String>, Predicate<String>, int) - Constructor for class net.uku3lig.ukulib.config.option.InputOption
-
Constructor.
- INTEGER_VALUE_TO_TEXT - Static variable in class net.uku3lig.ukulib.config.option.SliderOption
-
Displays a double as a rounded integer.
- isBottom() - Method in enum class net.uku3lig.ukulib.config.Position
-
Checks if the position is at the bottom of the screen.
- isInactive() - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
-
Checks if the text field is inactive.
- isMouseOver(double, double) - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
- isRight() - Method in enum class net.uku3lig.ukulib.config.Position
-
Checks if the position is on the right of the screen.
- isValid() - Method in interface net.uku3lig.ukulib.config.option.CheckedOption
-
Checks if the option is valid.
- isValid() - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
- isVisible() - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
-
Whether the text field is currently visible.
J
- JsonConfigSerializer<T extends Serializable> - Class in net.uku3lig.ukulib.config.serialization
- JsonConfigSerializer(Class<T>, String) - Constructor for class net.uku3lig.ukulib.config.serialization.JsonConfigSerializer
K
- KEY - Static variable in enum class net.uku3lig.ukulib.config.Position
-
Translation key for the position
- keyPressed(int, int, int) - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
- keyPressed(int, int, int) - Method in class net.uku3lig.ukulib.config.screen.PositionSelectScreen
L
- LinedTextWidget - Class in net.uku3lig.ukulib.config.option.widget
-
A text widget that can have a line before the text.
- LinedTextWidget(int, int, int, int, Text, TextRenderer, boolean, int) - Constructor for class net.uku3lig.ukulib.config.option.widget.LinedTextWidget
-
Constructor.
- listSuggestions(CommandContext<S>, SuggestionsBuilder) - Method in class net.uku3lig.ukulib.utils.PlayerArgumentType
M
- makeDefault() - Method in interface net.uku3lig.ukulib.config.serialization.ConfigSerializer
-
Creates a new default configuration.
- makeDefault() - Method in class net.uku3lig.ukulib.config.serialization.JsonConfigSerializer
- makeDefault() - Method in class net.uku3lig.ukulib.config.serialization.TomlConfigSerializer
- manager - Variable in class net.uku3lig.ukulib.config.option.widget.ButtonTab
-
The config manager
- manager - Variable in class net.uku3lig.ukulib.config.screen.BaseConfigScreen
-
The config manager
- MIDDLE - Enum constant in enum class net.uku3lig.ukulib.config.Position
-
Above the experience bar, usually between the health and hunger bars.
- MixinOptionsScreen - Class in net.uku3lig.ukulib.mixin
-
Mixin for
OptionsScreen. - MixinOptionsScreen(Text) - Constructor for class net.uku3lig.ukulib.mixin.MixinOptionsScreen
-
constructor :D
- ModMenuRegistrar - Class in net.uku3lig.ukulib.utils
-
This class is used to integrate mods that use ukulib with Mod Menu.
- ModMenuRegistrar() - Constructor for class net.uku3lig.ukulib.utils.ModMenuRegistrar
- mouseClicked(double, double, int) - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
- mouseClicked(double, double, int) - Method in class net.uku3lig.ukulib.config.screen.PositionSelectScreen
- moveCursor(int) - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
-
Moves the cursor by the specified offset.
N
- name() - Method in record class net.uku3lig.ukulib.utils.PlayerArgumentType.PlayerSelector
-
Returns the value of the
namerecord component. - narrationSupplier(ButtonWidget.NarrationSupplier) - Method in class net.uku3lig.ukulib.utils.SilentButtonWidget.Builder
-
Sets the narration supplier
- net.uku3lig.ukulib.api - package net.uku3lig.ukulib.api
- net.uku3lig.ukulib.config - package net.uku3lig.ukulib.config
- net.uku3lig.ukulib.config.impl - package net.uku3lig.ukulib.config.impl
- net.uku3lig.ukulib.config.option - package net.uku3lig.ukulib.config.option
- net.uku3lig.ukulib.config.option.widget - package net.uku3lig.ukulib.config.option.widget
- net.uku3lig.ukulib.config.screen - package net.uku3lig.ukulib.config.screen
- net.uku3lig.ukulib.config.serialization - package net.uku3lig.ukulib.config.serialization
- net.uku3lig.ukulib.mixin - package net.uku3lig.ukulib.mixin
- net.uku3lig.ukulib.utils - package net.uku3lig.ukulib.utils
- newInstance(Class<T>) - Static method in class net.uku3lig.ukulib.utils.ReflectionUtils
-
Creates an instance of a given config class.
O
- ofBoolean(String, boolean, Consumer<Boolean>) - Static method in class net.uku3lig.ukulib.config.option.CyclingOption
-
Creates a new boolean option, with an empty tooltip.
- ofBoolean(String, boolean, Consumer<Boolean>, SimpleOption.TooltipFactory<Boolean>) - Static method in class net.uku3lig.ukulib.config.option.CyclingOption
-
Creates a new boolean option.
- ofEnum(String, Class<T>, T, Consumer<T>) - Static method in class net.uku3lig.ukulib.config.option.CyclingOption
-
Creates a new option based on an enum's values, with an empty tooltip.
- ofEnum(String, Class<T>, T, Consumer<T>, Function<T, Text>) - Static method in class net.uku3lig.ukulib.config.option.CyclingOption
-
Creates a new option based on an enum's values, with an empty tooltip.
- ofEnum(String, Class<T>, T, Consumer<T>, Function<T, Text>, SimpleOption.TooltipFactory<T>) - Static method in class net.uku3lig.ukulib.config.option.CyclingOption
-
Creates a new option based on an enum's values.
- ofTranslatable(String, Collection<T>, T, Consumer<T>) - Static method in class net.uku3lig.ukulib.config.option.CyclingOption
-
Creates a new option from a
TranslatableOption, with an empty tooltip. - ofTranslatable(String, Collection<T>, T, Consumer<T>, SimpleOption.TooltipFactory<T>) - Static method in class net.uku3lig.ukulib.config.option.CyclingOption
-
Creates a new option from a
TranslatableOption. - ofTranslatableEnum(String, Class<T>, T, Consumer<T>) - Static method in class net.uku3lig.ukulib.config.option.CyclingOption
-
Creates a new option based on a
translatableenum's values, with an empty tooltip. - ofTranslatableEnum(String, Class<T>, T, Consumer<T>, SimpleOption.TooltipFactory<T>) - Static method in class net.uku3lig.ukulib.config.option.CyclingOption
-
Creates a new option based on a
translatableenum's values.
P
- parent - Variable in class net.uku3lig.ukulib.config.screen.CloseableScreen
-
The parent screen.
- parse(StringReader) - Method in class net.uku3lig.ukulib.utils.PlayerArgumentType
- PERCENT_VALUE_TO_TEXT - Static variable in class net.uku3lig.ukulib.config.option.SliderOption
-
Displays a double as a percentage, with no further precision.
- playDownSound(SoundManager) - Method in class net.uku3lig.ukulib.utils.SilentButtonWidget
- player() - Static method in class net.uku3lig.ukulib.utils.PlayerArgumentType
-
Returns a new instance.
- PLAYER_NOT_FOUND_EXCEPTION - Static variable in class net.uku3lig.ukulib.utils.PlayerArgumentType
-
The exception thrown when the selected player is not found.
- PlayerArgumentType - Class in net.uku3lig.ukulib.utils
-
An argument type which represents players.
- PlayerArgumentType() - Constructor for class net.uku3lig.ukulib.utils.PlayerArgumentType
- PlayerArgumentType.PlayerSelector - Record Class in net.uku3lig.ukulib.utils
-
Simple record used to store the player name for later use
- PlayerSelector(String) - Constructor for record class net.uku3lig.ukulib.utils.PlayerArgumentType.PlayerSelector
-
Creates an instance of a
PlayerSelectorrecord class. - position(int, int) - Method in class net.uku3lig.ukulib.utils.SilentButtonWidget.Builder
-
Sets the position
- Position - Enum Class in net.uku3lig.ukulib.config
-
An enum used to represent various positions.
- PositionSelectScreen - Class in net.uku3lig.ukulib.config.screen
-
Simple screen used to select a custom position on the screen for an element.
- PositionSelectScreen(String, Screen, int, int, ConfigManager<?>, BiConsumer<Integer, Integer>) - Constructor for class net.uku3lig.ukulib.config.screen.PositionSelectScreen
-
Creates a position select screen.
R
- ReflectionUtils - Class in net.uku3lig.ukulib.utils
-
Utility class for reflection
- removed() - Method in class net.uku3lig.ukulib.config.screen.BaseConfigScreen
- removed() - Method in class net.uku3lig.ukulib.config.screen.PositionSelectScreen
- render(DrawContext, int, int, float) - Method in class net.uku3lig.ukulib.config.impl.BrokenConfigScreen
- render(DrawContext, int, int, float) - Method in class net.uku3lig.ukulib.config.impl.UkulibConfigScreen
- render(DrawContext, int, int, float) - Method in class net.uku3lig.ukulib.config.screen.AbstractConfigScreen
- render(DrawContext, int, int, float) - Method in class net.uku3lig.ukulib.config.screen.PositionSelectScreen
- render(DrawContext, int, int, float) - Method in class net.uku3lig.ukulib.config.screen.TabbedConfigScreen
- render(DrawContext, int, int, int, int, int, int, int, boolean, float) - Method in class net.uku3lig.ukulib.config.option.widget.WidgetCreatorList.ButtonEntry
- renderButton(DrawContext, int, int, float) - Method in class net.uku3lig.ukulib.config.option.widget.ColorInputWidget
- renderButton(DrawContext, int, int, float) - Method in class net.uku3lig.ukulib.config.option.widget.LinedTextWidget
- renderButton(DrawContext, int, int, float) - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
- renderButton(DrawContext, int, int, float) - Method in class net.uku3lig.ukulib.utils.IconButton
- replaceConfig(T) - Method in class net.uku3lig.ukulib.config.ConfigManager
-
Replaces the current config with a new one, serializing it in the process.
- resetConfig() - Method in class net.uku3lig.ukulib.config.ConfigManager
-
Resets the config to its default, from a default provided by the
ConfigSerializer.
S
- saveConfig() - Method in class net.uku3lig.ukulib.config.ConfigManager
-
Saves the stored config.
- ScreenOpenButton - Class in net.uku3lig.ukulib.config.option
-
A button that opens a screen when clicked.
- ScreenOpenButton(String, UnaryOperator<Screen>) - Constructor for class net.uku3lig.ukulib.config.option.ScreenOpenButton
-
Creates a new button.
- selectableChildren() - Method in class net.uku3lig.ukulib.config.option.widget.WidgetCreatorList.ButtonEntry
- serialize(T) - Method in interface net.uku3lig.ukulib.config.serialization.ConfigSerializer
-
Serializes the config.
- serialize(T) - Method in class net.uku3lig.ukulib.config.serialization.JsonConfigSerializer
- serialize(T) - Method in class net.uku3lig.ukulib.config.serialization.TomlConfigSerializer
- setCursor(int) - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
-
Sets the cursor position.
- setCursorToEnd() - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
-
Sets the cursor position to the end of the text.
- setCursorToStart() - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
-
Sets the cursor position to the start of the text.
- setSelectionEnd(int) - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
-
Sets the end of the selection.
- setSelectionStart(int) - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
-
Sets the start of the selection.
- setText(String) - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
-
Sets the text.
- silentBuilder(Text, ButtonWidget.PressAction) - Static method in class net.uku3lig.ukulib.utils.SilentButtonWidget
-
Creates a builder for a silent button
- SilentButtonWidget - Class in net.uku3lig.ukulib.utils
-
A button that doesn't make noise.
- SilentButtonWidget(int, int, int, int, Text, ButtonWidget.PressAction, ButtonWidget.NarrationSupplier) - Constructor for class net.uku3lig.ukulib.utils.SilentButtonWidget
-
Creates a new silent button
- SilentButtonWidget.Builder - Class in net.uku3lig.ukulib.utils
-
A silent button builder
- SimpleButton - Class in net.uku3lig.ukulib.config.option
-
A simple button that does something when pressed.
- SimpleButton(String, ButtonWidget.PressAction) - Constructor for class net.uku3lig.ukulib.config.option.SimpleButton
-
Creates a simple translated button.
- SimpleButton(Text, ButtonWidget.PressAction) - Constructor for class net.uku3lig.ukulib.config.option.SimpleButton
-
Creates a simple button.
- size(int, int) - Method in class net.uku3lig.ukulib.utils.SilentButtonWidget.Builder
-
Sets the size
- SliderOption - Class in net.uku3lig.ukulib.config.option
-
A
doubleoption, displayed by a slider. - SliderOption(String, double, DoubleConsumer, DoubleFunction<Text>) - Constructor for class net.uku3lig.ukulib.config.option.SliderOption
-
Creates a slider option, between 0 (inclusive) and 1 (inclusive), with no step or tooltip.
- SliderOption(String, double, DoubleConsumer, DoubleFunction<Text>, double, double) - Constructor for class net.uku3lig.ukulib.config.option.SliderOption
-
Creates a slider option, with no step or tooltip.
- SliderOption(String, double, DoubleConsumer, DoubleFunction<Text>, double, double, double) - Constructor for class net.uku3lig.ukulib.config.option.SliderOption
-
Creates a slider option, with no tooltip.
- SliderOption(String, double, DoubleConsumer, DoubleFunction<Text>, double, double, double, SimpleOption.TooltipFactory<Double>) - Constructor for class net.uku3lig.ukulib.config.option.SliderOption
-
Creates a slider option.
- supplyConfigScreen() - Method in interface net.uku3lig.ukulib.api.UkulibAPI
-
This method is used to show your mod's config screen in the Ukulib config screen.
T
- TabbedConfigScreen<T extends Serializable> - Class in net.uku3lig.ukulib.config.screen
-
A config screen that utilizes a tabbed layout instead of a simple list of buttons.
- TabbedConfigScreen(String, Screen, ConfigManager<T>) - Constructor for class net.uku3lig.ukulib.config.screen.TabbedConfigScreen
-
Creates a tabbed config screen.
- TextInputWidget - Class in net.uku3lig.ukulib.config.option.widget
-
A widget to input text.
- TextInputWidget(int, int, int, int, String, Consumer<String>, String, Predicate<String>, int) - Constructor for class net.uku3lig.ukulib.config.option.widget.TextInputWidget
-
Constructor.
- TextOption - Class in net.uku3lig.ukulib.config.option
-
An option to display text.
- TextOption(String) - Constructor for class net.uku3lig.ukulib.config.option.TextOption
-
Constructor.
- TextOption(String, boolean) - Constructor for class net.uku3lig.ukulib.config.option.TextOption
-
Constructor.
- TextOption(String, boolean, int) - Constructor for class net.uku3lig.ukulib.config.option.TextOption
-
Constructor.
- tick() - Method in class net.uku3lig.ukulib.config.screen.BaseConfigScreen
- tick() - Method in class net.uku3lig.ukulib.config.screen.TabbedConfigScreen
- TomlConfigSerializer<T extends Serializable> - Class in net.uku3lig.ukulib.config.serialization
-
A default config serializer, which saves the config in a TOML file.
- TomlConfigSerializer(Class<T>, String) - Constructor for class net.uku3lig.ukulib.config.serialization.TomlConfigSerializer
-
Creates a serializer.
- tooltip(Tooltip) - Method in class net.uku3lig.ukulib.utils.SilentButtonWidget.Builder
-
Sets the tooltip
- TOP_LEFT - Enum constant in enum class net.uku3lig.ukulib.config.Position
-
The top left of the screen.
- TOP_RIGHT - Enum constant in enum class net.uku3lig.ukulib.config.Position
-
The top right of the screen.
- toString() - Method in record class net.uku3lig.ukulib.utils.PlayerArgumentType.PlayerSelector
-
Returns a string representation of this record class.
U
- UkulibAPI - Interface in net.uku3lig.ukulib.api
-
This interface is used to integrate your mod with Ukulib.
- UkulibConfigScreen - Class in net.uku3lig.ukulib.config.impl
-
Ukulib's config screen.
- UkulibConfigScreen(Screen) - Constructor for class net.uku3lig.ukulib.config.impl.UkulibConfigScreen
-
Creates a config screen.
- UkulibProvider - Interface in net.uku3lig.ukulib.api
-
This interface can be used to provide *other* config screens to ukulib.
- Ukutils - Class in net.uku3lig.ukulib.utils
-
Simple class for various utilities.
- updateMessage() - Method in class net.uku3lig.ukulib.config.option.widget.DoubleSlider
V
- valueOf(String) - Static method in enum class net.uku3lig.ukulib.config.Position
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class net.uku3lig.ukulib.config.Position
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- WidgetCreator - Interface in net.uku3lig.ukulib.config.option
-
An interface used to create clickable widgets
- WidgetCreatorList - Class in net.uku3lig.ukulib.config.option.widget
-
A list of
WidgetCreator, used to construct a vertical list of widgets - WidgetCreatorList(MinecraftClient, int, int, int, int, int) - Constructor for class net.uku3lig.ukulib.config.option.widget.WidgetCreatorList
-
Creates an empty widget list
- WidgetCreatorList.ButtonEntry - Class in net.uku3lig.ukulib.config.option.widget
-
A widget entry, made of one or two creators.
- width(int) - Method in class net.uku3lig.ukulib.utils.SilentButtonWidget.Builder
-
Sets the width
- write(String) - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
-
Writes the given text to the current cursor position.
All Classes and Interfaces|All Packages|Constant Field Values