BedrockParticleExporter

public final class BedrockParticleExporter

Passes Blockbench particles through to Bedrock: the Snowstorm files go into the bundle's particles/ folder under namespaced identifiers, locators go onto geometry bones, and particle keyframes become animation particle timelines. Bedrock clients then play the original effect themselves, including components Java cannot show.

Functions

Link copied to clipboard
public static JsonObject clientEntityEffects(String modelId, FileModelConverter converter)
The client entity's effect short names mapped to their bundle identifiers.
Link copied to clipboard
public static String identifier(String modelId, String effect)
Link copied to clipboard
public static JsonObject locators(BoneBlueprint bone, FileModelConverter converter, List<BoneBlueprint> visualBones)
Locators that belong to bone, in Bedrock geometry space.
Link copied to clipboard
public static JsonObject timeline(AnimationBlueprint animation)
The animation's particle keyframes as a Bedrock particle_effects timeline.
Link copied to clipboard
public static void writeHeldItemSidecar(File freeMinecraftModelsAssets, String itemId, FileModelConverter converter)
Describes a held item's particles for ResourcePackManager, which adds them to the item's Bedrock attachable: effect identifiers, locators in Java item model pixels and the looping particle timeline.
Link copied to clipboard
public static void writeParticles(File root, String modelId, FileModelConverter converter)
Writes each effect's particle file (and its texture, when FMM has it) into the bundle.