---
description: This page goes over the onAttack event.
---

# Attack event

### **`getTarget(): EntityLivingBase`**

Returns the target.
