Raywire
Raywire 是一个为 Better Than Adventure (BTA) 设计的事件库,旨在为 BTA 模组开发者提供一个灵活且高效的事件驱动系统。
Raywire 使用 Kotlin 编写,使得在 BTA 模组中创建、订阅和管理自定义事件变得轻松简单。
在你的模组中使用 Raywire
将 Raywire 作为依赖项添加到你的 build.gradle.kts 中:
dependencies {
implementation("com.github.Apollointhehouse:Raywire:<version>")
}
将 <version> 替换为最新的 Raywire 版本号。
用法
请参阅 Event Library 以获取关于如何使用本库的信息。
本模组提供了一个全局总线(bus),你可以选择使用它:
import me.apollointhehouse.raywire.Raywire
val bus = Raywire.GLOBAL_BUS
依赖项
Raywire
Raywire is an event library for Better Than Adventure (BTA), designed to provide a flexible and efficient event-driven system for BTA mod developers.
Written in Kotlin, Raywire makes it easy to create, subscribe to, and manage custom events within your BTA mods.
Using Raywire in Your Mod
Add Raywire as a dependency in your build.gradle.kts:
dependencies {
implementation("com.github.Apollointhehouse:Raywire:<version>")
}
Replace <version> with the latest Raywire release.
Usage
Take a look at the Event Library for information on how to use this.
This mod provides a global bus you can optionally choose to use:
import me.apollointhehouse.raywire.Raywire
val bus = Raywire.GLOBAL_BUS
Dependencies
下载 Raywire
下载 Raywire
下载 Raywire
下载 Raywire
下载 Raywire
下载 Raywire
此模组不再提供事件系统本身,而是为 Event-Library 提供 GLOBAL_BUS。请参阅 Event-Library 获取文档说明。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
评论 0
登录后参与评分
还没有评论,来抢沙发吧