-
-
Notifications
You must be signed in to change notification settings - Fork 179
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
[1.21.x] TODOs and NBT cleanup for entities #1166
[1.21.x] TODOs and NBT cleanup for entities #1166
Conversation
Last commit published: b5395d2403737c40f13aedc73cba7c1f9944f58f. 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 #1166' // https://github.com/neoforged/NeoForge/pull/1166
url 'https://prmaven.neoforged.net/NeoForge/pr1166'
content {
includeModule('net.neoforged', 'neoforge')
includeModule('net.neoforged', 'testframework')
}
}
} MDK installationIn order to setup a MDK using the latest PR version, run the following commands in a terminal. mkdir NeoForge-pr1166
cd NeoForge-pr1166
curl -L https://prmaven.neoforged.net/NeoForge/pr1166/net/neoforged/neoforge/21.0.90-beta-pr-1166-feature-nbt-entity-cleanup/mdk-pr1166.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. |
I believe that there are some uses cases for entity persistent data, for example marking item entities that should not be picked up by magnets, and other similar cases of mod compat. I agree with the other changes. |
You'd rather keep persistent data when attachments exist, for stuff like magnet control? That feels like a capability or attachment thing.. persistent data is like using a sword when you have a scalpel nearby. |
@robotgryphon, this PR introduces breaking changes.
|
src/main/java/net/neoforged/neoforge/common/extensions/IEntityExtension.java
Outdated
Show resolved
Hide resolved
Could we skip deprecating/removing persistentData? It is easier for mod compat without compile dependencies at the moment which Data Attachments doesn't fully replace very well at the moment |
Or could neo maybe provide a simple network-synced data attachment that's a And as bonus, the javadoc could give two nice examples, And no, we cannot prevent modders from stuffing their mod's whole save state into one of those Strings if they want. |
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.
Merge when ready.
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.
Merge when ready.
Deprecates persistent data (use data attachments)