Class EntityAttackEvent

java.lang.Object
me.hackware.api.event.Event
me.hackware.api.event.impl.EntityAttackEvent

public class EntityAttackEvent extends Event
Fired when the local player attacks an entity. Cancel to prevent the attack.
  • Constructor Details

    • EntityAttackEvent

      public EntityAttackEvent(net.minecraft.world.entity.Entity entity)
  • Method Details

    • getEntity

      public net.minecraft.world.entity.Entity getEntity()