Interface SkillAction
-
- All Known Subinterfaces:
ItemSkillAction,NamedSkillAction
- All Known Implementing Classes:
AgilityAction,ConstructionAction,CookingAction,CraftingAction,FarmingAction,FiremakingAction,FishingAction,FletchingAction,HerbloreAction,HunterAction,MagicAction,MiningAction,PrayerAction,RunecraftAction,SmithingAction,ThievingAction,WoodcuttingAction
public interface SkillActionAn object representing a single skill action which grants some xp.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Set<? extends SkillBonus>getExcludedSkillBonuses()default intgetIcon()Gets the item icon ID for this skill action, if applicable.intgetLevel()Gets the level required to perform this skill action.StringgetName(ItemManager itemManager)Gets the name of this skill action, usually the item or object created, or the spell cast.default intgetSprite()Gets the sprite ID for this skill action, if applicable.floatgetXp()Gets the amount of xp granted for performing this skill action.default booleanisBonusApplicable(SkillBonus bonus)booleanisMembers(ItemManager itemManager)
-
-
-
Method Detail
-
getName
String getName(ItemManager itemManager)
Gets the name of this skill action, usually the item or object created, or the spell cast. This name may be fetched viaItemComposition.getMembersName()from some defined item ID or explicitly defined.- Parameters:
itemManager- Anitem managerinstance.- Returns:
- The name of this skill action.
-
getLevel
int getLevel()
Gets the level required to perform this skill action.- Returns:
- The level required to perform this skill action.
-
getXp
float getXp()
Gets the amount of xp granted for performing this skill action.- Returns:
- The amount of xp granted for performing this skill action.
-
getIcon
default int getIcon()
Gets the item icon ID for this skill action, if applicable.Note: Either this method or
getSprite()will always return-1, and the other will return some value0or greater.- Returns:
- The item icon ID of this skill action, or
-1if its icon should be represented using a sprite. - See Also:
ItemID,getSprite()
-
getSprite
default int getSprite()
Gets the sprite ID for this skill action, if applicable.Note: Either this method or
getIcon()will always return-1, and the other will return some value0or greater.
-
isBonusApplicable
default boolean isBonusApplicable(SkillBonus bonus)
- Returns:
trueif this skill action is affected by the specified skill bonus,falseotherwise.
-
isMembers
boolean isMembers(ItemManager itemManager)
-
getExcludedSkillBonuses
default Set<? extends SkillBonus> getExcludedSkillBonuses()
-
-