⭐
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

Filler

Add a filler to all your GUI's

Overview

The Filler class provides a utility method for adding filler items to empty slots in an inventory. Filler items are typically used to visually separate or organize the contents of an inventory GUI.

Methods

addFillerToInventory

public static void addFillerToInventory(Inventory inventory, Material fillerMaterial)

Adds filler items to empty slots in the specified inventory.

Parameters

  • inventory: The inventory to which filler items will be added.

  • fillerMaterial: The material of the filler item.

Description

This method iterates over each slot in the inventory. If a slot is empty or contains air, it adds a filler item with the specified material to that slot.

Notes

  • The Filler class simplifies the process of adding filler items to inventories in Minecraft Bukkit server environments.

  • Developers can use the addFillerToInventory method to visually organize inventory GUIs by filling empty slots with specified filler items.

  • Filler items are typically used to improve the visual appearance and usability of inventory interfaces, making them more intuitive for players.

PreviousBook GUINextInventory Items

Last updated 1 year ago

🌟
📂
🎞️