⭐
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 Skulls

Add skulls to inventory

Overview

The InventorySkulls class provides a utility method for adding player skull items to an inventory in a Minecraft Bukkit server environment. This class simplifies the process of creating and customizing player skull items with specific textures.

Methods

addSkullToInventory

public static void addSkullToInventory(Inventory inventory, String url, int amount, int slot, String itemName, String... lore)

Adds a player skull item with a custom texture to the specified inventory.

Parameters

  • inventory: The inventory to which the skull item will be added.

  • url: The URL of the custom texture for the player skull.

  • amount: The amount of skull items to add to the inventory.

  • slot: The slot in the inventory where the skull item will be placed.

  • itemName: The display name of the skull item.

  • lore: The lore lines for the skull item.

Description

This method creates a player skull item with a custom texture specified by the provided URL and adds it to the specified inventory. It allows developers to easily customize player skull items with unique textures, display names, and lore.

Notes

  • The InventorySkulls class simplifies the process of adding player skull items to inventories in Bukkit plugins.

  • Developers can use the addSkullToInventory method to add custom player skull items with specific textures, names, and lore to inventories.

  • Customizing player skull items allows plugin developers to create visually appealing and interactive inventory interfaces for players.

PreviousInventory NameNextMessage Utilities

Last updated 1 year ago

🌟
📂
💀