2016-10-22 16:11:30 -04:00
|
|
|
package WayofTime.bloodmagic.alchemyArray;
|
|
|
|
|
2018-02-15 18:49:01 -08:00
|
|
|
import WayofTime.bloodmagic.iface.ISigil;
|
2017-08-15 21:30:48 -07:00
|
|
|
import net.minecraft.nbt.NBTTagCompound;
|
|
|
|
import net.minecraft.tileentity.TileEntity;
|
2016-10-22 16:11:30 -04:00
|
|
|
|
2017-08-15 21:30:48 -07:00
|
|
|
public class AlchemyArrayEffectSigil extends AlchemyArrayEffect {
|
2016-10-22 16:11:30 -04:00
|
|
|
private final ISigil sigil;
|
|
|
|
|
2017-08-15 21:30:48 -07:00
|
|
|
public AlchemyArrayEffectSigil(String key, ISigil sigil) {
|
2016-10-22 16:11:30 -04:00
|
|
|
super(key);
|
|
|
|
this.sigil = sigil;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2017-08-15 21:30:48 -07:00
|
|
|
public boolean update(TileEntity tile, int ticksActive) {
|
2016-10-22 16:11:30 -04:00
|
|
|
//TODO: Need particles.
|
2017-08-15 21:30:48 -07:00
|
|
|
if (sigil.hasArrayEffect()) {
|
2016-10-22 16:11:30 -04:00
|
|
|
sigil.performArrayEffect(tile.getWorld(), tile.getPos());
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2017-08-15 21:30:48 -07:00
|
|
|
public void writeToNBT(NBTTagCompound tag) {
|
2016-10-22 16:11:30 -04:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2017-08-15 21:30:48 -07:00
|
|
|
public void readFromNBT(NBTTagCompound tag) {
|
2016-10-22 16:11:30 -04:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2017-08-15 21:30:48 -07:00
|
|
|
public AlchemyArrayEffect getNewCopy() {
|
2016-10-22 16:11:30 -04:00
|
|
|
return new AlchemyArrayEffectSigil(key, sigil);
|
|
|
|
}
|
|
|
|
}
|