Skip to main content

use_item

Function use_item 

Source
pub fn use_item(
    player: &Player,
    world: &Arc<World>,
    hand: InteractionHand,
) -> InteractionResult
Expand description

Handles using an item (general usage like right-clicking air).

This implements logic similar to ServerPlayerGameMode.useItem().