Community listing page, reviews here may not be monitored by the author.
QoLib
No reviews yet
Prerequisites for mods created by Quantum8060
Community voices
Reviews
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
QoLib
Shared utilities for Quantum8060's Fabric mods.
Client Config API
The first QoLib API is a client-only JSON config store. Its public types do not expose Minecraft classes, so consumer mods may use either Mojang or Yarn mappings.
private static final ConfigValue<Boolean> ENABLED = ConfigValue.booleanValue("enabled", false);
private static final ClientConfig CONFIG = ClientConfig.builder("viewer-mod")
.add(ENABLED)
.build();
// In ClientModInitializer#onInitializeClient:
CONFIG.load();
ENABLED.set(true);
CONFIG.save();
Supported value types are boolean, ranged integer, ranged decimal, string, and enum.
Config files are stored at config/<mod-id>.json. Invalid or missing fields use their
declared defaults. Saving uses a temporary file and atomic replacement when available.
The API keeps persistence separate from the settings screen, so values can also be changed through key bindings or other client logic.
Settings screen
Use config.screen("Title") to define categories, toggles, sliders, numeric fields,
and action buttons. build(parent) returns a Screen for a Mod Menu config-screen
factory. The screen stages changes until Save; Cancel leaves the config intact.
The search box searches labels and descriptions across every category.
return CONFIG.screen("Viewer Mod")
.category("general", "General", menu -> menu
.toggle("Enabled", "Save received chunks", ENABLED)
.integerSlider("Radius", "Chunks to capture", RADIUS, 1, 16)
.integerField("Maximum files", "Archive limit", MAX_FILES))
.category("tools", "Tools", menu -> menu
.button("Clear cache", "Deletes the local cache", ViewerCache::clear))
.build(parent);
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources