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

Add block_fade event #456

Merged
merged 3 commits into from
Oct 23, 2017
Merged

Add block_fade event #456

merged 3 commits into from
Oct 23, 2017

Conversation

entrypointkr
Copy link
Contributor

Add block_fade event

@PseudoKnight
Copy link
Contributor

Is there any case where data won't be 0?

@@ -124,4 +124,10 @@ public void onNotePlay(NotePlayEvent e) {
BukkitBlockEvents.BukkitMCNotePlayEvent npe = new BukkitBlockEvents.BukkitMCNotePlayEvent(e);
EventUtils.TriggerListener(Driver.NOTE_PLAY, "note_play", npe);
}

@EventHandler(priority = EventPriority.LOWEST)
public void onBloackFade(BlockFadeEvent e) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Bloack.

@entrypointkr
Copy link
Contributor Author

entrypointkr commented Feb 24, 2017

"data" means e.getBlock.getData() ?
If right, yes

@PseudoKnight
Copy link
Contributor

What block can fade that has data other than 0?

@entrypointkr
Copy link
Contributor Author

51(fire), others I don't know

@PseudoKnight
Copy link
Contributor

Oh, right. I can't think of a reason to prefilter that, though. I think olddata, newtype, and newdata should be removed from prefilters, as they serve no purpose. Only oldtype and world are meaningful prefilters here.

@entrypointkr
Copy link
Contributor Author

Okay I'll remove it now

@PseudoKnight PseudoKnight merged commit b0b2232 into EngineHub:master Oct 23, 2017
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