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;
}
}