Class EntityAttackEvent

java.lang.Object
net.minestom.server.event.Event
net.minestom.server.event.entity.EntityAttackEvent

public class EntityAttackEvent
extends Event
Called when a player does a left click on an entity or with EntityCreature.attack(Entity).
  • Constructor Summary

    Constructors 
    Constructor Description
    EntityAttackEvent​(Entity source, Entity target)  
  • Method Summary

    Modifier and Type Method Description
    Entity getSource()  
    Entity getTarget()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait