Interface InteractionEvents.AttackEntity

Enclosing class:
InteractionEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface InteractionEvents.AttackEntity
A player is about to attack an entity; interrupting stops the attack.
  • Method Summary

    Modifier and Type
    Method
    Description
    onAttackEntity(net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.Entity target)
     
  • Method Details

    • onAttackEntity

      EventResult onAttackEntity(net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.Entity target)