fastnbt
fastnbt copied to clipboard
[Feature Request] Add a simple get_block(x, y, z) API
As a user of fastanvil, I find myself converting between block coords, chunk coords and region coords fairly often. To avoid any mistakes that could happen because of this conversions, I think it would be a good idea to provide an API that abstracts away the region and chunk logic.
Here I made a proof of concept, but I'm not happy with it:
https://github.com/Badel2/slime_seed_finder/blob/196b4a8bf6923432c8bdf7904af0e1ed034bd987/src/fastanvil_ext.rs
Hi, I like this idea. Some abstraction on the level on dimension would be very useful.