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:
Ursprung
cf8d318409
Commit
987c440fae
@ -32,7 +32,7 @@ import org.geysermc.geyser.api.event.connection.ConnectionEvent;
|
|||||||
/**
|
/**
|
||||||
* Called when the Java server sends a custom payload to Geyser.
|
* Called when the Java server sends a custom payload to Geyser.
|
||||||
* This event is not called when a built-in supported custom payload
|
* 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 {
|
public class ServerCustomPayloadEvent extends ConnectionEvent {
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ public class ServerCustomPayloadEvent extends ConnectionEvent {
|
|||||||
* <code>minecraft:register</code>.
|
* <code>minecraft:register</code>.
|
||||||
* @return the channel that sent this custom payload.
|
* @return the channel that sent this custom payload.
|
||||||
*/
|
*/
|
||||||
public @NonNull String getChannel() {
|
public @NonNull String channel() {
|
||||||
return channel;
|
return channel;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ public class ServerCustomPayloadEvent extends ConnectionEvent {
|
|||||||
* The data field of the custom payload.
|
* The data field of the custom payload.
|
||||||
* @return the data field of the custom payload.
|
* @return the data field of the custom payload.
|
||||||
*/
|
*/
|
||||||
public byte[] getData() {
|
public byte[] data() {
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren