Interface InteractionEvent.ClientRightClickAir

Enclosing interface:
InteractionEvent

public static interface InteractionEvent.ClientRightClickAir
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    click(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand)
    Invoked whenever a player right clicks the air.
  • Method Details

    • click

      void click(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand)
      Invoked whenever a player right clicks the air. This only occurs on the client. Equivalent to Forge's PlayerInteractEvent.RightClickEmpty event.
      Parameters:
      player - The player. Always LocalPlayer
      hand - The hand used.