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.2.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.2-py2.py3-none-any.whl (19.6 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: endstone_inventoryui-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 0a487800a8893ff5fb1b3ba64ac8ae722459f7884d12d2f34b107e65b9e05276
MD5 e46a37a4c91099e187059d5da9a29c0c
BLAKE2b-256 ba60be7083d8374460491ee5dcff2a6f42cc55a9e5b084529ac97a9b690aeada

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for endstone_inventoryui-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8c77adababc863b5bcba94345870ff2f50f48775da23b29bb7e120fb527ce7ca
MD5 8c4982d53aed70561c6f507eb72c8720
BLAKE2b-256 14f48a05bcf0d5b8bb9e45cb900ac7dc7dee10b8eda0a0952a252960904a801f

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