1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 14:26:04 +00:00
Commit graph

254 commits

Author SHA1 Message Date
mat
329f8b1784 more docs 2022-10-30 15:28:19 -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
99d3a5de9d improve docs a little more 2022-10-30 12:58:44 -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
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
489cdb01aa fix repeated ids in game/mod.rs 2022-10-24 21:25:36 -05: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
a9ff79a105 write more documentation 2022-10-23 14:46:06 -05:00
mat
b95e69be8f add function that gets full message content 2022-10-21 21:44:39 -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
c0338cac35 Create cache file directory if it doesn't exist 2022-10-18 19:31:27 +00:00
b68bcb44d2 (cargo-release) version 0.2.0 2022-10-17 16:28:54 +00:00
9c6347473b (cargo-release) version 0.2.0 2022-10-17 16:28:53 +00:00
69d30378e5 (cargo-release) version 0.2.0 2022-10-17 16:28:53 +00:00
9a7d2d51b5 (cargo-release) version 0.2.0 2022-10-17 16:28:53 +00:00
7c71efab4a (cargo-release) version 0.2.0 2022-10-17 16:28:53 +00:00
4e8bdfe7aa (cargo-release) version 0.2.0 2022-10-17 16:28:52 +00:00
924a4771d9 (cargo-release) version 0.2.0 2022-10-17 16:28:52 +00:00
e4a85363b0 (cargo-release) version 0.2.0 2022-10-17 16:28:52 +00:00
e6f023a38b (cargo-release) version 0.2.0 2022-10-17 16:28:52 +00:00
4585504323 (cargo-release) version 0.2.0 2022-10-17 16:28:51 +00:00
430501f6e1 (cargo-release) version 0.2.0 2022-10-17 16:28:51 +00:00
46fbc4654c (cargo-release) version 0.2.0 2022-10-17 16:28:51 +00:00
mat
0f88e05a0c
Add chat function (#28)
* add Client::chat

* make the default bot do chat
2022-10-16 23:08:39 -05:00
mat
4cef62e8e4
Microsoft Authentication (#29)
* a

* try to do more work on auth signing (untested)

* well auth works when i remove the d= so

* auth stuff

* sessionserver stuff

* add auth in azalea-protocol/client

* caching*

refreshing microsoft auth tokens isn't implemented yet, also i haven't tested it

* how did i not notice that i had the code duplicated

* fix cache

* add refreshing msa token

* replace some printlns with log::trace

* auth works!

* Update main.rs

* fix clippy warnings
2022-10-16 22:54:54 -05:00
mat
98224cf913 fix clippy warnings 2022-10-15 16:53:34 -05:00
mat
221b33197e fix panic 2022-10-09 23:41:41 -05:00
mat
4a0d5e7e96 handle SectionBlocksUpdate packet 2022-10-08 01:01:54 -05:00
mat
7c955c794a remove a println 2022-10-07 23:57:31 -05:00
mat
6f6289376a fix errors with rewritten packet reading
i forgot i never tested it before LMAO
2022-10-07 23:56:23 -05:00
mat
e9d8d0357e fix a test 2022-10-07 20:41:05 -05:00
mat
bc3aa9467a
Replace impl Read with Cursor<&[u8]> (#26)
* Start getting rid of Cursor

* try to make the tests pass and fail

* make the tests pass

* remove unused uses

* fix clippy warnings

* fix potential OOM exploits

* fix OOM in az-nbt

* fix nbt benchmark

* fix a test

* start replacing it with Cursor<Vec<u8>>

* wip

* fix all the issues

* fix all tests

* fix nbt benchmark

* fix warnings
2022-10-07 20:12:36 -05:00
mat
c9b4dccd7e
All block shapes & collisions (#22)
* start adding shapes

* add more collision stuff

* DiscreteCubeMerger

* more mergers

* start adding BitSetDiscreteVoxelShape::join

* i love rust 😃 😃 😃

* r

* IT COMPILES????

* fix warning

* fix error

* fix more clippy issues

* add box_shape

* more shape stuff

* make DiscreteVoxelShape an enum

* Update shape.rs

* also make VoxelShape an enum

* implement BitSet::clear

* add more missing things

* it compiles

W

* start block shape codegen

* optimize shape codegen

* make az-block/blocks.rs look better (broken)

* almost new block macro

* make the codegen not generate 'type'

* try to fix

* work more on the blocks macro

* wait it compiles

* fix clippy issues

* shapes codegen works

* well it's almost working

* simplify some shape codegen

* enum type names are correct

* W it compiles

* cargo check no longer warns

* fix some clippy issues

* start making it so the shape impl is on BlockStates

* insane code

* new impl compiles

* fix wrong find_bits + TESTS PASS!

* add a test for slab collision

* fix clippy issues

* ok rust

* fix error that happens when on stairs

* add test for top slabs

* start adding join_is_not_empty

* add more to join_is_not_empty

* top slabs still don't work!!

* x..=0 doesn't work in rust 😃 😃 😃 😃 😃 😃 😃 😃 😃 😃 😃 😃 😃 😃

* remove comment since i added more useful names

* remove some printlns

* fix walls in some configurations erroring

* fix some warnings

* change comment to \`\`\`ignore instead of \`\`\`no_run

* players are .6 wide not .8

* fix clippy's complaints

* i missed one clippy warning
2022-10-02 12:29:47 -05:00
mat
e46577a214
Fix connection writer being locked (#23)
* Split connection struct in az-protocol

* az-client uses split conns

* fix errors

* add a convenience write_packet fn to az-client
2022-09-19 21:21:46 -05:00
14a6f9d9f8 replace printlns with log 2022-09-19 19:53:16 +00:00
mat
58f8e95fe8 no unused variable 2022-09-11 13:04:26 -05:00
mat
679223f3de only check leftover data in debug mode 2022-09-11 13:03:53 -05:00
mat
5a0045c985 fix ClientboundMapItemDataPacket 2022-09-10 21:44:55 -05:00
mat
c31a1f9434 fix outdated EntityDataValue 2022-09-10 19:46:01 -05:00
mat
749c243fc5 typo fix
ChatVisiblity -> ChatVisibility
2022-09-10 12:03:00 -05:00
mat
dee991a7fc fix errors in enums inconsistent w/ vanilla 2022-09-09 23:46:46 -05:00
mat
3389f19e60 cut off at 500 instead of 100 2022-09-09 22:58:14 -05:00
2889514307 improve log 2022-09-09 19:42:35 +00:00
c033587503 add logger 2022-09-09 19:27:59 +00:00
mat
98000f800f why am i getting a varint error 2022-09-07 22:12:16 -05:00