openInventory

public abstract InventoryView openInventory(Inventory inventory)

Opens an inventory window with the specified inventory on the top and the player's inventory on the bottom.

Return

The newly opened inventory view

Parameters

inventory

The inventory to open


public abstract void openInventory(InventoryView inventory)

Opens an inventory window to the specified inventory view.

Parameters

inventory

The view to open