3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-19 14:30:17 +01:00

Update events library to latest version

Dieser Commit ist enthalten in:
Tim203 2023-06-16 22:54:21 +02:00
Ursprung 6591332eb7
Commit 3d1a10db3b
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 736F3CD49EF01DBF
2 geänderte Dateien mit 8 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -27,6 +27,7 @@ package org.geysermc.geyser.extension.event;
import org.checkerframework.checker.nullness.qual.NonNull; import org.checkerframework.checker.nullness.qual.NonNull;
import org.geysermc.event.Event; import org.geysermc.event.Event;
import org.geysermc.event.FireResult;
import org.geysermc.event.PostOrder; import org.geysermc.event.PostOrder;
import org.geysermc.event.subscribe.Subscriber; import org.geysermc.event.subscribe.Subscriber;
import org.geysermc.geyser.api.event.EventBus; import org.geysermc.geyser.api.event.EventBus;
@ -47,10 +48,15 @@ public record GeyserExtensionEventBus(EventBus<EventRegistrar> eventBus, Extensi
} }
@Override @Override
public boolean fire(@NonNull Event event) { public FireResult fire(@NonNull Event event) {
return eventBus.fire(event); return eventBus.fire(event);
} }
@Override
public FireResult fireSilently(@NonNull Event event) {
return eventBus.fireSilently(event);
}
@Override @Override
public @NonNull <T extends Event> Set<? extends EventSubscriber<EventRegistrar, T>> subscribers(@NonNull Class<T> eventClass) { public @NonNull <T extends Event> Set<? extends EventSubscriber<EventRegistrar, T>> subscribers(@NonNull Class<T> eventClass) {
return eventBus.subscribers(eventClass); return eventBus.subscribers(eventClass);

Datei anzeigen

@ -2,7 +2,7 @@
base-api = "1.0.0-SNAPSHOT" base-api = "1.0.0-SNAPSHOT"
cumulus = "1.1.1" cumulus = "1.1.1"
erosion = "1.0-20230406.174837-8" erosion = "1.0-20230406.174837-8"
events = "1.0-SNAPSHOT" events = "1.1-SNAPSHOT"
jackson = "2.14.0" jackson = "2.14.0"
fastutil = "8.5.2" fastutil = "8.5.2"
netty = "4.1.80.Final" netty = "4.1.80.Final"