Enum ThievingAction

    • Method Detail

      • values

        public static ThievingAction[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ThievingAction c : ThievingAction.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ThievingAction valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getName

        public String getName()
        Description copied from interface: NamedSkillAction
        Gets the name of this skill action, usually the item or object created, or the spell cast.
        Specified by:
        getName in interface NamedSkillAction
        Returns:
        The name of this skill action.
      • getLevel

        public int getLevel()
        Description copied from interface: SkillAction
        Gets the level required to perform this skill action.
        Specified by:
        getLevel in interface SkillAction
        Returns:
        The level required to perform this skill action.
      • getXp

        public float getXp()
        Description copied from interface: SkillAction
        Gets the amount of xp granted for performing this skill action.
        Specified by:
        getXp in interface SkillAction
        Returns:
        The amount of xp granted for performing this skill action.
      • getIcon

        public int getIcon()
        Description copied from interface: SkillAction
        Gets the item icon ID for this skill action, if applicable.

        Note: Either this method or SkillAction.getSprite() will always return -1, and the other will return some value 0 or greater.

        Specified by:
        getIcon in interface SkillAction
        Returns:
        The item icon ID of this skill action, or -1 if its icon should be represented using a sprite.
        See Also:
        ItemID, SkillAction.getSprite()