Examples of PacketDriveableKey


Examples of com.flansmod.common.network.PacketDriveableKey

  {
      VehicleType type = getVehicleType();
      //Send keys which require server side updates to the server
      if(worldObj.isRemote && (key == 6 || key == 8 || key == 9))
      {
        FlansMod.getPacketHandler().sendToServer(new PacketDriveableKey(key));
        return true;
      }
    switch(key)
    {
      case 0 : //Accelerate : Increase the throttle, up to 1.
View Full Code Here

Examples of com.flansmod.common.network.PacketDriveableKey

    MechaType type = getMechaType();
      DriveableData data = getDriveableData();
    //send keys which require server side updates to the server
      if(worldObj.isRemote && (key == 6 || key == 8 || key == 9))
      {
        FlansMod.getPacketHandler().sendToServer(new PacketDriveableKey(key));
        return true;
      }
      switch(key)
      {
        case 0 : //Forwards (these movement cases are redundant, as Mechas need to stop when the key is released)
View Full Code Here

Examples of com.flansmod.common.network.PacketDriveableKey

  {
      PlaneType type = this.getPlaneType();
      //Send keys which require server side updates to the server
      if(worldObj.isRemote && (key == 6 || key == 8 || key == 9))
      {
        FlansMod.getPacketHandler().sendToServer(new PacketDriveableKey(key));
        return true;
      }
      boolean canThrust = (seats[0] != null && seats[0].riddenByEntity instanceof EntityPlayer && ((EntityPlayer)seats[0].riddenByEntity).capabilities.isCreativeMode) || getDriveableData().fuelInTank > 0;
    switch(key)
    {
View Full Code Here

Examples of com.flansmod.common.network.PacketDriveableKey

   
    if(worldObj.isRemote)
    {
      if(foundDriveable)
      {
        FlansMod.getPacketHandler().sendToServer(new PacketDriveableKey(key));
        if(key == 9)
          minigunSpeed += 0.1F;
      }
      return false;
    }
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.