⭐
StarAPI Documentation
  • ⭐API Information
    • ❔About Our API's
    • ⬇️Installing Our API
  • 🌟StarAPI (Spigot/Paper)
    • 📂Abilities
      • ⏳Transmition
      • 🤯Implosion
      • 🏹MultiShot
    • 📂Builders
      • 👕Armor Builder
      • 📊Bossbar Builder
      • ☄️Command Builder
      • ⚔️Item Builder
      • 🧟‍♂️Mob Builder
      • 💯Scoreboard Builder
      • 🔗Webhook Builder
      • 🔨Message Builder
      • 🏗️Actionbar Builder
    • 📂Files
      • 📃Create Files
      • 📁Create Folders
      • 📖Read Files
      • 🖊️Write Files
    • 📂Inventory Utilities
      • 💎Animated Items
      • 📖Book Content
      • 📔Book GUI
      • 🎞️Filler
      • 🪁Inventory Items
      • 📝Inventory Name
      • 💀Inventory Skulls
    • 📂Message Utilities
      • 🤖Auto Responses
      • 🎨Message Colors
    • 📂Recipes
      • ⚒️Crafting Recipes
      • 🧑‍🍳Furnace Recipes
    • 📂Timers
      • 🕙Active Timers
      • ❌Cancel Timers
      • 🕙Delayed Timers
      • 🕐Create Timers
    • 📂Misc
      • 💀Give Skulls
      • 📈Progress Bars
      • ⬛Block Placer
Powered by GitBook
On this page
  • Overview
  • Methods
  • Notes
  1. StarAPI (Spigot/Paper)
  2. Inventory Utilities

Inventory Name

Detect the inventory name of the inventory you're using

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

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.

PreviousInventory ItemsNextInventory Skulls

Last updated 1 year ago

🌟
📂
📝