
PMWeatherAPI
用于与ProtoManly的天气模组交互的API
查看大图
支持
需要帮助?加入 Discord 服务器 这里!
简介
PMWeatherAPI 是一个非官方 API,旨在简化与 ProtoManly 的天气模组 的交互,适用于想要创建附加组件的人。
当前功能:
- 附近风暴检测
- 附近雷达检测
- 自定义雷达模式
- 雷达叠加层
- 风暴构建器
- 颜色映射
- 事件
⚠️ 此 API 目前处于实验阶段,因为 PMWeather 仍处于 alpha 版本。应预期会出现错误。 该 API 将尽可能与 PMWeather 保持同步更新。
确保你使用的 API 版本与你的 PMWeather 版本匹配(例如,0.14.15.0 适用于 PMWeather 0.14.15-alpha,但可能不适用于其他版本)。
添加到你的项目
在你的 build.gradle 中,添加以下内容:
repositories {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
maven {
name = "DU Maven"
url = "https://maven.digitalunderworlds.com/snapshots/"
}
}
dependencies {
implementation "maven.modrinth:protomanlys-weather:${pmweather_ver}-alpha"
implementation "net.nullved:pmweatherapi:${pmweatherapi_ver}"
}
在你的 gradle.properties 中,添加:
pmweather_ver=0.15.1
pmweatherapi_ver=0.15.1.0
有关使用示例和更多详细信息,请查看 wiki。
正在加载版本记录…
正在加载评论…
评论在新手盒子客户端中发表,这里同步展示。