Package noppes.npcs.api.handler.data
Interface IMagicData
-
public interface IMagicData
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addMagic(int id, float damage, float split)
void
clear()
Clears the Magicsfloat
getMagicDamage(int id)
float
getMagicSplit(int id)
boolean
hasMagic(int id)
boolean
isEmpty()
void
removeMagic(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
-
-