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

BlockPlacerCallback #2564

Closed
wants to merge 1 commit into from
Closed

Conversation

nmacl
Copy link

@nmacl nmacl commented Oct 5, 2024

Created a callback method to allow plugins to intercept the place method on Feature & Structure

#2520

@Yeregorix
Copy link
Member

Yeregorix commented Oct 6, 2024

I'm skeptical about using a callback instead of the blockchange event.
Also, the code is duplicated and doesn't even build.

@avaruus1
Copy link
Contributor

avaruus1 commented Oct 6, 2024

I'm skeptical about using a callback instead of the blockchange event. Also, the code is duplicated and doesn't even build.

Seems that there's also no PR for the implementation.

*
* @return true when the feature was successfully placed
*/
boolean place(ServerWorld world, Vector3i pos);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see a reason why this couldn't remain, if a callback can be optionally an overloaded method.

@Yeregorix
Copy link
Member

As I stated on the issue, the API already has everything needed, the real work is on the implementation.

@Yeregorix Yeregorix closed this Nov 1, 2024
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

Successfully merging this pull request may close these issues.

4 participants