TheSkills

Events

  • CritDamageEvent

  • EntityFortunePerkEvent

  • FerocityDamageEvent

  • ItemFortunePerkEvent

  • MagicFindEvent

  • SkillsLevelUPEvent

  • SkillsXPGainEvent

API

package com.qualityplus.skills.api;

public interface TheSkillsAPI {
    /**
     * Set Stats to an item
     * 
     * @param itemStack ItemStack
     * @param stats     Map with stats to add
     * @return Item with stats
     */
    ItemStack setItemStats(ItemStack itemStack, Map<Stat, Integer> stats);

    /**
     * Get Stats of an item
     * 
     * @param itemStack ItemStack
     * @return Map with stats
     */
    Map<Stat, Integer> getItemStats(ItemStack itemStack);

    /**
     * Service to manage Player Skills
     * 
     * @return SkillsService
     */
    SkillsService getSkillsService();

    /**
     * 
     * @return Plugin Instance
     */
    Plugin getPlugin();
}
public class AddSkillExample {
    public void addSkillExampleMethod(){
        Skill skill = new ExampleSkill();
        
        skill.register();
    }
    
    private static class ExampleSkill extends Skill{

    }
}

Last updated