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

Better interface for accessing blocks #4686

Open
peterbell10 opened this issue Apr 21, 2020 · 1 comment
Open

Better interface for accessing blocks #4686

peterbell10 opened this issue Apr 21, 2020 · 1 comment

Comments

@peterbell10
Copy link
Member

See discussion in #4680 (comment)

We should have a unified way of accessing block states (type + meta for now) across chunks, worlds and block areas. Block handlers, item handlers, simulators, entities, block entities etc. should use this instead of accessing cWorld or cChunk directly.

@peterbell10
Copy link
Member Author

I'll also add that using cChunk in blockhandlers leads to the need to call DoWithChunkAt in block handlers to call CanBeAt from another function; as in #4256 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant