ParticleEffectLibrary

public final class ParticleEffectLibrary

Finds the Snowstorm files a model's particle keyframes use. Blockbench stores only the author's local path, so FMM looks next to the model by that file name and then by effect name (<effect>.particle.json, then <effect>.json), in the model's folder and then its particles/ folder. Problems warn and degrade; they never stop the model from loading.

Functions

Link copied to clipboard
public static Map<String, ResolvedParticleEffect> resolve(File modelFile, AnimationsBlueprint animations, SkeletonBlueprint skeleton)
Resolves every effect the model's animations use and removes keyframes whose effect could not be loaded.
Link copied to clipboard
public static void setWarningSink(Consumer<String> sink)
Redirects warnings and info notices, for tests.