Index

A B C D E F G H I K M N P R S T U V 
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.

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.
BUTTON_PLACEHOLDER - Static variable in class net.uku3lig.ukulib.utils.Ukutils
Placeholder for button text.
buttonList - Variable in class net.uku3lig.ukulib.config.screen.AbstractConfigScreen
The widget used to display the options.

C

close() - Method in class net.uku3lig.ukulib.config.impl.BrokenConfigScreen
 
close() - Method in class net.uku3lig.ukulib.config.screen.CloseableScreen
 
close() - Method in class net.uku3lig.ukulib.config.screen.PositionSelectScreen
 
close() - Method in class net.uku3lig.ukulib.config.screen.TextInputScreen
 
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
 
ColorSelectScreen(Text, Screen, Consumer<Integer>, int, ConfigManager<?>) - Constructor for class net.uku3lig.ukulib.config.screen.ColorSelectScreen
 
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.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 Option which acts as a simple button.
createButton(String, Consumer<Screen>) - Static method in class net.uku3lig.ukulib.utils.Ukutils
Creates a Option which acts as a simple button.
createButton(String, Text, Consumer<Screen>) - Static method in class net.uku3lig.ukulib.utils.Ukutils
Creates a Option which acts as a simple button.
createOpenButton(String, Object, UnaryOperator<Screen>) - Static method in class net.uku3lig.ukulib.utils.Ukutils
Creates an Option which 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 Option which 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 Option which acts as a simple button that opens a screen when clicked.

D

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 record class net.uku3lig.ukulib.utils.Ukutils.Tuple2
Indicates whether some other object is "equal to" this one.

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
 

G

getConfig() - Method in class net.uku3lig.ukulib.config.ConfigManager
The config held by the manager.
getId() - Method in enum class net.uku3lig.ukulib.config.Position
The id of the position.
getOption(Collection<Position>, Supplier<Position>, Consumer<Position>) - Static method in enum class net.uku3lig.ukulib.config.Position
Creates a CyclingOption that allows to choose between all the allowedValues.
getOption(Supplier<Position>, Consumer<Position>) - Static method in enum class net.uku3lig.ukulib.config.Position
Creates a CyclingOption that allows to choose between all of this 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.
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
The translation key of the position.

H

hashCode() - Method in record class net.uku3lig.ukulib.utils.Ukutils.Tuple2
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.
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
 

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.
MixinCyclingButtonWidgetBuilder<T> - Class in net.uku3lig.ukulib.mixin
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.

P

parent - Variable in class net.uku3lig.ukulib.config.screen.CloseableScreen
The parent screen.
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
 
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
 
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

t1() - Method in record class net.uku3lig.ukulib.utils.Ukutils.Tuple2
Returns the value of the t1 record component.
t2() - Method in record class net.uku3lig.ukulib.utils.Ukutils.Tuple2
Returns the value of the t2 record component.
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 record class net.uku3lig.ukulib.utils.Ukutils.Tuple2
Returns a string representation of this record class.
Tuple2(T1, T2) - Constructor for record class net.uku3lig.ukulib.utils.Ukutils.Tuple2
Creates an instance of a Tuple2 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.
Ukutils - Class in net.uku3lig.ukulib.utils
Simple class for various utilities.
Ukutils.Tuple2<T1,T2> - Record 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.
A B C D E F G H I K M N P R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form