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.
A player is about to attack an entity; interrupting stops the attack.
-
Method Summary
Modifier and TypeMethodDescriptiononAttackEntity(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)
-