Update events library to latest version

This commit is contained in:
Tim203 2023-06-16 22:54:21 +02:00
parent 6591332eb7
commit 3d1a10db3b
No known key found for this signature in database
GPG key ID: 736F3CD49EF01DBF
2 changed files with 8 additions and 2 deletions

View file

@ -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);

View file

@ -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"