Commit graph

142 commits

Author SHA1 Message Date
mat
0085f8a565 make some stuff publishable on crates.io 2022-08-30 21:42:40 -05:00
Ubuntu
a6c5017e38 clippy 2022-08-30 19:56:14 +00:00
mat
c1af5d15e3 physics stuff 2022-08-29 21:10:15 -05:00
mat
f42d630544
Physics (#11)
* Put physics module in azalea-entity

* port aabb

* add more stuff to PositionXYZ

* azalea-physics

* important collision things

* more physics stuff

* backup because i'm about to delete shapes

* more shape stuff

* CubeVoxelShape

* no compile errors???

insane

* impl VoxelShape for ArrayVoxelShape

* Shapes stuff

* collide_x but it doesn't work yet

* binary_search

* it compiles

* Entity has bounding box

* Update discrete_voxel_shape.rs

* Entity::make_bounding_box

* ok i'm about to merge az-entity and az-world

might be a terrible idea which is why i'm committing first

* ok so i moved entity to world

* on_pos and move_entity compiles

* add send_position

* move collision stuff to collision module in az-physics

* dimension is no longer an Option

* start trying to do collision for the client

* collision works 🎉

* start adding palette resizing

* get_and_set (pain)

* it compiles but probably won't work

* add a test

* remove printlns

* add more tests for palette stuff

* ClientboundMoveVec3Packet -> ClientboundMoveEntityPosPacket

i think i changed this on accident once

* palette resizing works

todo: remove the printlns

* Remove printlns in palette.rs

* fix issues from merge

* fixes + work a bit more on physics

* Better entities (#19)

* well it compiles

* add tests to entity storage

* add suggestions in azalea-brigadier

* this probably causes ub

* fix brigadiersuggestions

* get rid of entityid

* test From<EntityMut> for EntityRef

* don't mention other libraries since there's too many

* fix warnings

* do todos in brigadier suggestions

* work on physics

* more physics stuff

* remove trait feature on az-block

i think rust gets confused and compiles the macro without the feature

* bump ahash

* aes tests in az-crypto

* optimize aes's deps

* fix crashes

* fix section_index for negative numbers and test

* fix BlockPos protocol implementation

* remove some debug prints

* prepare to add ai_step

* make ai step work

* clippy
2022-08-29 20:41:01 -05:00
mat
b8228a0360
Azalea registry (#20)
* make azalea-registry crate

* add trait feature to az-block

* registr

* registry macro

* impl Display for registry things

* registries
2022-08-27 20:31:21 -05:00
Ubuntu
b9cb596ea7 shut up clippy 2022-08-19 18:06:43 +00:00
mat
5a9fca0ca9
Better errors (#14)
* make reading use thiserror

* finish implementing all the error things

* clippy warnings related to ok_or

* fix some errors in other places

* thiserror in more places

* don't use closures in a couple places

* errors in writing packet

* rip backtraces

* change some BufReadError::Custom to UnexpectedEnumVariant

* Errors say what packet is bad

* error on leftover data and fix

it wasn't reading the properties for gameprofile
2022-08-06 02:22:19 -05:00
mat
69f97dbf02 clippo the sequel 2022-07-31 18:05:41 -05:00
mat
e8deda5d2e clippo 2022-06-25 17:37:29 -05:00
mat
978880b756 Fix warnings 2022-06-25 16:40:12 -05:00
mat
cd9a05e5a6 read_into -> read_from
yeah
2022-06-25 02:33:28 -05:00
mat
b030b0ea33 start adding moving 2022-06-24 23:10:59 -05:00
mat
2cdbdcaa27 move_entity_with_delta 2022-06-23 21:31:19 -05:00
mat
37c6618c16 Fix everything so azalea-buf works 2022-06-23 19:17:04 -05:00
mat
ba399c4440 switch things to use azalea-buf 2022-06-23 15:28:33 -05:00
mat
5ca49e680e azalea-buf 2022-06-23 15:12:17 -05:00
mat
e84893b07a Fix issues with entity pos conversion to block pos 2022-06-19 13:42:01 -05:00
mat
bb6b116cb8 Improvements to azalea-world for entities 2022-06-19 00:30:24 -05:00
mat
d8e0457b62 from<ClientboundAddEntityPacket> for Entity 2022-06-18 14:08:34 -05:00
mat
0a945e73ec EntityPos 2022-06-17 18:09:34 -05:00
mat
0530c57579 Fixes 2022-05-26 17:55:07 -05:00
mat
e58c9390a7 get_block_state works 2022-05-14 15:02:13 -05:00
mat
6d2fd8afba start adding get_block_state 2022-05-14 14:12:57 -05:00
mat
345cecf7af add more stuff 2022-05-08 23:45:15 -05:00
mat
ac392542ce Merge branch 'main' into chunk-decoding 2022-05-08 18:55:49 -05:00
mat
e023986565 random polish 2022-05-05 23:33:08 -05:00
mat
0bd798045c more azalea-world stuff 2022-05-03 00:33:32 -05:00
mat
34058b2528 Remove some resolved todo comments 2022-05-01 23:45:28 -05:00
mat
9dacd90abc clientbound_add_entity_packet & clientbound_set_entity_data_packet 2022-05-01 13:51:59 -05:00
mat
9c69d7d5f2 finish update recipes packet implementation 2022-04-26 19:38:07 -05:00
mat
f9528a9f9a work on adding more stuff for recipes 2022-04-26 15:13:47 +00:00
mat
248f752748 simplify error handling 2022-04-22 04:33:58 +00:00
mat
96eba2b39a difficulty packet 2022-01-03 00:14:41 -06:00
mat
394f996df2 fix random warnings 2022-01-02 17:42:41 -06:00
mat
af28b0e57a reading nbt in the protocol works 2021-12-26 14:15:06 -06:00
mat
6ae94b96e6 start adding nbt to the protocol 2021-12-20 15:22:02 -06:00
mat
428d0ee0e6 mmm registries 2021-12-18 10:11:53 -06:00
mat
8e3ba097b4 start adding clientbound_login_packet 2021-12-18 10:04:10 -06:00
mat
227ba5511d add a few more login packets 2021-12-16 17:51:05 -06:00
mat
fa471dd904 add files 2021-12-16 20:23:58 +00:00
mat
c12469966e add resource location to azalea-core 2021-12-16 16:23:51 +00:00
mat
9642558f8f azalea 2021-12-15 23:10:55 -06:00