Carson McManus
|
4574e18d49
|
inventory client events (#66)
* finish packet definition for ClickContainer
* add CloseScreen client event
* add DropItem client event
* add SetSlotCreative client event
* implement ClientEvent::CloseScreen
* ClientEvent::DropItem
* implement ClientEvent::SetSlotCreative
* cargo fmt
* add inventory_piano example to demo inventory slot click events
* lints
* implement ClickContainer event
* inventory_piano: deduplicate note playing logic
* add DropItemStack client event
* implement ClientEvent::DropItemStack
* adjust logging
* tweak inventory_piano example, send text to chat instead of stdout
* fix lint
* move Slot outside of protocol module
* avoid cloning slot in ClickContainer packet handler
* fix inventory_piano example
|
2022-09-19 11:29:41 -07:00 |
|