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.
- addManager(ConfigManager<?>) - Static method in class net.uku3lig.ukulib.config.ConfigManagerReloader
-
Adds a config manager to be reloaded.
- addUkulibButton(CallbackInfo) - Method in class net.uku3lig.ukulib.mixin.MixinOptionsScreen
-
Adds a button to open the config screen.
- addWideEntry(WidgetCreator) - Method in class net.uku3lig.ukulib.config.option.widget.WidgetCreatorList
-
Add a single, wide entry.
- appendClickableNarrations(NarrationMessageBuilder) - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
- applyConfigChecked(Function<T, R>, R) - Method in class net.uku3lig.ukulib.config.screen.BaseConfigScreen
-
Tries to apply the current config to a function (eg.
- 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.utils.Position
-
The bottom left of the screen.
- BOTTOM_RIGHT - Enum constant in enum class net.uku3lig.ukulib.utils.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) - Constructor for class net.uku3lig.ukulib.config.option.widget.WidgetCreatorList.ButtonEntry
-
Creates a single, wide entry.
- 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.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.
- ConfigManagerReloader - Class in net.uku3lig.ukulib.config
-
Reloads all config managers when the resource manager reloads (e.g.
- ConfigManagerReloader() - Constructor for class net.uku3lig.ukulib.config.ConfigManagerReloader
- 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.IntSliderOption
- 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 class net.uku3lig.ukulib.config.option.TypedInputOption
- createWidget(int, int, int, int) - Method in class net.uku3lig.ukulib.config.option.WideWidgetCreator
- 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_INT_TO_TEXT - Static variable in class net.uku3lig.ukulib.config.option.IntSliderOption
-
Converts an int to Text using its String representation.
- 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(Text, 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
- getFabricId() - Method in class net.uku3lig.ukulib.config.ConfigManagerReloader
- getHeadTex(String) - Static method in class net.uku3lig.ukulib.utils.Ukutils
-
Gets the texture of a player's head.
- getIconHeight() - Method in class net.uku3lig.ukulib.utils.IconButton
-
The height of the icon
- getIconWidth() - Method in class net.uku3lig.ukulib.utils.IconButton
-
The width of the icon
- getId() - Method in enum class net.uku3lig.ukulib.utils.Position
- getInnerWidth() - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
-
Returns width of the text field, without the border.
- getInvalidOptions() - Method in class net.uku3lig.ukulib.config.screen.AbstractConfigScreen
- getInvalidOptions() - Method in class net.uku3lig.ukulib.config.screen.BaseConfigScreen
-
Finds invalid options in the config screen.
- getInvalidOptions() - Method in class net.uku3lig.ukulib.config.screen.TabbedConfigScreen
- getMaxLength() - Method in class net.uku3lig.ukulib.config.option.widget.TextInputWidget
-
The maximum length of the text.
- getModConfigScreenFactory() - Method in class net.uku3lig.ukulib.utils.ModMenuRegistrar
- 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.utils.Position
-
Creates a
CyclingOptionthat allows to choose between all theallowedValues. - getOption(Position, Consumer<Position>) - Static method in enum class net.uku3lig.ukulib.utils.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.UkulibAPI
-
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.
- getTexture() - Method in class net.uku3lig.ukulib.utils.IconButton
-
The texture of the icon
- getTextureHeight() - Method in class net.uku3lig.ukulib.utils.IconButton
-
The height of the texture
- getTextureWidth() - Method in class net.uku3lig.ukulib.utils.IconButton
-
The width of the texture
- getTranslationKey() - Method in enum class net.uku3lig.ukulib.utils.Position
- getU() - Method in class net.uku3lig.ukulib.utils.IconButton
-
The x position of the icon in the texture
- getV() - Method in class net.uku3lig.ukulib.utils.IconButton
-
The y position of the icon in the texture
- getWidgets(UkulibConfig) - Method in class net.uku3lig.ukulib.config.impl.UkulibConfigScreen
- 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, Identifier, int, int, int, int, int, int, ButtonWidget.PressAction) - Constructor for class net.uku3lig.ukulib.utils.IconButton
-
Makes a new button with a centered icon.
- IconButton(int, int, int, int, Identifier, int, int, ButtonWidget.PressAction) - Constructor for class net.uku3lig.ukulib.utils.IconButton
-
Makes a new button with a centered icon.
- init() - Method in class net.uku3lig.ukulib.config.impl.ModListScreen
- 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.
- IntSliderOption - Class in net.uku3lig.ukulib.config.option
-
An int option, represented by a slider.
- IntSliderOption(String, int, IntConsumer, IntFunction<Text>, int, int) - Constructor for class net.uku3lig.ukulib.config.option.IntSliderOption
-
Creates a slider option, with no step or tooltip.
- IntSliderOption(String, int, IntConsumer, IntFunction<Text>, int, int, int) - Constructor for class net.uku3lig.ukulib.config.option.IntSliderOption
-
Creates a slider option, with no tooltip.
- IntSliderOption(String, int, IntConsumer, IntFunction<Text>, int, int, int, SimpleOption.TooltipFactory<Integer>) - Constructor for class net.uku3lig.ukulib.config.option.IntSliderOption
-
Creates a slider option.
- isBottom() - Method in enum class net.uku3lig.ukulib.utils.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.utils.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
-
A config serializer that uses JSON via
Gson. - JsonConfigSerializer(Class<T>, String) - Constructor for class net.uku3lig.ukulib.config.serialization.JsonConfigSerializer
-
Creates a serializer.
K
- KEY - Static variable in enum class net.uku3lig.ukulib.utils.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
- log - Variable in class net.uku3lig.ukulib.config.screen.BaseConfigScreen
-
SLF4J Logger
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.utils.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
- ModListScreen - Class in net.uku3lig.ukulib.config.impl
-
Ukulib's config screen.
- ModListScreen(Screen) - Constructor for class net.uku3lig.ukulib.config.impl.ModListScreen
-
Creates a config screen.
- 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.utils
-
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
- reload(ResourceManager) - Method in class net.uku3lig.ukulib.config.ConfigManagerReloader
- removed() - Method in class net.uku3lig.ukulib.config.impl.UkulibConfigScreen
- 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.ModListScreen
- 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
- sendToast(Text, Text) - Static method in class net.uku3lig.ukulib.utils.Ukutils
-
Displays a simple toast message.
- 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.
- setIconHeight(int) - Method in class net.uku3lig.ukulib.utils.IconButton
-
The height of the icon
- setIconWidth(int) - Method in class net.uku3lig.ukulib.utils.IconButton
-
The width of the icon
- 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.
- setTexture(Identifier) - Method in class net.uku3lig.ukulib.utils.IconButton
-
The texture of the icon
- setTextureHeight(int) - Method in class net.uku3lig.ukulib.utils.IconButton
-
The height of the texture
- setTextureWidth(int) - Method in class net.uku3lig.ukulib.utils.IconButton
-
The width of the texture
- setU(int) - Method in class net.uku3lig.ukulib.utils.IconButton
-
The x position of the icon in the texture
- setV(int) - Method in class net.uku3lig.ukulib.utils.IconButton
-
The y position of the icon in the texture
- 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.
- textureExists(Identifier) - Static method in class net.uku3lig.ukulib.utils.Ukutils
-
Checks if a texture exists and is registered.
- tick() - Method in class net.uku3lig.ukulib.config.screen.BaseConfigScreen
- 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.utils.Position
-
The top left of the screen.
- TOP_RIGHT - Enum constant in enum class net.uku3lig.ukulib.utils.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.
- TypedInputOption<T> - Class in net.uku3lig.ukulib.config.option
-
A
WidgetCreatorwhich creates aTextInputWidgetwith a converter and validator. - TypedInputOption(String, String, Consumer<T>, Function<String, Optional<T>>) - Constructor for class net.uku3lig.ukulib.config.option.TypedInputOption
-
Constructor.
- TypedInputOption(String, String, Consumer<T>, Function<String, Optional<T>>, Predicate<T>) - Constructor for class net.uku3lig.ukulib.config.option.TypedInputOption
-
Constructor.
- TypedInputOption(String, String, Consumer<T>, Function<String, Optional<T>>, Predicate<T>, int) - Constructor for class net.uku3lig.ukulib.config.option.TypedInputOption
-
Constructor.
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.
- 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.utils.Position
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class net.uku3lig.ukulib.utils.Position
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- wide() - Method in interface net.uku3lig.ukulib.config.option.WidgetCreator
-
Makes a widget wide.
- WideWidgetCreator - Class in net.uku3lig.ukulib.config.option
-
Used to indicate that the created widget should be *wide*.
- WideWidgetCreator(WidgetCreator) - Constructor for class net.uku3lig.ukulib.config.option.WideWidgetCreator
-
Creates a wide widget.
- 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