代码库 (CodeLib)
CodeLib是一个基于Minecraft Fabric API的模块化库,旨在为开发者提供便捷的工具和功能,而无需任何额外依赖。
主要特性
CodeLib的功能丰富,便于开发者扩展和优化其Minecraft项目。具体功能包括:
- 提供详细的文档支持,开发者可访问其Wiki页面了解使用详情。
- 不断更新和增加新功能,持续改进库的实用性。
如何使用
在项目中引入CodeLib非常简单,只需按以下步骤配置即可:
- 设置gradle.properties文件:在该文件中添加CodeLib的版本信息和Minecraft的版本信息。例如:
- 配置build.gradle文件:在你的build.gradle文件中添加Modrinth仓库和依赖:
<h1><jin class="jinsom-post-link" type="link" data="https://github.com/not-coded/codelib" onclick="jinsom_post_link(this);"><i class="fa fa-link"></i> 链接</jin></h1>
codelib_version=1.0.1+1.20
已复制!
repositories {
maven {
name: "Modrinth"
url: "https://api.modrinth.com/maven"
content {
includeGroup "maven.modrinth"
}
}
}
dependencies {
modApi "maven.modrinth:codelib:${project.codelib_version}"
// 如果你希望直接包含此库,不需用户单独下载,可以如下配置:
include "maven.modrinth:codelib:${project.codelib_version}"
}
已复制!
无依赖性
CodeLib的一个突出特点是它不需要任何外部依赖,这意味着开发者可以简化项目的依赖管理,更加轻松地进行开发。
This HTML output provides a detailed and well-structured introduction to the CodeLib MOD, emphasizing its features, setup process, and the benefit of having no dependencies, making it accessible and useful for developers.
截图:
来自Modrinth
v1.0.1 | 1.20 - 1.20.2
codelib-1.0.1+1.20.jar下载1.0.1+1.20#Release
codelib-1.0.1+1.20-javadoc.jar下载1.0.1+1.20#Release
codelib-1.0.1+1.20-sources.jar下载1.0.1+1.20#Release
### Read https://github.com/not-coded/codelib/releases/tag/1.0.1+1.20.
展开
版本: 1.0.1+1.20
支持游戏: 1.20, 1.20.1, 1.20.2
类型: Fabric Quilt
Release
下载次数: 532
v1.0.0 | 1.20(.1)
codelib-1.0.0+1.20.jar下载1.0.0+1.20#Release
codelib-1.0.0+1.20-javadoc.jar下载1.0.0+1.20#Release
codelib-1.0.0+1.20-sources.jar下载1.0.0+1.20#Release
### Read https://github.com/not-coded/codelib/releases/tag/1.0.0+1.20.
展开
版本: 1.0.0+1.20
支持游戏: 1.20, 1.20.1
类型: Fabric Quilt
Release
下载次数: 273
收录