@Override public IThreadListener getWorldThread(INetHandler net) { if (net instanceof INetHandlerPlayClient || net instanceof INetHandlerLoginClient || net instanceof INetHandlerStatusClient) return getClient(); if (net instanceof INetHandlerHandshakeServer || net instanceof INetHandlerLoginServer || net instanceof INetHandlerPlayServer || net instanceof INetHandlerStatusServer) return getServer(); throw new RuntimeException("Unknown INetHandler: " + net); }
/** * Passes this Packet on to the NetHandler for processing. */ public void processPacket(INetHandlerLoginClient handler) { handler.handleEnableCompression(this); }
/** * Passes this Packet on to the NetHandler for processing. */ public void processPacket(INetHandlerLoginClient handler) { handler.handleDisconnect(this); }
/** * Passes this Packet on to the NetHandler for processing. */ public void processPacket(INetHandlerLoginClient handler) { handler.handleLoginSuccess(this); }
/** * Passes this Packet on to the NetHandler for processing. */ public void processPacket(INetHandlerLoginClient handler) { handler.handleEncryptionRequest(this); }
public void processPacket(INetHandlerLoginClient p_149604_1_) { p_149604_1_.handleDisconnect(this); }
public void processPacket(INetHandler p_148833_1_) { this.processPacket((INetHandlerLoginClient)p_148833_1_); }
public void processPacket(INetHandlerLoginClient p_149601_1_) { p_149601_1_.handleLoginSuccess(this); }
public void processPacket(INetHandlerLoginClient p_149606_1_) { p_149606_1_.handleEncryptionRequest(this); }
public void processPacket(INetHandlerLoginClient p_148833_1_) { p_148833_1_.handleDisconnect(this); }
public void processPacket(INetHandlerLoginClient p_148833_1_) { p_148833_1_.handleLoginSuccess(this); }
public void processPacket(INetHandlerLoginClient p_148833_1_) { p_148833_1_.handleEncryptionRequest(this); }