Working away at the spell blocks

This commit is contained in:
WayofTime 2014-02-09 12:20:02 -05:00
parent 0716155b7d
commit 92e097eaa2
10 changed files with 535 additions and 116 deletions

View file

@ -46,6 +46,7 @@ public class EntitySpellProjectile extends Entity implements IProjectile
private boolean penetration = false;
public List<IProjectileUpdateEffect> updateEffectList = new ArrayList();
public List<SpellEffect> spellEffectList = new LinkedList();
private int blocksBroken = 0;
public EntitySpellProjectile(World par1World)
{
@ -286,6 +287,7 @@ public class EntitySpellProjectile extends Entity implements IProjectile
// }
par1NBTTagCompound.setTag("Effects", effectList);
par1NBTTagCompound.setInteger("blocksBroken", blocksBroken);
}
/**
@ -300,6 +302,7 @@ public class EntitySpellProjectile extends Entity implements IProjectile
inTile = par1NBTTagCompound.getByte("inTile") & 255;
inData = par1NBTTagCompound.getByte("inData") & 255;
inGround = par1NBTTagCompound.getByte("inGround") == 1;
blocksBroken = par1NBTTagCompound.getInteger("blocksBroken");
NBTTagList tagList = par1NBTTagCompound.getTagList("Effects");
@ -567,4 +570,14 @@ public class EntitySpellProjectile extends Entity implements IProjectile
{
this.spellEffectList = list;
}
public int getBlocksBroken()
{
return this.blocksBroken;
}
public void setBlocksBroken(int blocksBroken)
{
this.blocksBroken = blocksBroken;
}
}