Commit graph

30 commits

Author SHA1 Message Date
mat
0085f8a565 make some stuff publishable on crates.io 2022-08-30 21:42:40 -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
mat
69f97dbf02 clippo the sequel 2022-07-31 18:05:41 -05:00
mat
ec0b6ec06c 1.19.1-pre4 2022-07-10 23:43:09 -05:00
mat
e8deda5d2e clippo 2022-06-25 17:37:29 -05:00
mat
d0fc7d0eff ClientboundSetEquipmentPacket 2022-06-17 16:27:58 -05:00
mat
74c3ae52f8 azalea-world uses azalea-block 2022-06-16 23:38:51 -05:00
mat
4f89f70091 type -> kind 2022-06-16 20:48:01 -05:00
mat
5d5441427f less underscores 2022-06-16 19:33:34 -05:00
mat
b907ea5a3f "boolean" is cringe 2022-06-16 19:29:16 -05:00
mat
043f70aa6e Fix for states that burger doesn't have 2022-06-16 15:12:20 -05:00
mat
8aa8baa20d Fix ordering of blocks 2022-06-11 17:33:58 -05:00
mat
e36095c2b1 Fix all the errors 2022-06-11 17:18:57 -05:00
mat
e79e58da36 Include property names in blocks 2022-06-11 15:29:42 -05:00
mat
b852bdc481 Separate int properties 2022-06-11 09:50:14 -05:00
mat
6926907528 Clean code a little 2022-06-11 09:36:08 -05:00
mat
8c5d7407fe fix Facing property 2022-06-10 15:17:13 -05:00
mat
ab0796119b blocks works probably 2022-06-10 15:06:15 -05:00
mat
7d4eceefde mmmmmmmmmm 2022-05-29 00:39:27 -05:00
mat
e832c84eb8 fixed macro for blocks with no properties 2022-05-28 21:38:30 -05:00
mat
9c1c286236 default block properties 2022-05-28 20:59:22 -05:00
mat
5d764c79d0 genblocks 2022-05-28 18:20:15 -05:00
mat
ff2f3c7af5 slight optimization 2022-05-28 13:39:33 -05:00
mat
5ce6eb23bb impl From<BlockState> for &dyn Block { 2022-05-28 01:16:32 -05:00
mat
3573eb4ba0 more block macro stuff 2022-05-28 01:12:12 -05:00
mat
d56c44766e block macros 2022-05-27 23:10:34 -05:00
mat
c0433b7d49 Compiles 2022-05-27 19:36:18 -05:00
mat
88bc6d1660 Start making block macro 2022-05-27 19:34:09 -05:00
mat
aac64d0135 Start making azalea-block 2022-05-27 16:04:22 -05:00