-
-
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
JSON Entity Animations #1476
JSON Entity Animations #1476
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.
Thank you for the contribution! I believe this needs some work to make it more supportive of additional features that modders could use.
src/main/java/net/neoforged/neoforge/client/entity/animation/json/JsonAnimationLoader.java
Outdated
Show resolved
Hide resolved
src/main/java/net/neoforged/neoforge/client/entity/animation/json/JsonAnimationParser.java
Outdated
Show resolved
Hide resolved
src/main/java/net/neoforged/neoforge/client/entity/animation/json/JsonAnimationParser.java
Outdated
Show resolved
Hide resolved
src/main/java/net/neoforged/neoforge/client/entity/animation/json/JsonAnimator.java
Outdated
Show resolved
Hide resolved
src/main/java/net/neoforged/neoforge/client/entity/animation/json/JsonAnimationParser.java
Outdated
Show resolved
Hide resolved
src/main/java/net/neoforged/neoforge/client/entity/animation/json/AnimationLoader.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.
Very nice! Mainly just documentation comments.
src/main/java/net/neoforged/neoforge/client/event/RegisterJsonAnimationTypesEvent.java
Show resolved
Hide resolved
src/main/java/net/neoforged/neoforge/client/entity/animation/AnimationTarget.java
Show resolved
Hide resolved
src/main/java/net/neoforged/neoforge/client/entity/animation/json/AnimationLoader.java
Outdated
Show resolved
Hide resolved
src/main/java/net/neoforged/neoforge/client/entity/animation/json/AnimationParser.java
Show resolved
Hide resolved
src/main/java/net/neoforged/neoforge/client/entity/animation/json/AnimationParser.java
Show resolved
Hide resolved
tests/src/junit/java/net/neoforged/neoforge/unittest/EntityModelSerializationTest.java
Show resolved
Hide resolved
That is completely out of scope for this PR. |
src/main/java/net/neoforged/neoforge/client/event/RegisterJsonAnimationTypesEvent.java
Show resolved
Hide resolved
src/main/java/net/neoforged/neoforge/client/event/RegisterJsonAnimationTypesEvent.java
Show resolved
Hide resolved
src/main/java/net/neoforged/neoforge/client/entity/animation/json/AnimationLoader.java
Outdated
Show resolved
Hide resolved
src/main/java/net/neoforged/neoforge/client/entity/animation/json/AnimationParser.java
Outdated
Show resolved
Hide resolved
@Gaming32, this pull request has conflicts, please resolve them for this PR to move forward. |
src/main/java/net/neoforged/neoforge/client/event/RegisterJsonAnimationTypesEvent.java
Outdated
Show resolved
Hide resolved
🚀 This PR has been released as NeoForge version |
uhhhh You used the same asset folder as GeckoLib, and this is now causing the game to absolutely spew errors when GeckoLib animations are present
|
I feel like both this and geckolib should be using appropriately namespaced asset folders -- |
Geckolib should have been using a namespaced directory, yes. Neoforge apparently does not care as evidenced by datamaps using a non-namespaced folder. |
|
|
As I would like to PR this same feature to Fabric, it would be ideal if the directory was not put under "neoforge". If it was, it would be extremely inconvenient to both resourcepack developers and multiloader mod developers. |
Unless we can guarantee that fabric and neo would keep the same format and features for the feature, like they're in theory supposed to for convention tags, that's really irrelevant -- I do not believe that conversation has happened yet. |
Linking relevant Blockbench plugin PR that modders will be able to use to get the json for NeoForge to load: |
This adds support for entity animations written in JSON. There is an existing Blockbench plugin to export in this format.