PMWeatherAPI

PMWeatherAPI

与ProtoManly天气模组交互的API接口
neoforge 作者 nullved 支持版本 1.21 - 1.21.1
下载量
28,548
关注数
15
数据来源
Modrinth
模组详细介绍
PMWeatherAPI 徽标

支持

需要帮助?点击此处加入 Discord 服务器!

关于

pmweatherapi

PMWeatherAPI 是一个非官方的 API,旨在简化与 ProtoManly 的天气模组 的交互,方便想要创建附加内容的开发者使用。

当前功能:

  • 附近风暴检测
  • 附近雷达检测
  • 自定义雷达模式
  • 雷达覆盖层
  • 风暴构建器
  • 色彩映射
  • 事件系统

> ⚠️ 由于 PMWeather 仍处于 alpha 阶段,此 API 目前为实验性版本。预计会出现错误。

> 该 API 将尽可能与 PMWeather 保持同步更新。

请确保仅使用与您的 PMWeather 版本匹配的 API 版本(例如,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

基本信息
模组名称PMWeatherAPI
作者nullved
下载量28,548
关注数15
支持版本1.21 - 1.21.1
加载器neoforge
客户端required
服务端required