| Package | Description |
|---|---|
| com.elmakers.mine.bukkit.api.item | |
| com.elmakers.mine.bukkit.api.magic | |
| com.elmakers.mine.bukkit.api.spell | |
| com.elmakers.mine.bukkit.api.wand |
| Modifier and Type | Method and Description |
|---|---|
void |
Cost.deduct(Mage mage,
CasterProperties caster,
CostReducer reducer)
Deduct these costs from the specified Mage
|
void |
Cost.deduct(Mage mage,
Wand wand,
CostReducer reducer)
Deduct these costs from the specified Mage
|
String |
Cost.getDescription(Messages messages,
CostReducer reducer)
Get a human-readable description of this cost.
|
String |
Cost.getFullDescription(Messages messages,
CostReducer reducer)
Get a human-readable description of this cost.
|
boolean |
Cost.has(Mage mage,
CasterProperties caster,
CostReducer reducer)
Whether or not a mage has the required costs.
|
boolean |
Cost.has(Mage mage,
Wand wand,
CostReducer reducer)
Whether or not a mage has the required costs.
|
boolean |
Cost.isEmpty(CostReducer reducer)
Whether or not this record has any costs associated with it.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Mage
A Mage represents any entity that may cast spells.
|
interface |
MageClass |
| Modifier and Type | Interface and Description |
|---|---|
interface |
MageSpell
This interface and its hierarchy represent the complete Spell
interface that must be implemented to make a new custom spell
class from scratch.
|
interface |
Spell
Represents a Spell that may be cast by a Mage.
|
interface |
SpellTemplate
A Spell template, as defined in the spells configuration files.
|
| Modifier and Type | Method and Description |
|---|---|
int |
CastingCost.getMana(CostReducer reducer)
Returns the Mana amount to deduct
|
int |
CastingCost.getXP(CostReducer reducer)
Deprecated.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Wand
Represents a Wand that a Mage may use to cast a Spell.
|
Copyright © 2021 elMakers. All rights reserved.