Data driven models and animations#145
Conversation
|
@FoundationGames this PR uses code from JsonEM. On discord, you said it was fine for me to use the code. I am asking here for a more visible record. I still need to update the licenses for said files. |
FoundationGames
left a comment
There was a problem hiding this comment.
I approve the merging of any code within this pull request that has been borrowed from JsonEM.
Platymemo
left a comment
There was a problem hiding this comment.
Lots of super little nitpicks but it looks great!
EnnuiL
left a comment
There was a problem hiding this comment.
So far, so great! I only have style nitpicks for now, and I'd appreciate if you did a pass through the code with Checkstyle;
Considering the majorness of this PR, I'll want to experiment with it on practice later
Co-authored-by: Ennui Langeweile <85590273+EnnuiL@users.noreply.github.com>
EnnuiL
left a comment
There was a problem hiding this comment.
CI's broken due to missing headers; Fix CI, and I'll re-review again :P
…braries into data-driven-models
|
Note. This pr will break geckolib, so maybe we should figure something out before killing that mod |
EnnuiL
left a comment
There was a problem hiding this comment.
This PR now makes more sense to me!
There was a problem hiding this comment.
You'll need to copy the icon again! I had ran oxipng through everything :p
|
|
||
| @Invoker("<init>") | ||
| static ModelCuboidData create(@Nullable String string, float f, float g, float h, float i, float j, float k, float l, float m, Dilation dilation, boolean bl, float n, float o, Set<Direction> directions) { | ||
| throw new AssertionError("Mixin injection failed."); |
There was a problem hiding this comment.
| throw new AssertionError("Mixin injection failed."); | |
| throw new IllegalStateException("Mixin injection failed."); |
| Set<Direction> directions(); | ||
|
|
||
| @Invoker("<init>") | ||
| static ModelCuboidData create(@Nullable String string, float f, float g, float h, float i, float j, float k, float l, float m, Dilation dilation, boolean bl, float n, float o, Set<Direction> directions) { |
There was a problem hiding this comment.
I do wonder if this method has arg names now
| public record AnimationType(Codec<Animation> codec) { | ||
| } |
There was a problem hiding this comment.
| public record AnimationType(Codec<Animation> codec) { | |
| } | |
| public record AnimationType(Codec<Animation> codec) {} |
TODO:
Don't use regex for model layer parsing