Community listing page, reviews here may not be monitored by the author.
yunfalib
No reviews yet
A library that adds config, math, events, modules, and more
Provides a framework or library for other mods to use.
Fabric is a mod loader for versions 1.14+ of Minecraft, particularly popular for client side and optimization mods.
Community voices
Reviews
Filters
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
Runs entirely on the client. Works on vanilla servers.
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
About
Description
yunfaLib
A library for Minecraft using the Fabric API that adds config, math, events, modules, and more.
Setup
build.gradle
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
modImplementation "com.github.yunfachi:yunfaLib:${project.yunfalib_version}"
}
gradle.properties
yunfalib_version=0.1.0
Features
Config
yunfaLib
A library for Minecraft using the Fabric API that adds config, math, events, modules, and more.
Setup
build.gradle
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
modImplementation "com.github.yunfachi:yunfaLib:${project.yunfalib_version}"
}
gradle.properties
yunfalib_version=0.1.0
Features
Config
Example Java: The values are stored in the inner class
import moe.yunfachi.yunfalib.config.Config;
import java.io.File;
public class Example {
private static class ConfigKeys {
String truth = "this value is immediately saved to a file";
}
public Example() {
final Config<ConfigKeys> config = new Config<>(
new File("./modid/config.yml"),
new ConfigKeys()
);
config.get().truth = "this value will be written after config.save()";
config.save();
}
}
Example Java: The values are stored in the nested class
import moe.yunfachi.yunfalib.config.Config;
import java.io.File;
public class Example {
public Example() {
final Config<ConfigKeys> config = new Config<>(
new File("./modid/config.yml"),
new ConfigKeys()
);
config.get().truth = "this value will be written after config.save()";
config.save();
}
}
class ConfigKeys {
String truth = "this value is immediately saved to a file";
}
Example Kotlin: The values are stored in the inner class
import moe.yunfachi.yunfalib.config.Config
import java.io.File
class Example {
init {
class ConfigKeys {
var truth = "this value is immediately saved to a file"
}
val config = Config(
File("./modid/config.yml"),
ConfigKeys()
)
config.get().truth = "this value will be written after config.save()"
config.save()
}
}
Example Kotlin: The values are stored in an anonymous object
import moe.yunfachi.yunfalib.config.Config
import java.io.File
class Example {
init {
val config = Config(
File("./modid/config.yml"),
object {
var truth: String = "this value is immediately saved to a file"
}
)
config.get().truth = "this value will be written after config.save()"
config.save()
}
}
Thanks
| Project | Author | Description |
|---|---|---|
| Annotaml | WiIIiam278 | library for generating YAML files |
Stats
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