for (ItemStack itemStack : this.getModuleStacks())
{
if (itemStack.getItem() instanceof IInterdictionMatrixModule)
{
IInterdictionMatrixModule module = (IInterdictionMatrixModule) itemStack.getItem();
if (module.onDefend(this, entityLiving) || entityLiving.isDead)
{
break;
}
}
}