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

ChunkSection exposes a containsBlock (matcher) methods #153

Open
rom1504 opened this issue Jan 6, 2022 · 1 comment
Open

ChunkSection exposes a containsBlock (matcher) methods #153

rom1504 opened this issue Jan 6, 2022 · 1 comment

Comments

@rom1504
Copy link
Member

rom1504 commented Jan 6, 2022

It returns true if the section contains a block such that matcher(block) is true.
example implementation for 1.17 https://github.com/PrismarineJS/mineflayer/blob/04665d1c757a9eaf6433cabd3b2fa62d39d88ad5/lib/plugins/blocks.js#L157

Let's have at least one test for this

@rom1504
Copy link
Member Author

rom1504 commented Jan 6, 2022

in case of global palette return true but it's a maybe

rom1504 added a commit that referenced this issue Jan 6, 2022
#153 or even #154 will be a better fix
rom1504 added a commit that referenced this issue Jan 6, 2022
#153 or even #154 will be a better fix
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