Minecraft Version Loader 图标

Minecraft Version Loader

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/minecraft-version-loader
资源信息

Minecraft 版本: 1.18 1.18.1 1.18.2 1.19 1.19.1 1.19.2 1.19.3 1.19.4 1.20 1.20.1

平台: fabric

标签: library utility

资源介绍

Minecraft Version Loader

What is it?

The Minecraft Version Loader is a straightforward library/utility mod designed to offer a consistent API across all Minecraft versions. Its main purpose is to conveniently retrieve the exact version of Minecraft being used.

But why?

This mod serves a crucial role in situations where a universal mod is required to function across all Minecraft versions, while also needing to identify the specific version of Minecraft it's running on. This information is essential for determining which code should be loaded for each precise Minecraft version within the mod's codebase.

Important

This mod is currently in its early release stage, and it has been tested and confirmed to support Minecraft versions ranging from 1.18 to 1.20.1. While it is possible that the mod may work with other versions, if you encounter any issues, please create a ticket on the GitHub issue page.

How to use it?

  1. Retrieve the mod from the Maven Central repository using the following code snippet in your Gradle build script:
    dependencies {
     modImplementation "lv.cebbys.mcmods:minecraft-version-loader:${version}"
    }
  2. Import the necessary classes and call the method as shown below:
    
    import lv.cebbys.mcmods.mvl.api.MinecraftVersionLoader;
    import lv.cebbys.mcmods.mvl.dto.MinecraftVersion;

public void () {
MinecraftVersion version = MinecraftVersionLoader.getMinecraftVersion();
// Prepare things with the version how you like - burned, medium, raw
}

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
A Bunch of Unecessary Things

价格:0 墨喵币
下载量:0

查看详情
Daz's Pokecraft Origins

价格:0 墨喵币
下载量:0

查看详情
CarryOn [BTW Addon]

价格:0 墨喵币
下载量:0

查看详情
Skyhunter: Velocity (Project StormHunters Survival)

价格:0 墨喵币
下载量:0

查看详情