Skip to main content

Inventory UI plugin for Endstone servers

Project description

endstone-inventoryui

Read-only Inventory UI plugin for Endstone

API

MenuType

Enum for menu container types:

  • MenuType.CHEST - Single chest (27 slots)
  • MenuType.DOUBLE_CHEST - Double chest (54 slots)
  • MenuType.HOPPER - Hopper (5 slots)

Menu

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

Properties:

  • inventory - The UIInventory instance (similar to Endstone Inventory)

Methods:

  • set_name(name: str) - Set display name
  • set_listener(listener) - Slot interact callback: (player: Player, slot: int, item: ItemStack, inventory: UIInventory) -> None
  • set_open_listener(listener) - Set menu open callback: (player: Player) -> None
  • set_close_listener(listener) - Set menu close callback: (player: Player) -> None
  • send_to(player: Player) - Display menu to player
  • close(player: Player) -> bool - Close this menu for player

Usage

Check out the example plugin

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

endstone_inventoryui-1.0.1.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

endstone_inventoryui-1.0.1-py2.py3-none-any.whl (19.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file endstone_inventoryui-1.0.1.tar.gz.

File metadata

  • Download URL: endstone_inventoryui-1.0.1.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for endstone_inventoryui-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6e8077e312e7fe47339f1da57ed219468d7202ca4588500ea110067eab702bca
MD5 9f14934f27901055a455747ff99a02a9
BLAKE2b-256 c20c70ca540cbae290834fb49e3045174f4fdaee72d28e1932ee0a3d6ab60de0

See more details on using hashes here.

File details

Details for the file endstone_inventoryui-1.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for endstone_inventoryui-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 91208fb08a7af12759370774f7fa9eec5cf7ef2272662cf674a2c7fbb8473f61
MD5 b7613aad80c63159c627e8e5808fddd4
BLAKE2b-256 b8b3a2411f666cbec151de7b9438da2cbcbbfe20901b4b5785e726cab57389f0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page