Magic Components for NPCs and Players

This commit is contained in:
Kam committed 2025-03-05 19:40:09 -05:00
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);
}