valence/examples
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
..
building.rs add building example (#49) 2022-09-13 18:30:45 -07:00
combat.rs Document and rename default_client_event to handle_event_default. 2022-09-11 21:59:05 -07:00
conway.rs Document and rename default_client_event to handle_event_default. 2022-09-11 21:59:05 -07:00
cow_sphere.rs Document and rename default_client_event to handle_event_default. 2022-09-11 21:59:05 -07:00
entity_raycast.rs Add Giant to entity_raycast example 2022-09-17 23:30:54 -07:00
inventory_piano.rs inventory client events (#66) 2022-09-19 11:29:41 -07:00
resource_pack.rs Update resource pack link and add SHA-1 hash 2022-09-17 19:40:26 -07:00
terrain.rs Document and rename default_client_event to handle_event_default. 2022-09-11 21:59:05 -07:00