Package com.flansmod.common.network

Examples of com.flansmod.common.network.PacketMechaControl


    }
   
    //Calculate movement on the client and then send position, rotation etc to the server
    if(thePlayerIsDrivingThis)
    {
      FlansMod.getPacketHandler().sendToServer(new PacketMechaControl(this));
      serverPosX = posX;
      serverPosY = posY;
      serverPosZ = posZ;
      serverYaw = axes.getYaw();
    }
   
    //If this is the server, send position updates to everyone, having received them from the driver
    if(!worldObj.isRemote && ticksExisted % 5 == 0)
    {
      FlansMod.getPacketHandler().sendToAllAround(new PacketMechaControl(this), posX, posY, posZ, FlansMod.driveableUpdateRange, dimension);
    }
   
    for(EntitySeat seat : seats)
    {
      if(seat != null)
View Full Code Here

TOP

Related Classes of com.flansmod.common.network.PacketMechaControl

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.