> For the complete documentation index, see [llms.txt](https://rqndomhax.gitbook.io/versaapi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rqndomhax.gitbook.io/versaapi/inventorymanager/opening-the-inventory.md).

# Opening the inventory

{% hint style="danger" %}
You need to have registered the inventory
{% endhint %}

{% content-ref url="/pages/-MkJ7Y4VGcFzpHh1iz9N" %}
[Registering an inventory](/versaapi/inventorymanager/registering-an-inventory.md)
{% endcontent-ref %}

```java
RInventory inventory;     // You can open it using RInventory
String inventoryName;     // You also can open it using the inventory's name
Player player;            // You need to have the player

inventoryManager.openInventory(inventory, player); // Here is the first way to open the inventory from the RInventory
inventoryManager.openInventory(inventoryName, player); // Here is the other way to open it with the inventory's name
```
