runelite-api: change getBoosted/RealSkillLevel to take a Skill

This commit is contained in:
Adam
2017-05-03 19:23:58 -04:00
parent 685771ea6b
commit 747af7cb24
2 changed files with 10 additions and 16 deletions

View File

@@ -62,19 +62,16 @@ public class Client
.toArray(size -> new Player[size]);
}
public int[] getBoostedSkillLevels()
public int getBoostedSkillLevel(Skill skill)
{
return client.getBoostedSkillLevels();
int[] boostedLevels = client.getBoostedSkillLevels();
return boostedLevels[skill.ordinal()];
}
public int[] getRealSkillLevels()
public int getRealSkillLevel(Skill skill)
{
return client.getRealSkillLevels();
}
public int[] getSkillExperiences()
{
return client.getSkillExperiences();
int[] realLevels = client.getRealSkillLevels();
return realLevels[skill.ordinal()];
}
public void sendGameMessage(String message)