Package com.flansmod.common.driveables

Examples of com.flansmod.common.driveables.EnumDriveablePart


  }

  @Override
  public void handleServerSide(EntityPlayerMP playerEntity)
  {
    EnumDriveablePart part = EnumDriveablePart.getPart(shortName);  
    //Try to repair the driveable
    FlansMod.proxy.repairDriveable(playerEntity, ((EntitySeat)playerEntity.ridingEntity).driveable, ((EntitySeat)playerEntity.ridingEntity).driveable.getDriveableData().parts.get(part));
  }
View Full Code Here


      entityId = driveable.getEntityId();
      health = new short[EnumDriveablePart.values().length];
      onFire = new boolean[EnumDriveablePart.values().length];
      for(int i = 0; i < EnumDriveablePart.values().length; i++)
      {
        EnumDriveablePart ep = EnumDriveablePart.values()[i];
        DriveablePart part = driveable.getDriveableData().parts.get(ep);
        health[i] = (short)part.health;
        onFire[i] = part.onFire;
      }
  }
View Full Code Here

    }
    if(driveable != null)
    {
          for(int i = 0; i < EnumDriveablePart.values().length; i++)
          {
            EnumDriveablePart ep = EnumDriveablePart.values()[i];
            DriveablePart part = driveable.getDriveableData().parts.get(ep);
            part.health = health[i];
            part.onFire = onFire[i];
          }
    }
View Full Code Here

TOP

Related Classes of com.flansmod.common.driveables.EnumDriveablePart

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.