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

UpgradeReceipe does not have method "key" #3881

Open
mosemister opened this issue Aug 7, 2023 · 0 comments
Open

UpgradeReceipe does not have method "key" #3881

mosemister opened this issue Aug 7, 2023 · 0 comments
Labels
status: needs triage This label is automatically applied to new issues and pull requests to indicate they require triage type: feature request A feature request

Comments

@mosemister
Copy link
Member

Is this request specific to one implementation of Sponge?

No

Sponge Version

1.16.5-8.1.0-RC1352

What are you requesting?

A implementation for Recipe#key

Gaining crash of

java.lang.AbstractMethodError: Receiver class net.minecraft.world.item.crafting.UpgradeRecipe does not define or inherit an implementation of the resolved method 'org.spongepowered.api.ResourceKey key()' of interface org.spongepowered.api.item.recipe.Recipe.

Steps to reproduce:

loop though all registered recipes mapping each to its Key

List<ResourceKey> recipeKeys = Sponge
                .server()
                .recipeManager()
                .all()
                .stream()
                .map(recipe -> recipe.key())
               .toList();
@mosemister mosemister added status: needs triage This label is automatically applied to new issues and pull requests to indicate they require triage type: feature request A feature request labels Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This label is automatically applied to new issues and pull requests to indicate they require triage type: feature request A feature request
Projects
None yet
Development

No branches or pull requests

1 participant