docs: update API docs for new Fabric versioning

This commit is contained in:
William committed 2024-06-24 11:48:46 +01:00
1 parent abc0c10200
commit 332739de01
1 file changed
+5 -6
+5 -6
View File
@@ -19,8 +19,8 @@ The HuskHomes API shares version numbering with the plugin itself for consistenc
The HuskHomes API is available for the following platforms:
* `bukkit` - Bukkit, Spigot, Paper, etc. Provides Bukkit API events and extends `BaseHuskHomesAPI` with `org.bukkit` adapters.
* `fabric` - Fabric, Quilt, etc. Provides Fabric callback-style listeners
* `bukkit` - Bukkit, Spigot, Paper, etc. Provides Bukkit API event listeners and adapters to `org.bukkit` objects.
* `fabric` - Fabric, Quilt, etc. Provides Fabric API event callbacks and adapters to `net.minecraft` objects.
* `sponge` - Sponge. Provides Sponge API events.
* `common` - Common API for all platforms.
@@ -38,8 +38,7 @@ The HuskHomes API is available for the following platforms:
2. [Adding HuskHomes as a dependency](#2-adding-huskhomes-as-a-dependency)
3. [Next steps](#3-next-steps)
## 1 API Introduction
## API Introduction
### 1.1 Setup with Maven
<details>
<summary>Maven setup information</summary>
@@ -53,7 +52,7 @@ Add the repository to your `pom.xml` as per below. You can alternatively specify
</repository>
</repositories>
```
Add the dependency to your `pom.xml` as per below. Replace `VERSION` with the latest version of HuskHomes (without the v): ![Latest version](https://img.shields.io/github/v/tag/WiIIiam278/HuskHomes?color=%23282828&label=%20&style=flat-square)
Add the dependency to your `pom.xml` as per below. Replace `VERSION` with the latest version of HuskHomes (without the v): ![Latest version](https://img.shields.io/github/v/tag/WiIIiam278/HuskHomes?color=%23282828&label=%20&style=flat-square). Note for Fabric you must append the target Minecraft version to the version number (e.g. `3.6.1+1.20.1`).
```xml
<dependency>
<groupId>net.william278.huskhomes</groupId>
@@ -76,7 +75,7 @@ allprojects {
}
}
```
Add the dependency as per below. Replace `VERSION` with the latest version of HuskHomes (without the v): ![Latest version](https://img.shields.io/github/v/tag/WiIIiam278/HuskHomes?color=%23282828&label=%20&style=flat-square)
Add the dependency as per below. Replace `VERSION` with the latest version of HuskHomes (without the v): ![Latest version](https://img.shields.io/github/v/tag/WiIIiam278/HuskHomes?color=%23282828&label=%20&style=flat-square). Note for Fabric you must append the target Minecraft version to the version number (e.g. `3.6.1+1.20.1`).
```groovy
dependencies {