Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractConfigScreen<T extends IConfig<T>> - Class in net.uku3lig.ukulib.config.screen
-
A screen used to edit a config.
- AbstractConfigScreen(Screen, Text, ConfigManager<T>) - Constructor for class net.uku3lig.ukulib.config.screen.AbstractConfigScreen
-
Creates a config screen.
- addUkulibButton(CallbackInfo) - Method in class net.uku3lig.ukulib.mixin.MixinOptionsScreen
-
Adds a button to open the config screen.
- allowAlpha() - Method in class net.uku3lig.ukulib.config.screen.ColorSelectScreen
-
Sets if alpha is allowed along with the RGB color.
B
- 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.
- bound(double, double, double) - Static method in class net.uku3lig.ukulib.utils.Ukutils
-
Returns the value, keeping it between two bounds.
- bound(int, int, int) - Static method in class net.uku3lig.ukulib.utils.Ukutils
-
Returns the value, keeping it between two integer bounds.
- 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.
- buttonList - Variable in class net.uku3lig.ukulib.config.screen.AbstractConfigScreen
-
The widget used to display the options.
C
- canEqual(Object) - Method in class net.uku3lig.ukulib.utils.PlayerArgumentType.PlayerSelector
- CloseableScreen - Class in net.uku3lig.ukulib.config.screen
-
A screen that can be closed, returning to a parent screen.
- CloseableScreen(Text, Screen) - Constructor for class net.uku3lig.ukulib.config.screen.CloseableScreen
-
Constructs a closeable screen
- ColorSelectScreen - Class in net.uku3lig.ukulib.config.screen
-
A color selection screen.
- ColorSelectScreen(Text, Screen, Consumer<Integer>, int, ConfigManager<?>) - Constructor for class net.uku3lig.ukulib.config.screen.ColorSelectScreen
-
Creates a color selection screen.
- ConfigManager<T extends IConfig<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.
- ConfigSerializer<T> - Interface in net.uku3lig.ukulib.config.serialization
-
Manages the serialization of a configuration file.
- convert(String) - Method in class net.uku3lig.ukulib.config.impl.StringInputScreen
- convert(String) - Method in class net.uku3lig.ukulib.config.screen.ColorSelectScreen
- convert(String) - Method in class net.uku3lig.ukulib.config.screen.TextInputScreen
-
Converts the contents of the text field to the type needed.
- create(Class<T>, String) - Static method in class net.uku3lig.ukulib.config.ConfigManager
-
Creates a default config manager, with a default config serializer.
- createButton(String, Object, Consumer<Screen>) - Static method in class net.uku3lig.ukulib.utils.Ukutils
-
Creates a
Optionwhich acts as a simple button. - createButton(String, Consumer<Screen>) - Static method in class net.uku3lig.ukulib.utils.Ukutils
-
Creates a
Optionwhich acts as a simple button. - createButton(String, Text, Consumer<Screen>) - Static method in class net.uku3lig.ukulib.utils.Ukutils
-
Creates a
Optionwhich acts as a simple button. - createOpenButton(String, Object, UnaryOperator<Screen>) - Static method in class net.uku3lig.ukulib.utils.Ukutils
-
Creates an
Optionwhich acts as a simple button that opens a screen when clicked. - createOpenButton(String, UnaryOperator<Screen>) - Static method in class net.uku3lig.ukulib.utils.Ukutils
-
Creates a
Optionwhich acts as a simple that opens a screen when clicked. - createOpenButton(String, Text, UnaryOperator<Screen>) - Static method in class net.uku3lig.ukulib.utils.Ukutils
-
Creates a
Optionwhich acts as a simple button that opens a screen when clicked.
D
- defaultAlpha() - Method in class net.uku3lig.ukulib.config.screen.ColorSelectScreen
-
The default alpha value for the color.
- defaultConfig() - Method in interface net.uku3lig.ukulib.config.IConfig
-
The default configuration, set by the developer when implementing the class.
- DefaultConfigSerializer<T extends IConfig<T>> - Class in net.uku3lig.ukulib.config.serialization
-
A default config serializer, which saves the config in a TOML file.
- DefaultConfigSerializer(Class<T>, File, Supplier<T>) - Constructor for class net.uku3lig.ukulib.config.serialization.DefaultConfigSerializer
-
Creates a serializer.
- deserialize() - Method in interface net.uku3lig.ukulib.config.serialization.ConfigSerializer
-
Deserializes the config.
- deserialize() - Method in class net.uku3lig.ukulib.config.serialization.DefaultConfigSerializer
-
Reads the config from the file.
- deserialize() - Method in class net.uku3lig.ukulib.config.serialization.SubConfigSerializer
- doneButton(int, int, Screen) - Static method in class net.uku3lig.ukulib.utils.Ukutils
-
Creates a done button.
- draw(MatrixStack, int, int, float, int, int) - Method in class net.uku3lig.ukulib.config.screen.PositionSelectScreen
-
Draws the screen and all the components in it.
- drawDefault(MatrixStack, 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.
- drawFooterButtons() - Method in class net.uku3lig.ukulib.config.screen.AbstractConfigScreen
-
Draws the buttons in the footer.
E
- equals(Object) - Method in class net.uku3lig.ukulib.utils.PlayerArgumentType.PlayerSelector
F
- format(Integer) - Method in class net.uku3lig.ukulib.config.screen.ColorSelectScreen
- format(T) - Method in class net.uku3lig.ukulib.config.screen.TextInputScreen
-
Formats the raw value to a String.
- FULL_ALPHA - Static variable in class net.uku3lig.ukulib.config.screen.ColorSelectScreen
-
Constant for full alpha (255) with no color.
G
- getConfig() - Method in class net.uku3lig.ukulib.config.ConfigManager
-
The config held by the manager.
- getExamples() - Method in class net.uku3lig.ukulib.utils.PlayerArgumentType
- getId() - Method in enum class net.uku3lig.ukulib.config.Position
-
The id of the position.
- getName() - Method in class net.uku3lig.ukulib.utils.PlayerArgumentType.PlayerSelector
- getOption(Supplier<Position>, Consumer<Position>) - Static method in enum class net.uku3lig.ukulib.config.Position
-
Creates a
CyclingOptionthat allows to choose between all the enum's values. - getOptions(T) - Method in class net.uku3lig.ukulib.config.screen.AbstractConfigScreen
-
The list of options that will be shown to the user when this screen is displayed.
- getPlayer(String, CommandContext<FabricClientCommandSource>) - Static method in class net.uku3lig.ukulib.utils.PlayerArgumentType
-
Gets the player passed to the command.
- getT1() - Method in class net.uku3lig.ukulib.utils.Ukutils.Tuple2
- getT2() - Method in class net.uku3lig.ukulib.utils.Ukutils.Tuple2
- 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.
- getTextField() - Method in class net.uku3lig.ukulib.config.screen.TextInputScreen
-
The text field widget.
- getTranslationKey() - Method in enum class net.uku3lig.ukulib.config.Position
-
The translation key of the position.
H
- hashCode() - Method in class net.uku3lig.ukulib.utils.PlayerArgumentType.PlayerSelector
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.
- IConfig<T extends IConfig<T>> - Interface in net.uku3lig.ukulib.config
-
An interface which represents a config.
- 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.ColorSelectScreen
- init() - Method in class net.uku3lig.ukulib.config.screen.PositionSelectScreen
- init() - Method in class net.uku3lig.ukulib.config.screen.TextInputScreen
- isBottom() - Method in enum class net.uku3lig.ukulib.config.Position
-
Checks if the position is at the bottom of the screen.
- isRight() - Method in enum class net.uku3lig.ukulib.config.Position
-
Checks if the position is on the right of the screen.
- ISubConfig<T extends ISubConfig<T,
P>, P extends IConfig<P>> - Interface in net.uku3lig.ukulib.config -
An interface which represents a sub-config.
K
- keyPressed(int, int, int) - Method in class net.uku3lig.ukulib.config.screen.PositionSelectScreen
L
- listSuggestions(CommandContext<S>, SuggestionsBuilder) - Method in class net.uku3lig.ukulib.utils.PlayerArgumentType
M
- manager - Variable in class net.uku3lig.ukulib.config.screen.AbstractConfigScreen
-
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
- mouseClicked(double, double, int) - Method in class net.uku3lig.ukulib.config.screen.PositionSelectScreen
N
- 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.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
- onClose() - Method in class net.uku3lig.ukulib.config.impl.BrokenConfigScreen
- onClose() - Method in class net.uku3lig.ukulib.config.screen.CloseableScreen
- onClose() - Method in class net.uku3lig.ukulib.config.screen.PositionSelectScreen
- onClose() - Method in class net.uku3lig.ukulib.config.screen.TextInputScreen
- onTextChange(String) - Method in class net.uku3lig.ukulib.config.screen.TextInputScreen
-
Called when the text field value is changed
P
- parent - Variable in class net.uku3lig.ukulib.config.screen.CloseableScreen
-
The parent screen.
- parse(StringReader) - Method in class net.uku3lig.ukulib.utils.PlayerArgumentType
- 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 - Class in net.uku3lig.ukulib.utils
-
Simple POJO used to store the player name for later use
- PlayerSelector(String) - Constructor for class net.uku3lig.ukulib.utils.PlayerArgumentType.PlayerSelector
- 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(Screen, int, int, ConfigManager<?>, BiConsumer<Integer, Integer>) - Constructor for class net.uku3lig.ukulib.config.screen.PositionSelectScreen
-
Deprecated.use the other constructor
- PositionSelectScreen(Text, 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.AbstractConfigScreen
- removed() - Method in class net.uku3lig.ukulib.config.screen.PositionSelectScreen
- removed() - Method in class net.uku3lig.ukulib.config.screen.SubConfigScreen
- removed() - Method in class net.uku3lig.ukulib.config.screen.TextInputScreen
- render(MatrixStack, int, int, float) - Method in class net.uku3lig.ukulib.config.impl.BrokenConfigScreen
- render(MatrixStack, int, int, float) - Method in class net.uku3lig.ukulib.config.impl.UkulibConfigScreen
- render(MatrixStack, int, int, float) - Method in class net.uku3lig.ukulib.config.screen.AbstractConfigScreen
- render(MatrixStack, int, int, float) - Method in class net.uku3lig.ukulib.config.screen.ColorSelectScreen
- render(MatrixStack, int, int, float) - Method in class net.uku3lig.ukulib.config.screen.PositionSelectScreen
- render(MatrixStack, int, int, float) - Method in class net.uku3lig.ukulib.config.screen.TextInputScreen
- renderButton(MatrixStack, int, int, float) - Method in class net.uku3lig.ukulib.utils.IconButton
- renderColor(MatrixStack, int, int, float, int) - Method in class net.uku3lig.ukulib.config.screen.ColorSelectScreen
-
Renders the selected color on the screen
- replaceConfig(T) - Method in class net.uku3lig.ukulib.config.ConfigManager
-
Replaces the current config with a new one, serializing it in the process.
S
- saveConfig() - Method in class net.uku3lig.ukulib.config.ConfigManager
-
Saves the stored config.
- serialize(T) - Method in interface net.uku3lig.ukulib.config.serialization.ConfigSerializer
-
Serializes the config.
- serialize(T) - Method in class net.uku3lig.ukulib.config.serialization.DefaultConfigSerializer
- serialize(T) - Method in class net.uku3lig.ukulib.config.serialization.SubConfigSerializer
- SilentButtonWidget - Class in net.uku3lig.ukulib.utils
-
A button that doesn't make noise.
- SilentButtonWidget(int, int, int, int, Text, ButtonWidget.PressAction) - Constructor for class net.uku3lig.ukulib.utils.SilentButtonWidget
-
Creates a new silent button
- SilentButtonWidget(int, int, int, int, Text, ButtonWidget.PressAction, ButtonWidget.TooltipSupplier) - Constructor for class net.uku3lig.ukulib.utils.SilentButtonWidget
-
Creates a new silent button
- StringInputScreen - Class in net.uku3lig.ukulib.config.impl
-
Basic implementation of
TextInputScreenused to input aStringof any type. - StringInputScreen(Screen, Text, Text, Consumer<String>, String, ConfigManager<?>) - Constructor for class net.uku3lig.ukulib.config.impl.StringInputScreen
-
Creates an input screen.
- SubConfigScreen<T extends ISubConfig<T,
P>, P extends IConfig<P>> - Class in net.uku3lig.ukulib.config.screen -
A screen used to edit a sub-config.
- SubConfigScreen(Screen, Text, ConfigManager<P>, Function<P, T>) - Constructor for class net.uku3lig.ukulib.config.screen.SubConfigScreen
-
Creates a sub-config screen
- SubConfigSerializer<T extends ISubConfig<T,
P>, P extends IConfig<P>> - Class in net.uku3lig.ukulib.config.serialization -
Manages the serialization of a sub-config, which is stored inside the main config file, under a table.
- SubConfigSerializer(ConfigManager<P>, Function<P, T>) - Constructor for class net.uku3lig.ukulib.config.serialization.SubConfigSerializer
-
Creates a sub-config serializer
- 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
- TextInputScreen<T> - Class in net.uku3lig.ukulib.config.screen
-
A screen used to input a value.
- TextInputScreen(Screen, Text, Text, Consumer<T>, T, ConfigManager<?>) - Constructor for class net.uku3lig.ukulib.config.screen.TextInputScreen
-
Creates an input screen.
- 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 class net.uku3lig.ukulib.utils.PlayerArgumentType.PlayerSelector
- Tuple2(T1, T2) - Constructor for class net.uku3lig.ukulib.utils.Ukutils.Tuple2
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.
- Ukutils.Tuple2<T1,
T2> - Class in net.uku3lig.ukulib.utils -
Simple 2-tuple.
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.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form