3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-19 22:40:18 +01:00

Apply suggestions from code review

Co-authored-by: chris <github@onechris.mozmail.com>
Dieser Commit ist enthalten in:
Blue Tree 2024-04-22 14:06:47 +02:00 committet von GitHub
Ursprung cf8d318409
Commit 987c440fae
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: B5690EEEBB952194

Datei anzeigen

@ -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 {
* <code>minecraft:register</code>.
* @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;
}
}