Skip to content

Adds the paper-only dragon egg forms event #2669

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

Open
wants to merge 8 commits into
base: dev
Choose a base branch
from

Conversation

heypr
Copy link
Contributor

@heypr heypr commented Nov 1, 2024

@heypr heypr marked this pull request as ready for review December 22, 2024 23:59
mcmonkey4eva
mcmonkey4eva previously approved these changes Dec 23, 2024
case "location" -> location;
case "end_portal_location" -> new LocationTag(event.getDragonBattle().getEndPortalLocation());
case "previously_killed" -> new ElementTag(event.getDragonBattle().hasBeenPreviouslyKilled());
case "respawn_phase" -> new ElementTag(event.getDragonBattle().getRespawnPhase().name());
Copy link
Member

Choose a reason for hiding this comment

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

ElementTag enum constructor - otherwise lgtm

@EventHandler
public void onDragonEggForms(DragonEggFormEvent event) {
location = new LocationTag(event.getBlock().getLocation());
entity = new EntityTag(event.getDragonBattle().getEnderDragon());
Copy link
Member

Choose a reason for hiding this comment

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

Ref. Discord may need EntityTag#rememberEntity here - otherwise LGTM.

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.

3 participants