Skip to content

Add generic block broken event#44

Open
Hugman76 wants to merge 1 commit intoNucleoidMC:1.20from
Hugman76:block-break
Open

Add generic block broken event#44
Hugman76 wants to merge 1 commit intoNucleoidMC:1.20from
Hugman76:block-break

Conversation

@Hugman76
Copy link
Member

@Hugman76 Hugman76 commented Aug 7, 2023

Currently, we only have an event for block being broken by a player, but there is no way to detect block being broken for other reasons.

I added the BlockBreakEvent#WORLD event to detect any block being broken for any reason. The previous event has been marked as deprecated as it has been renamed BlockBreakEvent#PLAYER for clarity.

@Patbox
Copy link
Member

Patbox commented Aug 8, 2023

I'm not sure if this will be backwards compatible (ABI-wise), so you should keep the legacy EVENT type equal to previous one (Keep interface methods on old one and make Player extend it)

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.

2 participants

Comments