Compose API - Fabric
Compose API 导入了名为 Compose 的 JetBrains 技术所需的依赖项。
此模组本身不添加任何功能。

为什么?
Compose 是我将在一个即将推出的大型模组中使用的技术,该模组已经开发多年。
具有以下优势:
- 无需在你的模组中包含它。
- 可以被多个模组复用。
- 支持 MacOS ARM、Windows x64 和 Linux x64。
- 包含一个最小化 API,在不可用时禁用 Compose。
- 当使用它的模组更新时,避免重新下载整个 Compose。
- Compose 有一个有趣的兼容 Vulkan 的后端

Voxel Studio Pro:
在未来的模组中,它将允许集成类似 Hytale 的资源编辑器或 Unity/Unreal Engine 的游戏内界面。一个内置于游戏中的游戏编辑器,可用于:
- 对于玩家,自定义你的游戏体验。
- 对于开发者,使开发数据包/资源包/模组内容和管理整合包变得容易得多。
- 对于游戏设计师,无需打扰开发者即可轻松调整游戏平衡,非常适合服务器。

如何安装
JetBrains Compose 使用 Kotlin,所以别忘了安装模组。
第一步 - 将 Modrinth 添加到你的 gradle 仓库:
repositories {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
content {
includeGroup "maven.modrinth"
}
}
}
第二步 - 将 Compose 添加到你的 Gradle 依赖项
compose.desktop.currentOs 是 Compose Gradle 插件的一个辅助工具,它在构建时解析为与主机操作系统匹配的 Compose Desktop 工件,拉入正确的原生 Skia/Skiko
// 如果需要请更改版本
modImplementation "maven.modrinth:compose-api:1.2.0"
implementation compose.desktop.currentOs
如果你更喜欢在 gradle.properties 中指定 Compose API 版本,你可以使用变量 modImplementation "maven.modrinth:compose-api:${project.compose_api_version}"
并在 gradle.properties 中设置版本 compose_api_version=1.2.0
第三步 - 在 Grandle 中添加 Jetbrains 插件
plugins {
// ... 你的 Kotlin/Loom
id 'org.jetbrains.kotlin.plugin.compose' version '2.3.10'
id 'org.jetbrains.compose' version '1.9.1'
}

它包含什么?
此模组包含 Compose 在 MacOS ARM、Windows x64 和 Linux x64 上工作所需的所有依赖项。任何其他模组开发者都可以使用它。
它不包含 Kotlin 依赖项,以避免与 Fabric Kotlin 模组重复下载。
此模组让你可以访问:
androidx.compose.* API。
- Jetbrains Skia
org.jetbrains.skia API
ComposeAPI.isAvailable 函数,用于检查操作系统是否兼容。这允许模组开发者简单地禁用他们的 composite 接口,如果用户的系统不兼容。
其他所有内容都可以在 Google 和 JetBrains(Compose 的创建者)提供的文档中找到。
你会在 YouTube 或 Claude/Codex 上找到大量教程。
Compose Jetbrains - Official
Compose Desktop - JetBrains
Jetpack Compose - Google

支持该项目
加入我们的 Patreon,帮助让 Minecraft 成为每个人更精彩的体验!
我为创作者、玩家和模组制作者制作工具。以及新的内容数据包或模组。
Compose API - Fabric
Compose API, imports the dependencies required for JetBrains technology called Compose.
This mod does not add any features on its own.

Why ?
Compose is a technology I'll be using in a major upcoming mod that has been in development for years.
With the following benefits :
- No need to include it in your mods.
- Can be reused by multiple mods.
- Supports MacOS ARM, Windows x64, and Linux x64.
- Includes a minimal API that disables Compose if unavailable.
- Avoids re-downloading Compose entirely when mods that use it are updated.
- Compose has an interesting Vulkan-compatible backend

Voxel Studio Pro :
In future mods it will allow integrating an in-game interface similar to Hytale's asset editor, or to Unity/Unreal Engine. A game editor built into the game, which can be used either:
- For players, Customize your gameplay experience.
- For developers, making it much easier to develop datapack/resource pack/mods content and manage modpacks.
- For game designer, Easily adjust the game balancing without bothering the developers, Amazing for a server.

How to install
JetBrains Compose uses Kotlin, so don't forget to install the mods.
Step one - Add Modrinth to your gradle repository :
repositories {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
content {
includeGroup "maven.modrinth"
}
}
}
Step two - Add Compose to your Gradle Dependencies
compose.desktop.currentOs is a helper from the Compose Gradle plugin that resolves to the Compose Desktop artifact matching the host OS at build time, pulling in the right native Skia/Skiko
// Change the version if needed
modImplementation "maven.modrinth:compose-api:1.2.0"
implementation compose.desktop.currentOs
If you prefer to specify the Compose API versions in gradle.properties, you can use a variable modImplementation "maven.modrinth:compose-api:${project.compose_api_version}"
With the version in gradle.properties compose_api_version=1.2.0
Step three - Add Jetbrains Plugin in Grandle
plugins {
// ... Your Kotlin/Loom
id 'org.jetbrains.kotlin.plugin.compose' version '2.3.10'
id 'org.jetbrains.compose' version '1.9.1'
}

What does it contain?
This mod contains all the dependencies required for Compose to work on MacOS ARM, Windows x64, and Linux x64. It can be used by any other modder.
It does not include Kotlin dependencies to avoid downloading them twice, with the Fabric Kotlin mods.
This mod gives you access to :
- The
androidx.compose.* API.
- The Jetbrains Skia
org.jetbrains.skia API
ComposeAPI.isAvailable function, which checks whether the operating system is compatible. This allows mod developers to simply disable their composite interfaces if the user's system is not compatible.
Everything else is available in the documentation from Google and JetBrains, the creators of Compose.
You'll find tons of tutorials on YouTube or on Claude/Codex.
Compose Jetbrains - Official
Compose Desktop - JetBrains
Jetpack Compose - Google

Support the Project
Join us on Patreon and help make Minecraft an even more amazing experience for everyone!
I make tools for creators, players, and modders. And new contents datapacks or mods.
评论 0
登录后参与评分
还没有评论,来抢沙发吧