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:
37 files changed
+202
-202
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user