Working on small parts of the spell system

This commit is contained in:
WayofTime 2014-01-31 17:21:03 -05:00
parent e159a6795c
commit 2bb7a5fffb
9 changed files with 339 additions and 10 deletions

View file

@ -3,6 +3,7 @@ package WayofTime.alchemicalWizardry.common.tileEntity;
import WayofTime.alchemicalWizardry.common.spell.complex.SpellParadigm;
import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellEffect;
import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellEffectFire;
import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellEffectIce;
public class TESpellEffectBlock extends TESpellBlock
{
@ -14,6 +15,12 @@ public class TESpellEffectBlock extends TESpellBlock
public SpellEffect getSpellEffect()
{
int meta = worldObj.getBlockMetadata(xCoord, yCoord, zCoord);
switch(meta)
{
case 0: return new SpellEffectFire();
case 1: return new SpellEffectIce();
}
return new SpellEffectFire();
}
}