-
Notifications
You must be signed in to change notification settings - Fork 422
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
Entity Lifespan API #3713
Conversation
There was a problem hiding this 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.
fabric-item-api-v1/src/main/java/net/fabricmc/fabric/mixin/item/ItemEntityMixin.java
Outdated
Show resolved
Hide resolved
fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItem.java
Outdated
Show resolved
Hide resolved
fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItem.java
Outdated
Show resolved
Hide resolved
fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItem.java
Outdated
Show resolved
Hide resolved
fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItem.java
Outdated
Show resolved
Hide resolved
fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItem.java
Outdated
Show resolved
Hide resolved
fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItemStack.java
Outdated
Show resolved
Hide resolved
fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItemStack.java
Outdated
Show resolved
Hide resolved
fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItemStack.java
Outdated
Show resolved
Hide resolved
fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItem.java
Outdated
Show resolved
Hide resolved
…v1/FabricItem.java Co-authored-by: Juuz <[email protected]>
…v1/FabricItem.java Co-authored-by: Juuz <[email protected]>
…v1/FabricItem.java Co-authored-by: Juuz <[email protected]>
…v1/FabricItemStack.java Co-authored-by: Juuz <[email protected]>
…v1/FabricItem.java Co-authored-by: Juuz <[email protected]>
…v1/FabricItemStack.java Co-authored-by: Juuz <[email protected]>
…v1/FabricItemStack.java Co-authored-by: Juuz <[email protected]>
Game tests still pending! |
There was a problem hiding this 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert those changes
FabricMC#3735) (cherry picked from commit 0dca034)
(cherry picked from commit be5d88b)
Someone else can do it. |
Just so you know, Im not the greatest mixin guy.
Fixes #3636