mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-26 23:03:21 +00:00
1.7.2 commit
This commit is contained in:
1 parent
92e097eaa2
commit
9aaa65feb4
548 files changed
+46982
-2
No files matched your search
@@ -0,0 +1,30 @@
|
||||
package WayofTime.alchemicalWizardry.common.tileEntity;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.spell.complex.SpellModifier;
|
||||
import WayofTime.alchemicalWizardry.common.spell.complex.SpellModifierDefault;
|
||||
import WayofTime.alchemicalWizardry.common.spell.complex.SpellModifierDefensive;
|
||||
import WayofTime.alchemicalWizardry.common.spell.complex.SpellModifierEnvironmental;
|
||||
import WayofTime.alchemicalWizardry.common.spell.complex.SpellModifierOffensive;
|
||||
import WayofTime.alchemicalWizardry.common.spell.complex.SpellParadigm;
|
||||
|
||||
public class TESpellModifierBlock extends TESpellBlock
|
||||
{
|
||||
@Override
|
||||
protected void applySpellChange(SpellParadigm parad)
|
||||
{
|
||||
parad.modifyBufferedEffect(this.getSpellModifier());
|
||||
}
|
||||
|
||||
public SpellModifier getSpellModifier()
|
||||
{
|
||||
int meta = worldObj.getBlockMetadata(xCoord, yCoord, zCoord);
|
||||
switch(meta)
|
||||
{
|
||||
case 0: return new SpellModifierDefault();
|
||||
case 1: return new SpellModifierOffensive();
|
||||
case 2: return new SpellModifierDefensive();
|
||||
case 3: return new SpellModifierEnvironmental();
|
||||
}
|
||||
return new SpellModifierDefault();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user