From 2ea2efb5a2cd1548f7bd1d281325b01664491268 Mon Sep 17 00:00:00 2001 From: themode Date: Sat, 14 Nov 2020 00:26:15 +0100 Subject: [PATCH] Comments for packet handler getter --- .../server/network/PacketProcessor.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/main/java/net/minestom/server/network/PacketProcessor.java b/src/main/java/net/minestom/server/network/PacketProcessor.java index aedb33c58..2b3f2b03d 100644 --- a/src/main/java/net/minestom/server/network/PacketProcessor.java +++ b/src/main/java/net/minestom/server/network/PacketProcessor.java @@ -108,14 +108,35 @@ public final class PacketProcessor { connectionPlayerConnectionMap.remove(channel); } + /** + * Gets the handler for client status packets. + * + * @return the status packets handler + * @see Status packets + */ + @NotNull public ClientStatusPacketsHandler getStatusPacketsHandler() { return statusPacketsHandler; } + /** + * Gets the handler for client login packets. + * + * @return the status login handler + * @see Login packets + */ + @NotNull public ClientLoginPacketsHandler getLoginPacketsHandler() { return loginPacketsHandler; } + /** + * Gets the handler for client play packets. + * + * @return the play packets handler + * @see Play packets + */ + @NotNull public ClientPlayPacketsHandler getPlayPacketsHandler() { return playPacketsHandler; }