Explicitly define md/x header links for i18n

Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>
This commit is contained in:
Joshua Castle committed 2024-03-03 20:04:11 -08:00
1 parent 3f4b5f68b0
commit 05c4ec92fc
37 files changed
+202 -202

No files matched your search

+3 -3
View File
@@ -7,7 +7,7 @@ Geyser has a powerful event system that allows you to listen to events that are
Full documentation can be found [here](https://github.com/GeyserMC/Geyser/tree/master/api/src/main/java/org/geysermc/geyser/api/event).
## Event Categories
## Event Categories {#event-categories}
To use events in a Spigot/Paper plugin or a Fabric mod, you need to register the Geyser Event Bus as a listener and then subscribe to the events you want to listen to.
Extensions can use the @Subscribe annotation.
@@ -21,7 +21,7 @@ Events are categorized into the following categories:
To see all the events in the respective categories, click on the links above.
## Usage Examples:
## Usage Examples: {#usage-examples}
Each method that you want to subscribe to an event needs to be annotated with the @Subscribe annotation (from the GeyserMC events package).
```java
@@ -92,7 +92,7 @@ public class ExamplePlugin extends JavaPlugin implements EventRegistrar {
GeyserApi.api().eventBus().subscribe(this, GeyserEvent.class, this::yourMethod);
```
## Event Priority
## Event Priority {#event-priority}
Events can have a priority, which is used to determine the order in which the listeners are called. The default priority is NORMAL.
To (optionally) set the priority of your event listener, you can add the priority to the `@Subscribe` annotation:
```java