InventoryHub

interface InventoryHub

Hub interface for packet-based inventory and GUI manipulation.

Provides methods for faking inventory titles, item slots, and progress bars in container interfaces.

Inheritors

Functions

Link copied to clipboard
abstract fun fakeFurnaceProgress(player: Player, cookProgress: Int, fuelProgress: Int)

Fakes the progress bars (cook time, fuel) in a furnace GUI for the player.

Link copied to clipboard
abstract fun fakeItemSlot(player: Player, windowId: Int, slot: Int, item: ItemStack)

Fakes an item in a specific inventory slot for the player.

Link copied to clipboard
abstract fun setItemCooldown(player: Player, item: Material, ticks: Int)

Sets a fake item cooldown for the player.

Link copied to clipboard
abstract fun updateInventoryTitle(player: Player, title: String)

Updates the title of the player's currently open inventory via a packet.