From 987c440fae4fa065497cf3a539e84a388a289b69 Mon Sep 17 00:00:00 2001 From: Blue Tree <69328929+BlueTree242@users.noreply.github.com> Date: Mon, 22 Apr 2024 14:06:47 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: chris --- .../geyser/api/event/java/ServerCustomPayloadEvent.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/main/java/org/geysermc/geyser/api/event/java/ServerCustomPayloadEvent.java b/api/src/main/java/org/geysermc/geyser/api/event/java/ServerCustomPayloadEvent.java index ffbdfc355..09fce096f 100644 --- a/api/src/main/java/org/geysermc/geyser/api/event/java/ServerCustomPayloadEvent.java +++ b/api/src/main/java/org/geysermc/geyser/api/event/java/ServerCustomPayloadEvent.java @@ -32,7 +32,7 @@ import org.geysermc.geyser.api.event.connection.ConnectionEvent; /** * Called when the Java server sends a custom payload to Geyser. * This event is not called when a built-in supported custom payload - * such as floodgate is received. + * such as Floodgate is received. */ public class ServerCustomPayloadEvent extends ConnectionEvent { @@ -51,7 +51,7 @@ public class ServerCustomPayloadEvent extends ConnectionEvent { * minecraft:register. * @return the channel that sent this custom payload. */ - public @NonNull String getChannel() { + public @NonNull String channel() { return channel; } @@ -59,7 +59,7 @@ public class ServerCustomPayloadEvent extends ConnectionEvent { * The data field of the custom payload. * @return the data field of the custom payload. */ - public byte[] getData() { + public byte[] data() { return data; } }