Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- AbstractConfigScreen<T> - 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.
- addWideEntry(WidgetCreator) - Method in class net.uku3lig.ukulib.config.option.widget.WidgetCreatorList
-
Add a single, wide entry.
- 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> - 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(Component, Button.OnPress) - 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
-
Deprecated, for removal: This API element is subject to removal in a future version.The width is now computed automatically
- ButtonEntry(int, WidgetCreator, WidgetCreator) - Constructor for class net.uku3lig.ukulib.config.option.widget.WidgetCreatorList.ButtonEntry
-
Deprecated, for removal: This API element is subject to removal in a future version.The width is now computed automatically
- ButtonEntry(WidgetCreator) - Constructor for class net.uku3lig.ukulib.config.option.widget.WidgetCreatorList.ButtonEntry
-
Creates a single, wide entry.
- ButtonEntry(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> - 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(Component, ConfigManager<T>) - Constructor for class net.uku3lig.ukulib.config.option.widget.ButtonTab
-
Creates a widget tab and adds all the
given widgetsto it
C
- 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
- 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(Component, 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> - 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.
- ConfigSerializer<T> - 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) - Method in interface net.uku3lig.ukulib.config.option.WidgetCreator
-
Creates the widget, with no position information by default.
- 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, Component>) - 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, Component>, OptionInstance.TooltipSupplier<T>) - Constructor for class net.uku3lig.ukulib.config.option.CyclingOption
-
Constructs a new generic cycling option.
- CyclingOption(String, Collection<T>, T, Consumer<T>, Function<T, Component>, OptionInstance.TooltipSupplier<T>, boolean) - 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 - Variable in class net.uku3lig.ukulib.config.screen.BaseConfigScreen
-
Done button, closes the screen
- 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(Component, DoubleFunction<Component>, double, double, double, double, DoubleConsumer, OptionInstance.TooltipSupplier<Double>, int, int, int, int) - Constructor for class net.uku3lig.ukulib.config.option.widget.DoubleSlider
-
Constructs a new slider.
- draw(GuiGraphics, int, int, float, int, int) - Method in class net.uku3lig.ukulib.config.screen.PositionSelectScreen
-
Draws the screen and all the components in it.
- drawDefault(GuiGraphics, 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.
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.
- getExamples() - Method in class net.uku3lig.ukulib.utils.PlayerArgumentType
- getHeadTex(String) - Static method in class net.uku3lig.ukulib.utils.Ukutils
-
Deprecated, for removal: This API element is subject to removal in a future version.Originally meant for internal use, you should look at
PlayerFaceRendererinstead which is more robust and actually tested by mojang - getIconHeight() - Method in class net.uku3lig.ukulib.utils.IconButton
-
Deprecated.The height of the icon
- getIconWidth() - Method in class net.uku3lig.ukulib.utils.IconButton
-
Deprecated.The width of the icon
- 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
- getKeybindings() - Static method in class net.uku3lig.ukulib.utils.Ukutils
-
The map of keybindings and their respective actions.
- getModConfigScreenFactory() - Method in class net.uku3lig.ukulib.utils.ModMenuRegistrar
- getName() - Method in class net.uku3lig.ukulib.config.ConfigManagerReloader
- getName() - Method in interface net.uku3lig.ukulib.config.option.StringTranslatable
-
Name of the option, also used as its unique identifier for
StringRepresentable. - getName() - Method in enum class net.uku3lig.ukulib.utils.Position
- 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
- getSerializedName() - Method in interface net.uku3lig.ukulib.config.option.StringTranslatable
- getStyledText(FormattedCharSequence) - Static method in class net.uku3lig.ukulib.utils.Ukutils
-
Retrieves the styled text from a formatted char sequence.
- getTabs(T) - Method in class net.uku3lig.ukulib.config.screen.TabbedConfigScreen
-
The list of tabs to be displayed.
- getText() - Method in interface net.uku3lig.ukulib.config.option.StringTranslatable
-
Constructs a default
Componentobject containing the translated value. - getText(FormattedCharSequence) - Static method in class net.uku3lig.ukulib.utils.Ukutils
-
Retrieves the string text from a formatted char sequence.
- getTextCoords(Component, int, Font, int, int) - Static method in class net.uku3lig.ukulib.utils.Ukutils
-
Makes text coordinates based on the position of a standard 16x16 icon.
- getTextCoords(Component, int, Font, 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
-
Deprecated.The texture of the icon
- getTextureHeight() - Method in class net.uku3lig.ukulib.utils.IconButton
-
Deprecated.The height of the texture
- getTextureWidth() - Method in class net.uku3lig.ukulib.utils.IconButton
-
Deprecated.The width of the texture
- getTranslationKey() - Method in interface net.uku3lig.ukulib.config.option.StringTranslatable
-
The translation key of the option
- getTranslationKey() - Method in enum class net.uku3lig.ukulib.utils.Position
- getU() - Method in class net.uku3lig.ukulib.utils.IconButton
-
Deprecated.The x position of the icon in the texture
- getV() - Method in class net.uku3lig.ukulib.utils.IconButton
-
Deprecated.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.
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
-
Deprecated, for removal: This API element is subject to removal in a future version.Favor
ImageButtoninstead. - IconButton(int, int, int, int, Identifier, int, int, int, int, int, int, Button.OnPress) - Constructor for class net.uku3lig.ukulib.utils.IconButton
-
Deprecated.Makes a new button with a centered icon.
- IconButton(int, int, int, int, Identifier, int, int, Button.OnPress) - Constructor for class net.uku3lig.ukulib.utils.IconButton
-
Deprecated.Makes a new button with a centered icon.
- init() - Method in class net.uku3lig.ukulib.config.impl.BrokenConfigScreen
- 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
- 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<Component>, 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<Component>, int, int, int) - Constructor for class net.uku3lig.ukulib.config.option.IntSliderOption
-
Creates a slider option, with no tooltip.
- IntSliderOption(String, int, IntConsumer, IntFunction<Component>, int, int, int, OptionInstance.TooltipSupplier<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.
- 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.
J
- JsonConfigSerializer<T> - 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(KeyEvent) - 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, Component, Font, 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.
- 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
-
Empty default constructor, required for the entrypoint to be constructed.
- mouseClicked(MouseButtonEvent, boolean) - Method in class net.uku3lig.ukulib.config.screen.PositionSelectScreen
N
- name() - Method in record class net.uku3lig.ukulib.utils.PlayerArgumentType.PlayerSelector
-
Returns the value of the
namerecord component. - narratables() - Method in class net.uku3lig.ukulib.config.option.widget.WidgetCreatorList.ButtonEntry
- narrationSupplier(Button.CreateNarration) - 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.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>, OptionInstance.TooltipSupplier<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, Component>) - 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, Component>, OptionInstance.TooltipSupplier<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
StringTranslatable, with an empty tooltip. - ofTranslatable(String, Collection<T>, T, Consumer<T>, OptionInstance.TooltipSupplier<T>) - Static method in class net.uku3lig.ukulib.config.option.CyclingOption
-
Creates a new option from a
StringTranslatable. - 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>, OptionInstance.TooltipSupplier<T>) - Static method in class net.uku3lig.ukulib.config.option.CyclingOption
-
Creates a new option based on a
translatableenum's values. - onClose() - Method in class net.uku3lig.ukulib.config.screen.CloseableScreen
- onResourceManagerReload(ResourceManager) - Method in class net.uku3lig.ukulib.config.ConfigManagerReloader
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.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
- registerKeybinding(KeyMapping, Consumer<Minecraft>) - Static method in class net.uku3lig.ukulib.utils.Ukutils
-
Register a keybinding.
- registerToggleBind(KeyMapping, BooleanSupplier, BooleanConsumer, Component) - Static method in class net.uku3lig.ukulib.utils.Ukutils
-
Register a keybinding for a boolean option that can be toggled.
- removed() - Method in class net.uku3lig.ukulib.config.screen.BaseConfigScreen
- removed() - Method in class net.uku3lig.ukulib.config.screen.PositionSelectScreen
- render(GuiGraphics, int, int, float) - Method in class net.uku3lig.ukulib.config.screen.PositionSelectScreen
- render(GuiGraphics, int, int, float) - Method in class net.uku3lig.ukulib.config.screen.TabbedConfigScreen
- renderContent(GuiGraphics, int, int, boolean, float) - Method in class net.uku3lig.ukulib.config.option.widget.WidgetCreatorList.ButtonEntry
- renderContents(GuiGraphics, int, int, float) - Method in class net.uku3lig.ukulib.utils.IconButton
-
Deprecated.
- renderContents(GuiGraphics, int, int, float) - Method in class net.uku3lig.ukulib.utils.SilentButtonWidget
- renderWidget(GuiGraphics, int, int, float) - Method in class net.uku3lig.ukulib.config.option.widget.ColorInputWidget
- renderWidget(GuiGraphics, int, int, float) - Method in class net.uku3lig.ukulib.config.option.widget.LinedTextWidget
- replaceConfig(T) - Method in class net.uku3lig.ukulib.config.ConfigManager
-
Replaces the current config with a new one, serializing it in the process.
- repositionElements() - Method in class net.uku3lig.ukulib.config.impl.BrokenConfigScreen
- repositionElements() - Method in class net.uku3lig.ukulib.config.impl.ModListScreen
- repositionElements() - Method in class net.uku3lig.ukulib.config.screen.AbstractConfigScreen
- repositionElements() - Method in class net.uku3lig.ukulib.config.screen.PositionSelectScreen
- repositionElements() - Method in class net.uku3lig.ukulib.config.screen.TabbedConfigScreen
- resetButton - Variable in class net.uku3lig.ukulib.config.screen.BaseConfigScreen
-
Reset button, resets the config to its default state
- 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.
- sendToast(Component, Component) - 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
- setIconHeight(int) - Method in class net.uku3lig.ukulib.utils.IconButton
-
Deprecated.The height of the icon
- setIconWidth(int) - Method in class net.uku3lig.ukulib.utils.IconButton
-
Deprecated.The width of the icon
- setTexture(Identifier) - Method in class net.uku3lig.ukulib.utils.IconButton
-
Deprecated.The texture of the icon
- setTextureHeight(int) - Method in class net.uku3lig.ukulib.utils.IconButton
-
Deprecated.The height of the texture
- setTextureWidth(int) - Method in class net.uku3lig.ukulib.utils.IconButton
-
Deprecated.The width of the texture
- setU(int) - Method in class net.uku3lig.ukulib.utils.IconButton
-
Deprecated.The x position of the icon in the texture
- setV(int) - Method in class net.uku3lig.ukulib.utils.IconButton
-
Deprecated.The y position of the icon in the texture
- silentBuilder(Component, Button.OnPress) - 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, Component, Button.OnPress, Button.CreateNarration) - 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, Button.OnPress) - Constructor for class net.uku3lig.ukulib.config.option.SimpleButton
-
Creates a simple translated button.
- SimpleButton(Component, Button.OnPress) - Constructor for class net.uku3lig.ukulib.config.option.SimpleButton
-
Creates a simple button.
- SimpleButton(Component, Button.OnPress, boolean) - 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<Component>) - 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<Component>, 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<Component>, double, double, double) - Constructor for class net.uku3lig.ukulib.config.option.SliderOption
-
Creates a slider option, with no tooltip.
- SliderOption(String, double, DoubleConsumer, DoubleFunction<Component>, double, double, double, OptionInstance.TooltipSupplier<Double>) - Constructor for class net.uku3lig.ukulib.config.option.SliderOption
-
Creates a slider option.
- StringTranslatable - Interface in net.uku3lig.ukulib.config.option
-
Replacement for Minecraft's former
TranslatableOption, usingStringRepresentableas a "backend". - 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> - 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.
- 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> - 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(Minecraft, int, int, int, int) - Constructor for class net.uku3lig.ukulib.config.option.widget.WidgetCreatorList
-
Deprecated, for removal: This API element is subject to removal in a future version.You should be wrapping the widget in the body of a
HeaderAndFooterLayout - WidgetCreatorList(Minecraft, int, int, int, int, int) - Constructor for class net.uku3lig.ukulib.config.option.widget.WidgetCreatorList
-
Deprecated, for removal: This API element is subject to removal in a future version.Mojang (rightfully) removed the bottom in 1.20.3, use
WidgetCreatorList(Minecraft, int, int, int, int)instead - WidgetCreatorList(Minecraft, int, HeaderAndFooterLayout) - 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
All Classes and Interfaces|All Packages|Constant Field Values