Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add a simple get_block(x, y, z) API #17

Open
Badel2 opened this issue Nov 1, 2020 · 1 comment
Open

[Feature Request] Add a simple get_block(x, y, z) API #17

Badel2 opened this issue Nov 1, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@Badel2
Copy link
Contributor

Badel2 commented Nov 1, 2020

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

@owengage
Copy link
Owner

owengage commented Nov 1, 2020

Hi, I like this idea. Some abstraction on the level on dimension would be very useful.

@owengage owengage added the enhancement New feature or request label Nov 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants