Confee 0.3.0 (Forge 1.20.5-1.20.6)
Curse Maven Snippet
What's new
- Previews: a
PreviewRenderercan read the pending values of the other options of the config (edited, not saved yet) and the theme of the screen, with the newrender(..., PreviewContext context, delta). Old renderers keep working. - Your own widgets (
OptionWidget):error()shows a message under the widget and disables "Save";capturesText()leaves plain keys to a widget that types text;focusBounds()/revealFocus()scroll only the focused part of a tall widget into view;renderOverlayand its friends draw a list or popup over the next options;viewportHeight()gives the visible height of the panel. Widgets can now be up to 4000 pixels tall. ConfeeDraw(Confee buttons, text without shadow, focus ring) andConfeeIcons(item, mob, effect... icons and names, also from the title screen) for your widgets and previews.@Validator/OptionBuilder.validator(...): your own check of a value (or of each value of a list), with your message under the field.@Config(writeDefaults = true): aDefault: <value>comment under each option of the file.@Config(legacyFiles = {...}): moves a config file your mod wrote before using Confee (or under another name, case included) to the Confee file, keeping its values and dropping its old comments.SuggestionProvider#needsWorld(): from the title screen, an empty field shows "Open a world for more suggestions".@ItemStack(String or List of String): a whole item stack written as SNBT in the format of the Minecraft version, with an item field (search by name, picker), a count field and an extra data field.@Validator(onFileError = KEEP)/@ItemStack(onFileError = KEEP): a refused value of the file is kept as written, the screen shows its error until it is fixed.- Suggestions find registry entries by their name in the player's language too ("épée" finds the diamond sword).
@Suggestions(sources = ...): scoreboard tags, teams and objectives of the loaded world.- Previews:
PreviewContext#path(), and@Previewon a@Sectionclass for one preview of the whole section. ConfeeDraw.entity(a mob: model in a world, front view from its skin otherwise, optional Glowing-like outline),ConfeeDraw.tiled,ConfeeIcons.drawStack,Theme.mix/theme.dimmed.ConfeeTextField: Confee's text field for your own widgets, with the same events on every Minecraft version.
This mod has no additional files