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; }