Interface SkillBonus
-
- All Known Implementing Classes:
AgilityBonus,ConstructionBonus,FarmingBonus,FiremakingBonus,FishingBonus,MiningBonus,PrayerBonus,RunecraftBonus,SmithingBonus,WoodcuttingBonus
public interface SkillBonusAn object representing a skill bonus, such as from a skilling outfit or activity granting boosted xp.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Set<? extends SkillBonus>getCanBeStackedWith()Gets the list of skill bonuses this skill bonus can be stacked with.StringgetName()Gets the name of this skill bonus.floatgetValue()Gets the multiplier for this skill bonus.
-
-
-
Method Detail
-
getName
String getName()
Gets the name of this skill bonus.- Returns:
- The name of this skill bonus.
-
getValue
float getValue()
Gets the multiplier for this skill bonus. When multiplied with the skill action XP value, it yields the total amount of xp granted for that action. (eg.{@link SkillAction#getXp()} * {@link #getValue()}yields the full amount of xp gained)- Returns:
- The skill bonus multiplier.
-
getCanBeStackedWith
default Set<? extends SkillBonus> getCanBeStackedWith()
Gets the list of skill bonuses this skill bonus can be stacked with.- Returns:
- List of stackable skill bonuses
-
-