pub fn use_item(
player: &Player,
world: &Arc<World>,
hand: InteractionHand,
) -> InteractionResultExpand description
Handles using an item (general usage like right-clicking air).
This implements logic similar to ServerPlayerGameMode.useItem().