TheCore
  • Introduction
  • Features
  • Commands and Permissions
  • Placeholders
  • TheSkills
    • Skills
    • Stats
    • Perks
  • TheCrafting
  • TheEnchanting
  • TheMinions
    • Adding Custom Minion
    • Minion Type
    • Minion Layout
  • TheBank
  • TheAuction
  • TheTrades
  • TheAnvil
  • TheAlchemy
  • TheSouls
  • ThePets
    • Adding Custom Pet
    • Adding Custom Pet with ModelEngine
  • TheDragon
    • Dragon Events
    • Setting Up Schematic
    • Setting Up Arena
    • Setting Up Guardians
  • Dev API
    • TheSkills
    • TheTrades
Powered by GitBook
On this page
  • Events
  • API
  1. Dev API

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{

    }
}
PreviousDev APINextTheTrades

Last updated 2 years ago