yunfalib

Quick rating

Community listing page, reviews here may not be monitored by the author.

yunfalib

By yunfachiOwner

No reviews yet

A library that adds config, math, events, modules, and more

API/Library
Mod Loaders
Fabric
Minecraft

Community voices

Reviews

List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Show per page
10
25
50
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Where It Runs
Client Only

Runs entirely on the client. Works on vanilla servers.

About

Project Details

Type
Mod
License
All Rights Reserved
Latest Version
0.1.0

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.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID
Modrinth ID

Resources

External Links

Source Issues Wiki Discord

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

Alt

Screenshots

Gallery

This project has no gallery images yet.

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

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Total Downloads
CurseForge
<1,000
Modrinth
<1,000
Last Updated
CurseForge
Modrinth
Created
CurseForge
Modrinth
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works