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

Entity Lifespan API #3713

Closed
wants to merge 18 commits into from
Closed

Conversation

Spinoscythe
Copy link

@Spinoscythe Spinoscythe commented Apr 16, 2024

Just so you know, Im not the greatest mixin guy.

Fixes #3636

Copy link
Member

@modmuss50 modmuss50 left a comment

Choose a reason for hiding this comment

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

Hi, thanks for the PR.

Could you add a test mod for this to prove it works. I think it should be quite possible to also create an automated gametest for this.

@Juuxel Juuxel added enhancement New feature or request priority:low Low priority PRs that don't immediately need to be resolved labels Apr 16, 2024
Spinoscythe and others added 7 commits April 16, 2024 21:02
…v1/FabricItem.java

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
…v1/FabricItem.java

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
…v1/FabricItem.java

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
…v1/FabricItemStack.java

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
…v1/FabricItem.java

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
…v1/FabricItemStack.java

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
…v1/FabricItemStack.java

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
@Spinoscythe
Copy link
Author

Game tests still pending!

Copy link
Contributor

@apple502j apple502j left a comment

Choose a reason for hiding this comment

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

Would it make sense to pass ItemEntity? (also please run checkstyle)

@@ -119,15 +123,27 @@ default ItemStack getRecipeRemainder(ItemStack stack) {
* <p>Note that this method is only called <em>after</em> the {@link EnchantmentEvents#ALLOW_ENCHANTING} event, and
* only if none of the listeners to that event override the result.</p>
*
* @param stack the current stack
* @param stack the current stack
Copy link
Contributor

Choose a reason for hiding this comment

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

Please revert those changes

@Spinoscythe Spinoscythe changed the base branch from 1.20.5 to 1.20.6 May 9, 2024 17:27
@Spinoscythe
Copy link
Author

Someone else can do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority:low Low priority PRs that don't immediately need to be resolved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Suggestion] Entity lifespan API
5 participants