TaterLib

一个用于Tater*插件中各种泛化的跨API代码库。

资源图片
# TaterLib [![License](https://img.shields.io/github/license/p0t4t0sandwich/TaterLib?color=blue)](https://github.com/p0t4t0sandwich/TaterLib/blob/main/LICENSE) [![Github](https://img.shields.io/github/stars/p0t4t0sandwich/TaterLib)](https://github.com/p0t4t0sandwich/TaterLib) [![Github Issues](https://img.shields.io/github/issues/p0t4t0sandwich/TaterLib?label=Issues)](https://github.com/p0t4t0sandwich/TaterLib/issues) [![Discord](https://img.shields.io/discord/1067482396246683708?color=7289da&logo=discord&logoColor=white)](https://discord.neuralnexus.dev) [![wakatime](https://wakatime.com/badge/user/fc67ce74-ca69-40a4-912f-61b26dbe3068/project/ba087a5d-fd50-4b54-9723-3effbfda7567.svg)](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) ## 下载 [![Github Releases](https://img.shields.io/github/downloads/p0t4t0sandwich/TaterLib/total?label=Github&logo=github&color=181717)](https://github.com/p0t4t0sandwich/TaterLib/releases) [![Spigot](https://img.shields.io/spiget/downloads/111852?label=Spigot&logo=spigotmc&color=ED8106)](https://www.spigotmc.org/resources/taterlib.111852/) [![Hangar](https://img.shields.io/badge/Hangar-download-blue)](https://hangar.papermc.io/p0t4t0sandwich/TaterLib) [![CurseForge](https://img.shields.io/curseforge/dt/980381?label=Bukkit&logo=https%3A%2F%2Fbukkit.org%2Ffavicon.ico&color=1E6AB7)](https://www.curseforge.com/minecraft/bukkit-plugins/taterlib) [![Modrinth](https://img.shields.io/modrinth/dt/taterlib?label=Modrinth&logo=modrinth&color=00AF5C)](https://modrinth.com/mod/taterlib) [![CurseForge](https://img.shields.io/curseforge/dt/900128?label=CurseForge&logo=curseforge&color=F16436)](https://www.curseforge.com/minecraft/mc-mods/taterlib) [![Sponge](https://img.shields.io/ore/dt/taterlib?label=Sponge&logo=https%3A%2F%2Fspongepowered.org%2Ffavicon.ico&color=F7CF0D)](https://ore.spongepowered.org/p0t4t0sandwich/TaterLib) [![BuiltByBit](https://img.shields.io/badge/BuiltByBit-download-blue?logo=https%3A%2F%2Fbuiltbybit.com%2Ffavicon.ico)](https://builtbybit.com/resources/taterlib.40265/) [![PolyMart](https://img.shields.io/badge/PolyMart-download-cyan?logo=https%3A%2F%2Fpolymart.org%2Ffavicon.ico)](https://polymart.org/resource/taterlib.5552) [![Craftaro](https://img.shields.io/badge/Craftaro-download-orange?logo=https%3A%2F%2Fcraftaro.com%2Ffavicon.ico)](https://craftaro.com/marketplace/product/taterlib.2771) [![Maven Snapshots Repo](https://img.shields.io/maven-metadata/v?label=Snapshot&metadataUrl=https%3A%2F%2Fmaven.neuralnexus.dev%2Fsnapshots%2Fdev%2Fneuralnexus%2Ftaterlib-api%2Fmaven-metadata.xml)](https://maven.neuralnexus.dev/#/snapshots/dev/neuralnexus/taterlib-api)[![Jenkins Dev Build](https://img.shields.io/jenkins/build?jobUrl=https%3A%2F%2Fjenkins.neuralnexus.dev%2Fjob%2FTaterLibDev%2F)](https://jenkins.neuralnexus.dev/job/TaterLibDev/) [![Maven Repo](https://img.shields.io/maven-metadata/v?label=Release&metadataUrl=https%3A%2F%2Fmaven.neuralnexus.dev%2Freleases%2Fdev%2Fneuralnexus%2Ftaterlib-api%2Fmaven-metadata.xml)](https://maven.neuralnexus.dev/#/releases/dev/neuralnexus/taterlib-api)[![Jenkins Builds](https://img.shields.io/jenkins/build?jobUrl=https%3A%2F%2Fjenkins.neuralnexus.dev%2Fjob%2FTaterLib%2F)](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 ![image](https://bstats.org/signatures/bukkit/TaterLib.svg) ### BungeeCord ![image](https://bstats.org/signatures/bungeecord/TaterLib.svg) ### Sponge ![image](https://bstats.org/signatures/sponge/TaterLib.svg) ### Velocity ![image](https://bstats.org/signatures/velocity/TaterLib.svg)