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
James P
e6f01e5e4d
Custom resource packs ( #68 )
...
Implements custom resource pack support.
Adds a `Client` method to set resource pack, and a `ClientEvent` for listening to resource pack status updates from clients.
2022-09-17 19:32:40 -07:00
Ryan
02b4b49c10
Remove packets.json
notice
2022-09-16 22:48:22 -07:00
EmperialDev
419d317736
Migrating the packets to wiki.vg ( #62 )
...
Addresses #56 . Migrating all the packet names to wiki.vg's instead of fabric's.
2022-09-16 21:29:48 -07:00
Ryan Johnson
0a75f103aa
Packet filtering ( #67 )
...
* Add `PacketName`
* Fix inefficiency in codec.rs
* Add regex argument to packet_inspector
* Reorder imports
* Make the regex arg optional
* Update README
2022-09-16 05:31:37 -07:00
Ryan Johnson
7cd3b6cd2d
Add inventory packets ( #57 )
...
Adds the inventory packets so we can use them with `packet_inspector`.
2022-09-14 14:18:04 -07:00
Nolan Rosen
adc927d319
Cleaner fix to #10 ( #52 )
2022-09-12 17:14:37 -07:00
Ryan
c15a9361f2
Make note about packet names matching packets.json
.
2022-09-10 17:01:42 -07:00
Ryan Johnson
fdedf74d29
Add clippy lints and format checks ( #46 )
...
The nightly rust toolchain is used because we are currently using unstable rustfmt settings.
2022-09-09 21:59:10 -07:00
Ryan
4920defe3e
Fix clippy issue
2022-09-09 17:56:16 -07:00
Sekky61
a80052097a
Added SetExperience and SetHealth packets ( #34 )
...
* Added `SetExperience` and `SetHealth` packets
Packets were tested
* Rename packets in accordance with `packets.json`
Renamed `SetExperience` to
`ExperienceBarUpdate` and `SetHealth` to `HealthUpdate`
* `set_level` and `set_health_and_food` functions
2022-09-09 17:54:09 -07:00
guac420
96f5614941
Add support for Slot data decoding ( #25 )
...
* Impl Seek for reader in Decode Trait
* Add support for Slot data type
* Update tests and rust fmt
* Add tests for Slot
Also fixed bugs I found while testing
* Update slot signature
* Resolved requested changes
Updated decode trait signature and removed unnecessary getters/setters in `Slot`
2022-09-08 21:39:08 -07:00
Carson McManus
2b3794da7e
Update definition for ChatMessage and CommandExecution ( #30 )
...
* Update ChatMessage definition, prevent typing in chat from kicking players
fixes #24
* Update definition for CommandExecution
2022-09-07 11:21:20 -07:00
Tristan F
10a8de3bbd
Add action bar support ( #15 )
...
* Action bar + conway
* Docs for action bar
* Apply suggestions
* fmt
2022-09-05 17:23:32 -07:00
Tristan F
df3e5b12bb
Add custom sound effect packet and sound example to conway ( #12 )
...
* Add custom sound effect packet, sound example
* Small logic cleanup
* More sound packets
* fmt
* Apply suggestions
2022-09-05 15:37:59 -07:00
Ryan
f7a35f356e
Update rust docs
2022-09-02 00:06:45 -07:00
Ryan
5fb46178dd
Don't hide the protocol module behind a feature
2022-08-31 19:20:49 -07:00
Ryan
3f150b4c8a
Document most items
2022-07-11 05:08:02 -07:00
Ryan
24cf864ed1
Don't export items arbitrarily at the crate root
2022-07-06 18:27:59 -07:00
Ryan
5fcde5f7ae
Implement title and subtitle
2022-07-06 00:16:07 -07:00
Ryan
3ac711ca74
Use idiomatic names
...
The Rust stdlib uses "Kind" instead of "Type".
2022-07-05 19:21:52 -07:00
Ryan
fcda380f2a
Improve entity event API
2022-07-05 18:08:40 -07:00
Ryan
0f8b906265
Make the packet inspector error resistant
2022-07-04 18:22:29 -07:00
Ryan
6c0eef1ae7
Add more client events
2022-07-04 15:51:28 -07:00
Ryan
e8451da55e
Add entity status codes
2022-07-03 23:17:51 -07:00
Ryan
622f15e71d
Implement client world switching
2022-07-03 17:32:05 -07:00
Ryan
340318b9b6
Get system chat working
2022-07-01 19:18:59 -07:00
Ryan
0fcedd3656
Improve packet debug output
2022-07-01 16:03:15 -07:00
Ryan
a259bdf840
Add the packet inspector proxy
2022-07-01 15:29:31 -07:00
Ryan
9a87fda211
Rename packets
2022-06-30 14:18:29 -07:00
Ryan
6ef634ca2c
Use Rust 1.62.0 features
2022-06-30 13:22:08 -07:00
Ryan
560163fd2e
Expose the protocol API behind a feature flag
...
This could be useful for building proxies or clients in the future.
2022-06-30 11:53:57 -07:00