Interface InteractionEvents.UseEntity

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.UseEntity
A player is about to use (right-click) an entity. Answered as InteractionEvents.UseBlock.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.InteractionResult
    onUseEntity(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.entity.Entity target)
     
  • Method Details

    • onUseEntity

      net.minecraft.world.InteractionResult onUseEntity(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.entity.Entity target)