Interface IPlayerState
Interface for determining the players state.
Assembly: Dalamud.dll​
public interface IPlayerState : IDalamudService
Properties​
IsLoaded​
Gets a value indicating whether the local players data is loaded.
bool IsLoaded { get; }
Remarks​
PlayerState is separate from Dalamud.Plugin.Services.IObjectTable.LocalPlayer, and as such the game object might not exist when it's loaded.
CharacterName​
Gets the name of the local character.
string CharacterName { get; }
EntityId​
Gets the entity ID of the local character.
uint EntityId { get; }
ContentId​
Gets the content ID of the local character.
ulong ContentId { get; }
CurrentWorld​
Gets the World row for the local character's current world.
RowRef<World> CurrentWorld { get; }
HomeWorld​
Gets the World row for the local character's home world.
RowRef<World> HomeWorld { get; }
Sex​
Gets the sex of the local character.
Sex Sex { get; }
Race​
Gets the Race row for the local character.
RowRef<Race> Race { get; }
Tribe​
Gets the Tribe row for the local character.
RowRef<Tribe> Tribe { get; }
ClassJob​
Gets the ClassJob row for the local character's current class/job.
RowRef<ClassJob> ClassJob { get; }
Level​
Gets the current class/job's level of the local character.
short Level { get; }
IsLevelSynced​
Gets a value indicating whether the local character's level is synced.
bool IsLevelSynced { get; }
EffectiveLevel​
Gets the effective level of the local character, taking level sync into account.
short EffectiveLevel { get; }
GuardianDeity​
Gets the GuardianDeity row for the local character.
RowRef<GuardianDeity> GuardianDeity { get; }
BirthMonth​
Gets the birth month of the local character.
byte BirthMonth { get; }
BirthDay​
Gets the birth day of the local character.
byte BirthDay { get; }
FirstClass​
Gets the ClassJob row for the local character's starting class.
RowRef<ClassJob> FirstClass { get; }
StartTown​
Gets the Town row for the local character's starting town.
RowRef<Town> StartTown { get; }
BaseStrength​
Gets the base strength of the local character.
int BaseStrength { get; }
BaseDexterity​
Gets the base dexterity of the local character.
int BaseDexterity { get; }
BaseVitality​
Gets the base vitality of the local character.
int BaseVitality { get; }
BaseIntelligence​
Gets the base intelligence of the local character.
int BaseIntelligence { get; }
BaseMind​
Gets the base mind of the local character.
int BaseMind { get; }
BasePiety​
Gets the piety mind of the local character.
int BasePiety { get; }
GrandCompany​
Gets the GrandCompany row for the local character's current Grand Company affiliation.
RowRef<GrandCompany> GrandCompany { get; }
HomeAetheryte​
Gets the Aetheryte row for the local player's home aetheryte.
RowRef<Aetheryte> HomeAetheryte { get; }
FavoriteAetherytes​
Gets an array of Aetheryte rows for the local player's favourite aetherytes.
IReadOnlyList<RowRef<Aetheryte>> FavoriteAetherytes { get; }
FreeAetheryte​
Gets the Aetheryte row for the local player's free aetheryte.
RowRef<Aetheryte> FreeAetheryte { get; }
BaseRestedExperience​
Gets the amount of rested experience available to the local player.
uint BaseRestedExperience { get; }
PlayerCommendations​
Gets the amount of received player commendations of the local player.
short PlayerCommendations { get; }
DeliveryLevel​
Gets the Carrier Level of Delivery Moogle Quests of the local player.
byte DeliveryLevel { get; }
MentorVersion​
Gets the mentor version of the local player.
MentorVersion MentorVersion { get; }
IsMentor​
Gets a value indicating whether the local player is any kind of Mentor (Battle or Trade Mentor).
bool IsMentor { get; }
IsBattleMentor​
Gets a value indicating whether the local player is a Battle Mentor.
bool IsBattleMentor { get; }
IsTradeMentor​
Gets a value indicating whether the local player is a Trade Mentor.
bool IsTradeMentor { get; }
IsNovice​
Gets a value indicating whether the local player is a novice (aka. Sprout or New Adventurer).
bool IsNovice { get; }
Remarks​
Can be false if /nastatus was used to deactivate it.
IsReturner​
Gets a value indicating whether the local player is a returner.
bool IsReturner { get; }
IsAwayFromKeyboard​
Gets a value indicating whether the Away from Keyboard status is currently active for the local player.
bool IsAwayFromKeyboard { get; }
Methods​
GetAttribute(PlayerAttribute)​
Gets the value of an attribute of the local character.
int GetAttribute(PlayerAttribute attribute)
Returns​
System.Int32: The value of the specific attribute.
Parameters​
| Type | Name | Description |
|---|---|---|
| Dalamud.Game.Player.PlayerAttribute | attribute | The attribute to check. |
GetGrandCompanyRank(GrandCompany)​
Gets the Grand Company rank of the local character.
byte GetGrandCompanyRank(GrandCompany grandCompany)
Returns​
System.Byte: The Grand Company rank of the local character.
Parameters​
| Type | Name | Description |
|---|---|---|
Lumina.Excel.Sheets.GrandCompany | grandCompany | The Grand Company to check. |
GetClassJobLevel(ClassJob)​
Gets the level of the local character's class/job.
short GetClassJobLevel(ClassJob classJob)
Returns​
System.Int16: The level of the requested class/job.
Parameters​
| Type | Name | Description |
|---|---|---|
Lumina.Excel.Sheets.ClassJob | classJob | The ClassJob row to check. |
GetClassJobExperience(ClassJob)​
Gets the experience of the local character's class/job.
int GetClassJobExperience(ClassJob classJob)
Returns​
System.Int32: The experience of the requested class/job.
Parameters​
| Type | Name | Description |
|---|---|---|
Lumina.Excel.Sheets.ClassJob | classJob | The ClassJob row to check. |
GetDesynthesisLevel(ClassJob)​
Gets the desynthesis level of the local character's crafter job.
float GetDesynthesisLevel(ClassJob classJob)
Returns​
System.Single: The desynthesis level of the requested crafter job.
Parameters​
| Type | Name | Description |
|---|---|---|
Lumina.Excel.Sheets.ClassJob | classJob | The ClassJob row to check. |