createButton

Creates a new inventory button with the specified item and click handler

Return

The created button instance

Since

2.0.0

Parameters

itemStack

The item to display for this button

onClick

The handler for click events on this button