Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 2.0.5 instead.
Reason given by maintainers: There is a dupe glitch, would not recommend using until its updated

endstone-inventoryui

Virtual inventory plugin for Endstone

API

MenuType

Enum for menu container types:

  • MenuType.CHEST — single chest (27 slots)
  • MenuType.DOUBLE_CHEST — double chest (54 slots)
  • MenuType.DISPENSER — dispenser (9 slots)
  • MenuType.HOPPER — hopper (5 slots)

Menu

Menu(type: MenuType, name: str = "")

Properties:

  • inventory — the MenuInventory instance for this menu. Implements an API similar to Endstone's Inventory.
  • name — display name shown at the top of the menu
  • type — the MenuType used to create this menu

Methods:

  • set_name(name: str) — set the display name
  • set_listener(listener) — set the click callback (see MenuTransaction)
  • set_open_listener(listener) — callback when a player opens the menu: (player: Player) -> None
  • set_close_listener(listener) — callback when a player closes the menu: (player: Player) -> None
  • send_to(player: Player) — display the menu to a player. If the player already has a menu open, this menu is queued and shown after the current one closes.
  • close(player: Player) -> bool — close this menu for a player
  • close_all() — close this menu for all players currently viewing it
  • get_viewers() -> list[Player] — list players who currently have this menu open

MenuTransaction

Properties:

  • player — the player who clicked
  • slot — virtual inventory slot index
  • item_clicked — item in the virtual slot before the action
  • item_clicked_with — item in the other slot involved (player inventory or cursor)
  • action_type — the underlying ItemStackRequestActionType
  • source — source slot info from the request
  • destination — destination slot info from the request

Methods:

  • proceed() -> MenuTransactionResult — allow the transaction to proceed
  • discard() -> MenuTransactionResult — discard transaction

Usage

from endstone import Player
from endstone.inventory import ItemStack
from endstone_inventoryui import Menu, MenuType, MenuTransaction, MenuTransactionResult

menu = Menu(MenuType.CHEST)

menu.inventory.set_item(0, ItemStack("minecraft:diamond", 1))
menu.inventory.set_item(1, ItemStack("minecraft:emerald", 1))


def on_click(tr: MenuTransaction) -> MenuTransactionResult:
    if tr.slot == 0:
        tr.player.send_message("You clicked the diamond!")
        return tr.discard()
    elif tr.slot == 1:
        tr.player.send_message("You clicked the emerald!")
        return tr.discard()

    return tr.proceed()


menu.set_listener(on_click)
menu.send_to(player)

See the example plugin for a full project.

Metadata

Release files for endstone-inventoryui 2.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for endstone-inventoryui 2.0.6
File Size Uploaded
endstone_inventoryui-2.0.6.tar.gz 18.8 kB Details

Release files / endstone_inventoryui-2.0.6.tar.gz

Download URL endstone_inventoryui-2.0.6.tar.gz
Size 18.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f8ad0d7eb99665f5d74fb45caf21142e66f1431cfafe9ffeb67d0dde54bcee7d
BLAKE2b-256 checksum
How to use checksums
61c2ff799e4b344edc9190c2380aaf42bf30c10d84ccb8080aa620a3466260c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.0.6 This release

1 release file

2.0.5

1 release file

2.0.4

1 release file

2.0.3

1 release file

2.0.2

1 release file

2.0.1

1 release file

2.0.0

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.2

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page