-
-
Notifications
You must be signed in to change notification settings - Fork 192
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
Expose ItemEntity#target's value in ItemEntityPickupEvent #1009
Expose ItemEntity#target's value in ItemEntityPickupEvent #1009
Conversation
Last commit published: 0c5f8cde82b3590a68930c5e060669a71ff5d30c. PR PublishingThe artifacts published by this PR:
Repository DeclarationIn order to use the artifacts published by the PR, add the following repository to your buildscript: repositories {
maven {
name 'Maven for PR #1009' // https://github.com/neoforged/NeoForge/pull/1009
url 'https://prmaven.neoforged.net/NeoForge/pr1009'
content {
includeModule('net.neoforged', 'testframework')
includeModule('net.neoforged', 'neoforge')
}
}
} MDK installationIn order to setup a MDK using the latest PR version, run the following commands in a terminal. mkdir NeoForge-pr1009
cd NeoForge-pr1009
curl -L https://prmaven.neoforged.net/NeoForge/pr1009/net/neoforged/neoforge/20.6.108-beta-pr-1009-ItemPickupEventTarget/mdk-pr1009.zip -o mdk.zip
jar xf mdk.zip
rm mdk.zip || del mdk.zip To test a production environment, you can download the installer from here. |
src/main/java/net/neoforged/neoforge/event/entity/player/ItemEntityPickupEvent.java
Outdated
Show resolved
Hide resolved
src/main/java/net/neoforged/neoforge/event/entity/player/ItemEntityPickupEvent.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Matyrobbrt <[email protected]>
Co-authored-by: Matyrobbrt <[email protected]>
…ntityPickupEvent.java Co-authored-by: Matyrobbrt <[email protected]>
src/main/java/net/neoforged/neoforge/event/entity/player/ItemEntityPickupEvent.java
Outdated
Show resolved
Hide resolved
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.
Doc nitpicks
…ntityPickupEvent.java Co-authored-by: Matyrobbrt <[email protected]>
Does it make more sense to just patch in a getter method for If any other item-related events need the target, that approach will require fewer changes |
@Shadows-of-Fire wha. Why mojang add setter but no getter? Huh. Yeah a getter patched in would be ideal imo. |
This is breaking for anyone calling the hooks themselves but that should be ok since we are still in beta phase and event is new.
Closes #1003