Commit graph

516 commits

Author SHA1 Message Date
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
mat
eb6328ddc6 Update client.rs 2022-09-05 16:25:37 -05:00
mat
453cbc83fd add a todo 2022-09-05 11:46:47 -05:00
mat
fcb5bdf042 use az-registry in az-protocol 2022-09-05 11:44:48 -05:00
mat
4301a2f2d4 Publish empty azalea crate 2022-09-05 10:38:40 -05:00
mat
e9f88ce546 Publish everything* to crates.io
Except azalea-client since it's not ready yet
2022-09-05 10:36:48 -05:00
mat
9ca9519469 .walk :) 2022-09-05 01:04:16 -05:00
mat
4f00ddace0 remove some debug stuff and fix recipe packet 2022-09-04 23:01:15 -05:00
mat
99fcad7bc4 fix chunks not being able to be read 2022-09-04 21:24:10 -05:00
Ubuntu
2557d70576 collision test passes??? 2022-09-02 20:50:41 +00:00
Ubuntu
1dec4f5664 make collision test work* 2022-09-02 17:22:15 +00:00
Ubuntu
2a775c93fa unused use in test 2022-09-02 17:12:49 +00:00
mat
cfb190d00c
get rid of Readable & Writable (#21) 2022-09-02 12:11:14 -05:00
mat
32458d743f fix bad u32::write_into and add tests 2022-09-01 20:37:38 -05:00
mat
4d072d8057 sample can be empty 2022-09-01 19:26:21 -05:00
mat
d564b4cc4f ping players can be negative 2022-09-01 19:11:24 -05:00
mat
56afcb9dd8 make set_block_state return an Option 2022-08-31 22:39:38 -05:00
Ubuntu
7a159bdee5 add collision test 2022-08-31 20:16:39 +00:00
Ubuntu
e0cbf68df1 test gravity 2022-08-31 20:11:34 +00:00
Ubuntu
4678327848 remove some comments in az-protocol::read 2022-08-31 18:52:26 +00:00