public void processServerQuery(CPacketServerQuery packetIn) { if (this.handled) { this.networkManager.closeChannel(EXIT_MESSAGE); } else { this.handled = true; this.networkManager.sendPacket(new SPacketServerInfo(this.server.getServerStatusResponse())); } }
@Inject(method = "handleServerInfo(Lnet/minecraft/network/status/server/SPacketServerInfo;)V", at = @At(value = "INVOKE", target = "Lnet/minecraft/network/status/server/SPacketServerInfo;getResponse()Lnet/minecraft/network/ServerStatusResponse;")) private void onHandleInfo(SPacketServerInfo packet, CallbackInfo ci) { IMixinServerStatusResponse response = (IMixinServerStatusResponse) packet.getResponse(); IMixinServerData serverData = (IMixinServerData) this.val$server; serverData.setSpongeInfo(response.getSpongeInfo()); }
void handleServerInfo(SPacketServerInfo packetIn);