Java 类cpw.mods.fml.common.network.FMLNetworkEvent.ClientCustomPacketEvent 实例源码

项目:LookingGlass    文件:LookingGlassPacketManager.java   
@SubscribeEvent
@SideOnly(Side.CLIENT)
public void onPacketData(ClientCustomPacketEvent event) {
    FMLProxyPacket pkt = event.packet;

    onPacketData(event.manager, pkt, Minecraft.getMinecraft().thePlayer);
}
项目:ShadowsOfPhysis    文件:PhysisPacketHandler.java   
@SubscribeEvent
@SideOnly(Side.CLIENT)
public void onPacketData(ClientCustomPacketEvent event) {
    FMLProxyPacket pkt = event.packet;

    onPacketData(event.manager, pkt, Minecraft.getMinecraft().thePlayer);
}
项目:MagicBees    文件:NetworkEventHandler.java   
@SubscribeEvent
public void onPacket(ClientCustomPacketEvent event) {
    this.parseAndDispatchPacket(event.packet.payload(), null);
}
项目:Anti-AntiCheat-MOD    文件:PacketLister.java   
@SubscribeEvent
public void clientCustomPacketEvent(ClientCustomPacketEvent e) {
    String packet = AntiAntiCheat.getInstance().getMD5String();
    MPacketImpl mppacket = new MPacketImpl(packet);
    mppacket.sendClientMessage(packet);
}
项目:RotatableBlocks    文件:NetworkHandler.java   
@SubscribeEvent
public void clientPacket(ClientCustomPacketEvent ev)
{
    if ( clientHandler != null )
        clientHandler.onPacketData( ev.packet, null );
}