~/forever/addon-api
Addon API
UnitIsVisible(unit?) : resultUnitIsWildBattlePet(unit) : resultUnitLeadsAnyGroup(unit) : isLeaderUnitLevel(name) : resultUnitName(unit) : unitName, unitServerUnitNameFromGUID(unitGUID) : unitName, unitServerUnitNameUnmodified(unit) : unitName, unitServerUnitNameplateShowsWidgetsOnly(unit) : nameplateShowsWidgetsOnlyUnitNumPowerBarTimers(unit) : resultUnitOnTaxi(unit) : resultUnitOwnerGUID(unit) : ownerGUIDUnitPVPName(unit) : resultUnitPartialPower(unitToken, powerType?, unmodified) : partialPowerUnitPercentHealthFromGUID(unitGUID) : percentHealthUnitPhaseReason(unit) : reasonUnitPlayerControlled(unit?) : resultUnitPlayerOrPetInParty(unit?, partyIndex?) : resultUnitPlayerOrPetInRaid(unit?, partyIndex?) : resultUnitPosition(unit) : positionX, positionY, positionZ, mapIDUnitPower(unitToken, powerType?, unmodified) : powerUnitPowerBarID(unitToken) : barIDStructure UnitPowerBarInfoUnitPowerBarTimerInfo(unit, index) : duration, expiration, barID, auraIDUnitPowerDisplayMod(powerType) : displayModUnitPowerMax(unitToken, powerType?, unmodified) : maxPowerUnitPowerMissing(unitToken, powerType?, unmodified) : resultUnitPowerPercent(unitToken, powerType?, unmodified, curve?) : resultUnitPowerType(unit, index) : powerType, powerTypeToken, rgbX, rgbY, rgbZUnitPvpClassification(unit) : classificationUnitQuestTrivialLevelRange(unit) : levelRangeUnitQuestTrivialLevelRangeScaling(unit) : levelRangeUnitRace(unit) : localizedRaceName, englishRaceName, raceIDUnitRangedAttackPower(unit) : attackPower, posBuff, negBuffUnitRangedDamage(unit) : speed, minDamage, maxDamage, posBuff, negBuff, percentUnitReaction(unit, target) : resultUnitRealmRelationship(unit) : realmRelationshipUnitResistance(unit, damageClass) : baseResistance, realResistance, effectiveResistance, bonusResistanceUnitSelectionColor(unit, useExtendedColors) : resultR, resultG, resultB, resultAUnitSelectionType(unit, useExtendedColors) : resultUnitSex(unit) : sexUnitSexBase(unit) : sexUnitShouldDisplayName(unit) : resultUnitShouldDisplaySpellTargetName(unit) : resultUnitSpellHaste(unit) : resultUnitSpellTargetClass(unit) : classFilenameUnitSpellTargetName(unit) : targetNameUnitStagger(unit) : resultUnitStat(unit, index) : currentStat, effectiveStat, statPositiveBuff, statNegativeBuffUnitSwitchToVehicleSeat(unit, virtualSeatIndex)UnitTargetsVehicleInRaidUI(unit?) : resultDocumented entries come from Blizzard's in-client API documentation, and UI code functions from its Lua files, mirrored per build. C functions that neither mentions aren't included, and UI code functions can be internal.