Package cpw.mods.fml.common.network.internal

Examples of cpw.mods.fml.common.network.internal.FMLProxyPacket.payload()


        // biome colors and weather.

        FMLProxyPacket receivedPacket = event.packet;

        // We're on the client, receive the packet
        ByteBuf stream = receivedPacket.payload();
        try
        {
            int serverProtocolVersion = stream.readInt();
            int clientProtocolVersion = PluginStandardValues.ProtocolVersion;
            if (serverProtocolVersion == clientProtocolVersion)
View Full Code Here


      throw new IllegalArgumentException( "Sorry AE2 made a " + p.array().length + " byte packet by accident!" );

    FMLProxyPacket pp = new FMLProxyPacket( p, NetworkHandler.instance.getChannel() );

    if ( AEConfig.instance.isFeatureEnabled( AEFeature.PacketLogging ) )
      AELog.info( getClass().getName() + " : " + pp.payload().readableBytes() );

    return pp;
  }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.