Package noppes.npcs.api.handler.data
Interface IMagicData
-
public interface IMagicData
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddMagic(int id, float damage, float split)voidclear()Clears the MagicsfloatgetMagicDamage(int id)floatgetMagicSplit(int id)booleanhasMagic(int id)booleanisEmpty()voidremoveMagic(int id)
-
-
-
Method Detail
-
removeMagic
void removeMagic(int id)
- Parameters:
id- The ID of the Magic
-
hasMagic
boolean hasMagic(int id)
- Parameters:
id- The ID of the Magic- Returns:
- If the Magic exists
-
clear
void clear()
Clears the Magics
-
isEmpty
boolean isEmpty()
- Returns:
- If the Magics are empty
-
addMagic
void addMagic(int id, float damage, float split)- Parameters:
id- The ID of the Magicdamage- The bonus damage for the Magicsplit- The split of the Magic
-
getMagicDamage
float getMagicDamage(int id)
- Parameters:
id- The ID of the Magic- Returns:
- The bonus damage for the Magic
-
getMagicSplit
float getMagicSplit(int id)
- Parameters:
id- The ID of the Magic- Returns:
- The split of the Magic
-
-