Comments for packet handler getter

This commit is contained in:
themode 2020-11-14 00:26:15 +01:00
parent 6586ca39bc
commit 2ea2efb5a2

View File

@ -108,14 +108,35 @@ public final class PacketProcessor {
connectionPlayerConnectionMap.remove(channel); connectionPlayerConnectionMap.remove(channel);
} }
/**
* Gets the handler for client status packets.
*
* @return the status packets handler
* @see <a href="https://wiki.vg/Protocol#Status">Status packets</a>
*/
@NotNull
public ClientStatusPacketsHandler getStatusPacketsHandler() { public ClientStatusPacketsHandler getStatusPacketsHandler() {
return statusPacketsHandler; return statusPacketsHandler;
} }
/**
* Gets the handler for client login packets.
*
* @return the status login handler
* @see <a href="https://wiki.vg/Protocol#Login">Login packets</a>
*/
@NotNull
public ClientLoginPacketsHandler getLoginPacketsHandler() { public ClientLoginPacketsHandler getLoginPacketsHandler() {
return loginPacketsHandler; return loginPacketsHandler;
} }
/**
* Gets the handler for client play packets.
*
* @return the play packets handler
* @see <a href="https://wiki.vg/Protocol#Play">Play packets</a>
*/
@NotNull
public ClientPlayPacketsHandler getPlayPacketsHandler() { public ClientPlayPacketsHandler getPlayPacketsHandler() {
return playPacketsHandler; return playPacketsHandler;
} }