aboutsummaryrefslogtreecommitdiff
path: root/azalea-block/src/lib.rs
AgeCommit message (Collapse)Author
2026-03-19more doc fixesmat
2026-03-05optimized converting from blockstate to blockkindmat
2026-03-05update tests using old property namesmat
2026-01-04re-export simdnbt from azalea-protocolmat
2026-01-03cleanupmat
2026-01-04add BlockTrait::set_propertymat
closes #140
2025-12-12Refactor azalea-registry (#294)mat
* move registries in azalea-registry into separate modules * rename Item and Block to ItemKind and BlockKind * remove 'extra' registries from azalea-registry * hide deprecated items from docs * use DamageKindKey instead of Identifier when parsing registries * store tag entries as a Vec instead of a HashSet * sort tag values by protocol id * update changelog
2025-09-14clippymat
2025-09-14Add functions for getting block properties as strings (#240)urisinger
* add tests and fix * fix integer properties * refactor azalea-block-macros and improve apis --------- Co-authored-by: mat <git@matdoes.dev>
2025-08-20generate better code in azalea-blockmat
2025-06-03rename the Block trait to BlockTrait to disambiguate with azalea_registry::Blockmat
2025-04-04remove executable bit from filesmat
2025-02-14remove stabilized trait_upcasting feature gatesmat
2025-01-10Fluid physics (#199)mat
* start implementing fluid physics * Initial implementation of fluid pushing * different travel function in water * bubble columns * jumping in water * cleanup * change ultrawarm to be required * fix for clippy
2024-12-27implement fluid_shapemat
2024-12-24make BlockState a u16 and add a BlockStateIntegerRepr typemat
2024-12-24fix parsing Dust particle and treat waterlogged blocks as liquid in pathfindermat
2024-11-27Refactor azalea-protocol (#190)mat
* start updating to 1.21.4 * fix block codegen and stop using block data from burger * rename packet related modules and structs to be simpler * ItemSlot -> ItemStack for more consistency with mojmap * .get() -> .into_packet() * simplify declare_state_packets by removing packet ids * rename read_from and write_into to azalea_read and azalea_write * rename McBufReadable and McBufWritable to AzaleaRead and AzaleaWrite * McBuf -> AzBuf * remove most uses of into_variant * update codegen and use resourcelocation names for packets * implement #[limit(i)] attribute for AzBuf derive macro * fixes for 1.21.4 * fix examples * update some physics code and fix ChatType * remove unused imports in codegen * re-add some things to migrate.py and update +mc version numbers automatically * downgrade to 1.21.3 lol
2024-10-26group imports with rustfmtmat
2024-02-25reduce allocations for collision detectionmat
2024-01-25update depsmat
2023-12-10Climbing (#121)mat
* start implementing climbing * fix tests * fix bots running at lower tick rate
2023-12-09add BlockState::propertymat
2023-12-03clippymat
2023-10-02cleanupmat
2023-07-14Mining (#95)mat
* more mining stuff * initialize azalea-tags crate * more mining stuff 2 * mining in ecs * well technically mining works but no codegen for how long it takes to mine each block yet * rename downloads to __cache__ it was bothering me since it's not *just* downloads * codegen block behavior * fix not sending packet to finish breaking block * mining animation 🎉 * clippy * cleanup, move Client::mine into a client extension * add azalea/src/mining.rs --------- Co-authored-by: mat <git@matdoes.dev>
2023-03-07Add World::find_block (#80)mat
* start adding World::find_block * keep working on find_block * BlockStates * fix sorting * update examples that use find_one_block * azalea_block::properties * fix tests * add a gotoblock command to testbot
2023-02-10make blockstate goodUbuntu
2023-02-09derive `Debug` for `BlockState` (#64)Charles Johnson
* derive `Debug` for `BlockState` * change default Debug for BlockState --------- Co-authored-by: Ubuntu <github@matdoes.dev>
2023-01-30have docs for all cratesUbuntu
2022-11-12Pathfinder (#25)mat
Pathfinding is very much not done, but it works enough and I want to get this merged. TODO: fast replanning, goals that aren't a single node, falling moves (it should be able to play the dropper), parkour moves
2022-10-07Replace impl Read with Cursor<&[u8]> (#26)mat
* 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-02New example (#24)mat
the example isn't finished but it's finished enough
2022-09-18start work on optimizing block macrosmat
2022-09-05use az-registry in az-protocolmat
2022-08-29Physics (#11)mat
* 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 :tada: * 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-27Azalea registry (#20)mat
* make azalea-registry crate * add trait feature to az-block * registr * registry macro * impl Display for registry things * registries
2022-07-101.19.1-pre4mat
2022-06-25clippomat
2022-06-17ClientboundSetEquipmentPacketmat
2022-06-16azalea-world uses azalea-blockmat
2022-06-16type -> kindmat
2022-05-28more block macro stuffmat
2022-05-27Compilesmat
2022-05-27Start making block macromat
2022-05-27Start making azalea-blockmat