# Inventory Name

### Overview

The `InventoryName` class provides a utility method for retrieving the name of a clicked inventory in a Minecraft Bukkit server environment. This class simplifies the process of accessing the title of the inventory view.

### Methods

#### `clickedInvName`

```java
public static String clickedInvName(InventoryView inventoryView)
```

Retrieves the name of the clicked inventory from the provided inventory view.

**Parameters**

* `inventoryView`: The inventory view representing the player's current view.

**Returns**

* A string containing the name of the clicked inventory.

**Description**

This method extracts and returns the title of the clicked inventory from the provided inventory view. It allows developers to easily access the name of the inventory that a player interacted with, enabling them to perform actions based on the inventory's identity.

### Notes

* The `InventoryName` class offers a convenient way to retrieve the name of the clicked inventory in Bukkit plugins.
* Developers can use the `clickedInvName` method to obtain the title of the inventory with which the player interacted.
* Accessing the inventory name enables plugin developers to implement context-sensitive logic based on the specific inventory being accessed by the player.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://glitchtechs.gitbook.io/galaxy/starapi-spigot-paper/inventory-utilities/inventory-name.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
