prepareAnimations

public static FmmAnimationGenerator.AnimationIds prepareAnimations(String animBaseId, String animFileBase, JsonObject javaModel, File bedrockPackDir)

Phase G — Step 1 of 2 for the generic pipeline. Writes the three-pose animation file for one model and returns the resulting animation identifiers. Should be called ONCE per (model) so multiple per-base-item attachables can reference the same animation set without re-emitting files.

Return

the animation identifier triple on success, null on failure

Parameters

animBaseId

identifier base for the three animations, e.g. "elitemobs.gear_bronze_sword"; the resulting animation IDs are "animation.<animBaseId>.hold_first_person" etc.

animFileBase

filename stem for the animation file (no extension), e.g. "elitemobs__gear_bronze_sword" writes to animations/<animFileBase>.animation.json

javaModel

parsed Java model JSON, the same one passed to FmmGeometryConverter; its display.head, firstperson_righthand and thirdperson_righthand slots and its geometry bone pivot drive the three poses

bedrockPackDir

output pack root