mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Update events library to latest version
This commit is contained in:
parent
6591332eb7
commit
3d1a10db3b
2 changed files with 8 additions and 2 deletions
|
@ -27,6 +27,7 @@ package org.geysermc.geyser.extension.event;
|
|||
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
import org.geysermc.event.Event;
|
||||
import org.geysermc.event.FireResult;
|
||||
import org.geysermc.event.PostOrder;
|
||||
import org.geysermc.event.subscribe.Subscriber;
|
||||
import org.geysermc.geyser.api.event.EventBus;
|
||||
|
@ -47,10 +48,15 @@ public record GeyserExtensionEventBus(EventBus<EventRegistrar> eventBus, Extensi
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean fire(@NonNull Event event) {
|
||||
public FireResult fire(@NonNull Event event) {
|
||||
return eventBus.fire(event);
|
||||
}
|
||||
|
||||
@Override
|
||||
public FireResult fireSilently(@NonNull Event event) {
|
||||
return eventBus.fireSilently(event);
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NonNull <T extends Event> Set<? extends EventSubscriber<EventRegistrar, T>> subscribers(@NonNull Class<T> eventClass) {
|
||||
return eventBus.subscribers(eventClass);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
base-api = "1.0.0-SNAPSHOT"
|
||||
cumulus = "1.1.1"
|
||||
erosion = "1.0-20230406.174837-8"
|
||||
events = "1.0-SNAPSHOT"
|
||||
events = "1.1-SNAPSHOT"
|
||||
jackson = "2.14.0"
|
||||
fastutil = "8.5.2"
|
||||
netty = "4.1.80.Final"
|
||||
|
|
Loading…
Reference in a new issue