mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 00:14:44 +00:00
Magic Components for NPCs and Players
This commit is contained in:
1 parent
18d72cc96c
commit
3593a09d1d
3 files changed
+457
-72
No files matched your search
@@ -0,0 +1,44 @@
|
||||
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);
|
||||
}
|
||||
Reference in new issue
Block a user