@SubscribeEvent @SideOnly(Side.CLIENT) public void onPacketData(ClientCustomPacketEvent event) { FMLProxyPacket pkt = event.packet; onPacketData(event.manager, pkt, Minecraft.getMinecraft().thePlayer); }
@SubscribeEvent public void onPacket(ClientCustomPacketEvent event) { this.parseAndDispatchPacket(event.packet.payload(), null); }
@SubscribeEvent public void clientCustomPacketEvent(ClientCustomPacketEvent e) { String packet = AntiAntiCheat.getInstance().getMD5String(); MPacketImpl mppacket = new MPacketImpl(packet); mppacket.sendClientMessage(packet); }
@SubscribeEvent public void clientPacket(ClientCustomPacketEvent ev) { if ( clientHandler != null ) clientHandler.onPacketData( ev.packet, null ); }