@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(INetHandlerHandshakeServer handler) { handler.processHandshake(this); }
public void processPacket(INetHandlerHandshakeServer p_149596_1_) { p_149596_1_.processHandshake(this); }
public void processPacket(INetHandler p_148833_1_) { this.processPacket((INetHandlerHandshakeServer)p_148833_1_); }
public void processPacket(INetHandlerHandshakeServer p_148833_1_) { p_148833_1_.processHandshake(this); }