Package mekanism.common.network.PacketConfigSync

Examples of mekanism.common.network.PacketConfigSync.ConfigSyncMessage


  @SubscribeEvent
  public void onPlayerLoginEvent(PlayerLoggedInEvent event)
  {
    if(!event.player.worldObj.isRemote)
    {
      Mekanism.packetHandler.sendTo(new ConfigSyncMessage(), (EntityPlayerMP)event.player);
      Mekanism.packetHandler.sendTo(new BoxBlacklistMessage(), (EntityPlayerMP)event.player);
      Mekanism.packetHandler.sendTo(new JetpackDataMessage(JetpackPacket.FULL, null, false), (EntityPlayerMP)event.player);
      Mekanism.packetHandler.sendTo(new ScubaTankDataMessage(ScubaTankPacket.FULL, null, false), (EntityPlayerMP)event.player);

      Mekanism.logger.info("Sent config to '" + event.player.getDisplayName() + ".'");
View Full Code Here

TOP

Related Classes of mekanism.common.network.PacketConfigSync.ConfigSyncMessage

Copyright © 2018 www.massapicom. 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.