Commit graph

674 commits

Author SHA1 Message Date
Ubuntu
8de73c336f fix warnings 2022-11-09 17:41:06 +00:00
Ubuntu
0675e05e28 don't error on bad entity data packet 2022-11-09 17:34:48 +00:00
Ubuntu
c4843b347d make some fields public in light update packet 2022-11-08 20:45:17 +00:00
Ubuntu
350f9f105e don't log light updates 2022-11-08 20:34:39 +00:00
Ubuntu
10bdcf3b4d log some more stuff 2022-11-08 20:14:45 +00:00
mat
21898627fd don't panic on kick 2022-11-07 22:06:02 -06:00
mat
7844a05650 fix edge case with clearing bitsets 2022-11-07 20:57:32 -06:00
mat
d112856ff6
Entity metadata (#37)
* add example generated metadata.rs

* metadata.rs codegen

* add the files

* add comment to top of metadata.rs

* avoid clone

* metadata

* defaults

* defaults

* fix metadata readers and writers

* fix bad bitmasks and ignore some clippy warnings in generated code

* add set_index function to entity metadatas

* applying metadata
2022-11-06 14:05:01 -06:00
mat
9bc5175116
ask for someone to do server implementation 2022-11-03 20:08:14 -05:00
Ubuntu
0a20160272 change comment to be less than 80 width 2022-11-03 18:00:29 +00:00
Ubuntu
50f1cc47fa some -> most in readme warning 2022-10-31 15:56:15 +00:00
Ubuntu
e234f8b756 add basic installation instructions 2022-10-31 15:37:41 +00:00
mat
aea53cd380 actually fix 2022-10-30 21:44:11 -05:00
mat
261913e606 reply to custom query packet 2022-10-30 21:42:32 -05:00
mat
5ae890f941 replace an expect with unwrap_or_else 2022-10-30 15:42:43 -05:00
mat
329f8b1784 more docs 2022-10-30 15:28:19 -05:00
mat
c65e1fc660 Update README.md 2022-10-30 15:05:54 -05:00
mat
694fd39a91 add docs.rs badge 2022-10-30 15:05:14 -05:00
mat
fac4d1afda
Create LICENSE.md 2022-10-30 14:49:46 -05:00
mat
44ab1ad6ef chore: Release 2022-10-30 14:04:11 -05:00
mat
889f742696 add "repository" field to all crates 2022-10-30 14:03:13 -05:00
mat
f0e9a48222 fix error 2022-10-30 13:07:14 -05:00
mat
99d3a5de9d improve docs a little more 2022-10-30 12:58:44 -05:00
mat
f73872c0cc add packet to match lol 2022-10-29 14:36:07 -05:00
mat
7d140e5f0c ClientboundContainerClosePacket 2022-10-29 14:33:53 -05:00
mat
7c71bdf79a add doc comments to combat packets 2022-10-29 14:14:47 -05:00
mat
65d8fdcb6c oop fix another unwrap 2022-10-29 14:02:57 -05:00
mat
f235c9d064 don't panic if connection closes on join 2022-10-29 13:54:19 -05:00
mat
9de6c03dfb use variables directly in format strings
thanks clippy we love you
2022-10-27 21:22:47 -05:00
mat
7ae8bfab50 fix removed packets still being defined 2022-10-27 20:58:11 -05:00
mat
b2e54a7ff0 fix identical shapes being defined multiple times 2022-10-27 20:54:17 -05:00
mat
489cdb01aa fix repeated ids in game/mod.rs 2022-10-24 21:25:36 -05:00
mat
f38d0660d1 fix codegen 2022-10-24 21:10:09 -05:00
Ubuntu
0d55c71cee actually fix out of bounds errors 2022-10-24 19:01:28 +00:00
Ubuntu
61642f165b fix out of bounds y position 2022-10-24 18:20:18 +00:00
mat
3869fd622f write some more docs for az-protocol 2022-10-23 22:59:38 -05:00
mat
65da123631
Add Client::set_client_information (#33)
* start adding options

* add default options

* send options packet by default

* mention set_options in Client::join doc

* make TranslatableComponent::read return TextComponent

* change set_options to set_client_information

* clean up some code

* Add `Initialize` event

* fix some clippy warnings

* change `Client::options` to `client_information`
2022-10-23 19:00:24 -05:00
mat
587001724a add # Examples to some docs 2022-10-23 17:01:37 -05:00
mat
c9b1b19ff2 Update examples with new cleaner handle/state 2022-10-23 16:57:28 -05:00
mat
2eade86cf7 make handle cleaner
Arc<Event> -> Event, Arc<Mutex<State>> -> State
Items in State now need to have interior mutability (i.e. Arc<Mutex<T>>), but it's a worthwhile tradeoff since it allows the user to customize it for each field
2022-10-23 16:51:49 -05:00
mat
a9ff79a105 write more documentation 2022-10-23 14:46:06 -05:00
mat
127126c2cc fix panic on purpur servers 2022-10-23 12:53:38 -05:00
mat
9c67ce9a30 fix stack overflow in az-chat 2022-10-21 22:36:57 -05:00
mat
3fbbe5e93d have Display implemented for the Components 2022-10-21 22:30:19 -05:00
mat
6924502bc4 make TranslatableComponent::read return TextComponent 2022-10-21 22:16:37 -05:00
mat
b95e69be8f add function that gets full message content 2022-10-21 21:44:39 -05:00
mat
aa1f2a55e0 work around rustc compilation error 2022-10-21 20:26:49 -05:00
mat
8d0cad7784 Remove let chains 2022-10-20 22:16:34 -05:00
Sculas
41606fdd14
fix: make fields in PlayerInfo::Action public (#32)
This PR makes the fields in the PlayerInfo packet public.

I encountered this issue when writing my own bot which needs a list of UUID > String of all currently logged-in players, and while writing my handler for `Action::RemovePlayer` I found out that the `uuid` field is private. This PR fixes that.
2022-10-19 10:42:38 -05:00
Ubuntu
c0338cac35 Create cache file directory if it doesn't exist 2022-10-18 19:31:27 +00:00