
Finished the spell blocks enough to allow further expansion. Need to work on textures, as well as the orientation mechanics of the blocks. Also need to look at Vazkii's block renderer to verify a few feature additions.
34 lines
837 B
Java
34 lines
837 B
Java
package WayofTime.alchemicalWizardry.common.tileEntity;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.world.World;
|
|
import WayofTime.alchemicalWizardry.common.spell.complex.SpellParadigm;
|
|
import WayofTime.alchemicalWizardry.common.spell.complex.SpellParadigmSelf;
|
|
|
|
public class TESpellParadigmBlock extends TESpellBlock
|
|
{
|
|
public SpellParadigm getSpellParadigm()
|
|
{
|
|
return new SpellParadigmSelf();
|
|
}
|
|
|
|
@Override
|
|
protected void applySpellChange(SpellParadigm parad)
|
|
{
|
|
return;
|
|
}
|
|
|
|
public boolean canInputRecieve()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public void castSpell(World world, EntityPlayer entity, ItemStack spellCasterStack)
|
|
{
|
|
SpellParadigm parad = this.getSpellParadigm();
|
|
this.modifySpellParadigm(parad);
|
|
parad.castSpell(world, entity, spellCasterStack);
|
|
}
|
|
}
|