Skip to content

Updated Variant property to include chickens, cows, and pigs for 1.21+ #2717

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 2 commits into
base: dev
Choose a base branch
from

Conversation

MC-Samuel
Copy link
Contributor

No description provided.

mcmonkey4eva
mcmonkey4eva previously approved these changes Apr 10, 2025
}

@Override
public ElementTag getPropertyValue() {
return new ElementTag(Utilities.namespacedKeyToString(as(Wolf.class).getVariant().getKey()));
if (getEntity() instanceof Wolf wolf) {
return new ElementTag(Utilities.namespacedKeyToString(wolf.getVariant().getKeyOrThrow()));
Copy link
Member

Choose a reason for hiding this comment

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

Did Wolf.Variant#getKeyOrThrow exist on 1.20.6?

Copy link
Member

Choose a reason for hiding this comment

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

Actually, pretty sure you can't use that either way - Paper doesn't have these Spigot changes

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