interactBlock

fun interactBlock(hitResult: BlockHitResult, hand: InteractionHand = InteractionHand.MAIN_HAND, swingMode: SwingMode = SwingMode.DO_NOT_HIDE): InteractionResult

Simulated net.minecraft.world.phys.HitResult.Type.BLOCK branch in vanilla No fallback MultiPlayerGameMode.useItem call

Return

MultiPlayerGameMode.useItemOn result

See also

Minecraft.startUseItem