Interface InteractionEvents.UseItem

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.UseItem
A player is about to use (right-click) the item in a hand, aimed at no block or entity. Answered as InteractionEvents.UseBlock.
  • Method Summary

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

    • onUseItem

      net.minecraft.world.InteractionResult onUseItem(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand)