Commit graph

535 commits

Author SHA1 Message Date
mat
ab9e50b130 change examples with Account 2022-10-16 22:56:31 -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
993914d175
Update README.md 2022-10-15 17:47:41 -05:00
mat
678ad90192
update description in readme 2022-10-15 17:46:34 -05:00
mat
bb3b4e87fb change description of azalea crate 2022-10-15 17:34:40 -05:00
mat
055d27c7ad fix azalea-buf tests 2022-10-15 17:34:07 -05:00
mat
98224cf913 fix clippy warnings 2022-10-15 16:53:34 -05:00
mat
a348f67b96 fix panic in azalea-chat 2022-10-10 01:04:09 -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
82c04004db change definition of Event::Tick 2022-10-08 00:03:07 -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
695efef66f remove jumping_once from az-client 2022-10-07 20:09:47 -05:00
mat
ba4cfaafae
Bot API (#27)
Basically make the `azalea` crate have stuff
2022-10-07 19:57:42 -05:00
mat
e0bcab53b8 start adding stuff to azalea crate 2022-10-02 15:02:27 -05:00
mat
06068377bd
New example (#24)
the example isn't finished but it's finished enough
2022-10-02 14:58:42 -05:00
mat
37f9f1c6fe add jumping 2022-10-02 14:52:48 -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
aa78491ee0
yeah let's be honest they're not very useable 2022-09-23 22:11:23 -05:00
mat
e63f605c82 add shutdown function 2022-09-19 23:05:05 -05:00
mat
a87c4cf718 Merge branch 'main' of https://github.com/mat-1/azalea 2022-09-19 21:44:15 -05:00
mat
788e9e875a fix rotations 2022-09-19 21:44:13 -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
mat
528c1a07e3 change example 2022-09-19 20:38:08 -05:00
Ubuntu
14a6f9d9f8 replace printlns with log 2022-09-19 19:53:16 +00:00
mat
4247945df1 start work on optimizing block macros 2022-09-18 23:13:45 -05:00
mat
79cf19f93e modify warning in readme 2022-09-18 17:04:02 -05:00
Ubuntu
f7e761dfd3 re-enable nbt benches 2022-09-14 18:33:51 +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
0b3ec4ee3b fix panic in azalea-chat 2022-09-11 09:47:54 -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
6c797b8977 remove a debug thing lol 2022-09-09 23:53:16 -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
Ubuntu
2889514307 improve log 2022-09-09 19:42:35 +00:00
Ubuntu
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
mat
ec316e02cd fix ClientboundUpdateAdvancementsPacket 2022-09-07 21:30:05 -05:00
mat
61db9f930a don't panic on bad utf8 2022-09-07 19:41:11 -05:00
mat
029fa33f55 fix bad enum macro generation 2022-09-06 23:55:39 -05:00
mat
8fe02ed115 BrigadierNodeStub::name() 2022-09-06 22:24:21 -05:00
mat
403ae0d72b remove debug println 2022-09-06 20:41:57 -05:00
Ubuntu
167748c7ed finish read implementation for Commands packet 2022-09-06 20:59:07 +00:00
Ubuntu
ab45bb7825 rename variants in packet enums to be shorter 2022-09-06 18:41:59 +00:00