mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-14 19:04:53 +00:00
45 lines
880 B
Java
45 lines
880 B
Java
package noppes.npcs.api.handler.data;
|
|
|
|
public interface IMagicData {
|
|
|
|
/**
|
|
* @param id The ID of the Magic
|
|
*/
|
|
void removeMagic(int id);
|
|
|
|
/**
|
|
* @param id The ID of the Magic
|
|
* @return If the Magic exists
|
|
*/
|
|
boolean hasMagic(int id);
|
|
|
|
/**
|
|
* Clears the Magics
|
|
*/
|
|
void clear();
|
|
|
|
/**
|
|
* @return If the Magics are empty
|
|
*/
|
|
boolean isEmpty();
|
|
|
|
/**
|
|
* @param id The ID of the Magic
|
|
* @param damage The bonus damage for the Magic
|
|
* @param split The split of the Magic
|
|
*/
|
|
void addMagic(int id, float damage, float split);
|
|
|
|
/**
|
|
* @param id The ID of the Magic
|
|
* @return The bonus damage for the Magic
|
|
*/
|
|
float getMagicDamage(int id);
|
|
|
|
/**
|
|
* @param id The ID of the Magic
|
|
* @return The split of the Magic
|
|
*/
|
|
float getMagicSplit(int id);
|
|
}
|