# TaterLib
[](https://github.com/p0t4t0sandwich/TaterLib/blob/main/LICENSE)
[](https://github.com/p0t4t0sandwich/TaterLib)
[](https://github.com/p0t4t0sandwich/TaterLib/issues)
[](https://discord.neuralnexus.dev)
[](https://wakatime.com/badge/user/fc67ce74-ca69-40a4-912f-61b26dbe3068/project/ba087a5d-fd50-4b54-9723-3effbfda7567)
一个跨 API 代码库,允许开发者编写可以在多个模组化平台和广泛的 Minecraft 版本上运行的代码,所有这些都只需一个 JAR 文件。如果 TaterLib 运行它,你的插件/模组也可以运行。
请注意,某些抽象可能尚未完全实现,有些可能缺失。如果你正在寻找特定的抽象/游戏事件,请提出一个 issue,我们将尽快处理,或者直接提交一个 PR 以及实现。
[欢迎参与贡献!](https://github.com/p0t4t0sandwich/TaterLib/blob/main/.github/CONTRIBUTING.md)
让我们直奔主题,为什么你应该使用和/或为 TaterLib 做出贡献? 假设你有一个模组/插件,你想将其移植到不同的模组化 API。 你可以花费大量时间来实现每个平台的事件、命令等,并为每个游戏对象创建你自己的炫酷抽象,或者使用 TaterLib 并节省大量时间。(这就是我最初启动这个项目的原因)
有两种使用 TaterLib 的方法,你可以依赖于通用的 API,然后在每个平台上自行实现任何缺失的功能, 或者如果缺少某些内容, 你就可以提交一个 PR,提供基本或完整的实现, 我们可以改进 TaterLib 并为你未来的时间节省很多。 (有点双赢)
链接到我们的支持: [Discord](https://discord.neuralnexus.dev)
## 下载
[](https://github.com/p0t4t0sandwich/TaterLib/releases)
[](https://www.spigotmc.org/resources/taterlib.111852/)
[](https://hangar.papermc.io/p0t4t0sandwich/TaterLib)
[](https://www.curseforge.com/minecraft/bukkit-plugins/taterlib)
[](https://modrinth.com/mod/taterlib)
[](https://www.curseforge.com/minecraft/mc-mods/taterlib)
[](https://ore.spongepowered.org/p0t4t0sandwich/TaterLib)
[](https://builtbybit.com/resources/taterlib.40265/)
[](https://polymart.org/resource/taterlib.5552)
[](https://craftaro.com/marketplace/product/taterlib.2771)
[](https://maven.neuralnexus.dev/#/snapshots/dev/neuralnexus/taterlib-api)[](https://jenkins.neuralnexus.dev/job/TaterLibDev/)
[](https://maven.neuralnexus.dev/#/releases/dev/neuralnexus/taterlib-api)[](https://jenkins.neuralnexus.dev/job/TaterLib/)
### 添加到你的项目
```gradle
repositories {
maven {
name = 'NeuralNexus'
url = 'https://maven.neuralnexus.dev/releases'
}
}
dependencies {
compileOnly('dev.neuralnexus:taterlib-api:')
}
```
还有一个快照仓库位于 `https://maven.neuralnexus.dev/repository/snapshots`
### 兼容性速查表
TaterLib 支持:Bukkit、BungeeCord、Fabric、Forge、Sponge 和 Velocity
通用说明:
- 1.13 上没有 Fabric
- 1.7.10 以下没有 Fabric/Forge
| 服务器类型 | 版本 | Jar 名称 |
|-----------|------------|-------------------------------|
| 1.20.x | 1.20-1.20.4 | `TaterLib-1.20.x-.jar` |
| 1.19.4 | 1.19.4 | `TaterLib-1.19.4-.jar` |
| 1.19.2 | 1.19.2 | `TaterLib-1.19.2-.jar` |
| 1.19 | 1.19 | `TaterLib-1.19-.jar` |
| 1.18.2 | 1.18.2 | `TaterLib-1.18.2-.jar` |
| 1.18 | 1.18 | `TaterLib-1.18-.jar` |
| 1.17 | 1.17-1.17.1 | `TaterLib-1.17-.jar` |
| 1.16 | 1.16-1.16.5 | `TaterLib-1.16-.jar` |
| 1.15 | 1.15-1.15.2 | `TaterLib-1.15-.jar` |
| 1.14 | 1.14-1.14.3 | `TaterLib-1.14-.jar` |
| 1.13 | 1.13-1.13.2 | `TaterLib-1.13-.jar` |
| 1.12 | 1.12-1.12.2 | `TaterLib-1.12-.jar` |
| 1.11 | 1.11-1.11.2 | `TaterLib-1.11-.jar` |
| 1.10 | 1.10-1.10.2 | `TaterLib-1.10-.jar` |
| 1.9 | 1.9-1.9.4 | `TaterLib-1.9-.jar` |
| 1.8 | 1.8-1.8.8 | `TaterLib-1.8-.jar` |
| 1.7 | 1.7-1.7.10 | `TaterLib-1.7.10-.jar` |
| 1.6.4 | 1.6.4 | `TaterLib-1.6.4-.jar` |
| 1.2.5 | 1.2.5 | `TaterLib-1.2.5-.jar` |
| b1.7.3 | b1.7.3 | `TaterLib-b1.7.3-.jar` |
## 依赖
- [Fabric API](https://modrinth.com/mod/fabric-api) - Fabric 运行时需要
- [Legacy Fabric API](https://www.curseforge.com/minecraft/mc-mods/legacy-fabric-api) - 1.12.2 及以下版本的 Fabric 需要
### 可选依赖
- [LuckPerms](https://luckperms.net/) - 用于权限/前缀/后缀支持
## 命令和权限
| 命令 | 权限 | 描述 |
|----------------------|-----------------------------|--------------------------|
| `/taterlib version` | `taterlib.command.version` | 获取 TaterLib 版本 |
| `/taterlib reload` | `taterlib.command.reload` | 重新加载 TaterLib 配置 |
| `/taterlib dump` | `taterlib.command.dump` | 导出 TaterLib 信息 |
| `/taterlib fulldump` | `taterlib.command.fulldump` | 导出 TaterLib 信息 |
## 使用 TaterLib 的项目
随时提交一个 PR 以将你的插件/模组添加到此列表!
- [BadSpawns](https://github.com/p0t4t0sandwich/BadSpawns)
- [BeeNameGenerator](https://github.com/p0t4t0sandwich/BeeNameGeneratorPlugin)
- [TaterComms](https://github.com/p0t4t0sandwich/TaterComms)
- [TaterUtils](https://github.com/p0t4t0sandwich/TaterUtils)
## 数据统计
### Bukkit

### BungeeCord

### Sponge

### Velocity
