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.
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 TypeMethodDescriptionnet.minecraft.world.InteractionResultonUseItem(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)
-