| Modifier and Type | Method and Description |
|---|---|
Spell |
CastContext.getSpell() |
| Modifier and Type | Method and Description |
|---|---|
void |
SpellAction.getParameterNames(Spell spell,
Collection<String> parameters) |
void |
SpellAction.getParameterOptions(Spell spell,
String parameterKey,
Collection<String> examples) |
void |
SpellAction.initialize(Spell spell,
org.bukkit.configuration.ConfigurationSection baseParameters) |
| Modifier and Type | Method and Description |
|---|---|
Spell |
SpellBatch.getSpell() |
| Modifier and Type | Method and Description |
|---|---|
void |
UndoList.setSpell(Spell spell) |
| Modifier and Type | Method and Description |
|---|---|
Spell |
PreCastEvent.getSpell() |
Spell |
StartCastEvent.getSpell() |
Spell |
CastEvent.getSpell() |
| Constructor and Description |
|---|
CastEvent(Mage mage,
Spell spell,
SpellResult result) |
PreCastEvent(Mage mage,
Spell spell) |
StartCastEvent(Mage mage,
Spell spell,
SpellResult result,
boolean success) |
| Modifier and Type | Method and Description |
|---|---|
Spell |
CasterProperties.getSpell(String spellKey)
Returns a Spell for a given spell key, if this caster has the spell.
|
| Modifier and Type | Method and Description |
|---|---|
Set<Spell> |
Mage.getActiveSpells() |
Collection<Spell> |
Mage.getSpells()
Return all of the Spell objects registered to this Mage.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Mage.activateSpell(Spell spell)
Set a Spell as "active".
|
void |
Mage.deactivateSpell(Spell spell)
Deactivate a currently active spell.
|
void |
Mage.debugPermissions(org.bukkit.command.CommandSender sender,
Spell spell) |
void |
Mage.enableFallProtection(int ms,
int count,
Spell protector) |
void |
Mage.enableFallProtection(int ms,
Spell protector) |
boolean |
Mage.hasCastPermission(Spell spell) |
void |
Mage.onCast(Spell spell,
SpellResult result)
This should be called by a Spell upon
casting, to notify the Mage that it cast a spell.
|
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
Spell |
SpellTemplate.createSpell()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
CastingCost.has(Spell spell)
Check to see if a given spell cast should succeed, given that
it has any required costs.
|
static boolean |
PrerequisiteSpell.isSpellSatisfyingPrerequisite(Spell spell,
PrerequisiteSpell prerequisiteSpell) |
void |
CastingCost.refund(Spell spell)
Refund this cost, giving it back to the caster of the target spell.
|
void |
CastingCost.use(Spell spell)
Use this cost, taking it from the caster of the target spell
|
| Modifier and Type | Method and Description |
|---|---|
Spell |
Wand.getActiveSpell() |
Spell |
Wand.getSpell(String key) |
Spell |
Wand.getSpell(String key,
Mage mage) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Wand.cast(Spell spell) |
Copyright © 2021 elMakers. All rights reserved.