BlossomBridge API
A small API for Tywrap Studios Mods, that adds a few minor things.
截图
介绍
BlossomBridge
A small API for Tywrap Studios Mods, that adds a few minor things.
Since version
2.1.0of BBAPI (which is currently only available as a master-SNAPSHOT), it is suggested to bundle the API with your project instead of depending on this mod, and depending on Fabric Language Kotlin instead. As such, the maximum downloadable version you will find on this page is 2.0.2. We will no longer release this as a mod jar to keep compatibility as high as possible.
For developers: please read our 2.1.0 update docs as soon as it becomes available for more information on how to update your BBAPI version correctly, then follow the update docs subsequently until you reach the latest version. Happy days!
Such As:
- A fletched Config system utilizing Jankson and some logic magic.
- A simple, yet niche Logging system, to maintain a consistent log format for all our mods.
- Good JavaDocs, so you can actually properly understand the code.
For Devs:
Project Setup 
Want to use this API in your mod?
Feel free to! But keep in mind that a lot of stuff in here is specific to our workflows, so it may not be applicable to your use case.
Plus, the code is pretty minimal the moment, so it’s not really worth it half the time.
Gradle Setup
BlossomBridge can easily be depended on like any other Fabric mod.
Just add the following to your build.gradle file:
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
// Other dependencies...
modImplementation("com.github.Tywrap-Studios:BlossomBridge:${project.blossombridge_version}")
}
And you add this to your gradle.properties file:
blossombridge_version="1.1.1"
# Or whatever version you want to use :)
it is always recommended to use the latest STABLE version, so you don’t get any unexpected hiccups of WIP features.
Last but not least, you need to add the following to your fabric.mod.json file:
{
"depends": {
"blossombridge": "1.1.1"
}
}
Mod Setup
Once you’ve added the mod to your project, you can start using it!
All the code is well documented using JavaDoc, so you should be able to figure out how to use it.
But as a general line of thumb, you do the following: Make a Config class that extends AbstractConfig, and then you can make a new ConfigManager to load and use it. Alongside that, also construct a LoggingHandler and you’re good to go!
Do not use the BlossomBridge class! Matter of fact, don’t use anything from the main package!
ANYTHING IN THE main PACKAGE IS NOT PART OF THE API, AND IS INSTEAD FOR THE ACTUAL “MOD” PART OF THE CODE!
Everything that _is_ api is inside the api package (of course)
As an example, I suggest taking a look at Constructra, which has a lot of this API’s code implemented and used.
常见问题
BlossomBridge API 支持哪些 Minecraft 版本?
BlossomBridge API 支持 Minecraft Java 版 1.19.2–1.21.8,共 19 个版本,可用的加载器:Fabric / Quilt。下载时注意选择和你游戏版本一致的文件。
BlossomBridge API 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
Tywrap Studios 的其他作品
查看全部 →
Khat – Chat To Discord
Yet another one of the many mods that allow for one thing: Sending Chat To Discord, and Discord To Chat.
Searck
A simple Minecraft mod that adds a Satisfactory-style, promptly available search bar. It tries to be as true to Vanilla as possible, so it integrates neatly into any gameplay.
Pekilog
Server-side logging/command feedback improvement mod. What a Peaky Logger! :D
Le Réveil
Quite Frankly, Sickles with custom abilities.
评论
登录后评论和评分