From a6ed6db9534f66745e2104678232df83a05ff273 Mon Sep 17 00:00:00 2001
From: Camotoy <20743703+Camotoy@users.noreply.github.com>
Date: Fri, 7 Oct 2022 19:11:56 -0400
Subject: [PATCH] Basic update to dependency page for new Geyser API
---
...ing-geyser-or-floodgate-as-a-dependency.md | 24 +++++++------------
1 file changed, 8 insertions(+), 16 deletions(-)
diff --git a/_docs/geyser/using-geyser-or-floodgate-as-a-dependency.md b/_docs/geyser/using-geyser-or-floodgate-as-a-dependency.md
index 2bbf036..4e75abe 100644
--- a/_docs/geyser/using-geyser-or-floodgate-as-a-dependency.md
+++ b/_docs/geyser/using-geyser-or-floodgate-as-a-dependency.md
@@ -9,27 +9,19 @@ To start, add the Open Collaboration repository to your project:
```xml
opencollab-snapshot-repo
- https://repo.opencollab.dev/maven-snapshots/
-
- false
-
-
- true
-
+ https://repo.opencollab.dev/main/
```
## Using Geyser
-*Please note: this information will be updated with a new API at a later point, but the old API structure will continue to work.*
-
-Add Geyser's common codebase as a dependency:
+Add Geyser's API codebase as a dependency:
```xml
- org.geysermc
- core
- 2.0.0-SNAPSHOT
+ org.geysermc.geyser
+ api
+ 2.1.0-SNAPSHOT
provided
```
@@ -37,12 +29,12 @@ Add Geyser's common codebase as a dependency:
To get a Geyser player, or check if a player is from Bedrock:
```java
-GeyserSession session = GeyserConnector.getInstance().getPlayerByUuid(uuid);
+GeyserConnection connection = GeyserApi.api().connectionByUuid(uuid);
```
-`session` can be null if such a player does not exist on Geyser.
+`connection` can be null if such a player does not exist on Geyser.
-`GeyserConnector.getInstance()` will be null until after the Geyser plugin enables.
+`GeyserApi.api()` may be null until after the Geyser plugin enables.
## Using Floodgate