Added interfaces for custom Spell Paradigms.

This commit is contained in:
WayofTime 2014-11-16 19:24:26 -05:00
parent 8e1c8460be
commit bc50e92fa3
4 changed files with 28 additions and 2 deletions

View file

@ -9,8 +9,9 @@ import WayofTime.alchemicalWizardry.api.spell.SpellParadigmMelee;
import WayofTime.alchemicalWizardry.api.spell.SpellParadigmProjectile;
import WayofTime.alchemicalWizardry.api.spell.SpellParadigmSelf;
import WayofTime.alchemicalWizardry.api.spell.SpellParadigmTool;
import WayofTime.alchemicalWizardry.api.tile.ISpellParadigmTile;
public class TESpellParadigmBlock extends TESpellBlock
public class TESpellParadigmBlock extends TESpellBlock implements ISpellParadigmTile
{
public SpellParadigm getSpellParadigm()
{
@ -40,6 +41,7 @@ public class TESpellParadigmBlock extends TESpellBlock
return false;
}
@Override
public void castSpell(World world, EntityPlayer entity, ItemStack spellCasterStack)
{
SpellParadigm parad = this.getSpellParadigm();