p0t4t0sandwich / TaterLib

A cross API code library that allows developers to write code that works across multiple modding platforms, and across a wide range of Minecraft versions, all with one JAR file. If TaterLib runs on it, so can your plugin/mod.
GNU General Public License v3.0
8 stars 2 forks source link

Create reflection-version-getters for all implementations #35

Closed p0t4t0sandwich closed 8 months ago

p0t4t0sandwich commented 8 months ago

Statically generate like TaterAPIProvider.serverType, just needs to be implemented for all platforms

Bukkit.getServer().getVersion()

ProxyServer.getInstance().getVersion()

Sponge.getPlatform().getMinecraftVersion().getName()

Sponge.platform().minecraftVersion().name()

server.getVersion().getVersion()