Package net.minestom.server.event.entity
Class EntityAttackEvent
java.lang.Object
net.minestom.server.event.entity.EntityAttackEvent
- All Implemented Interfaces:
Event
,EntityEvent
,EntityInstanceEvent
,InstanceEvent
Called when a player does a left click on an entity or with
EntityCreature.attack(Entity)
.-
Constructor Details
-
EntityAttackEvent
-
-
Method Details
-
getEntity
Description copied from interface:EntityEvent
Gets the entity of this event.- Specified by:
getEntity
in interfaceEntityEvent
- Returns:
- the entity
-
getTarget
- Returns:
- the target of the attack
-