/* * Derived from Epic Fight (https://github.com/Epic-Fight/epicfight) * by the Epic Fight Team, licensed under GPLv3. * Modifications © 2026 TiedUp! Remake Contributors, distributed under GPLv3. */ package com.tiedup.remake.rig; import java.util.Map; import net.minecraft.resources.ResourceLocation; import com.tiedup.remake.rig.anim.types.DirectStaticAnimation; import com.tiedup.remake.rig.armature.Armature; import com.tiedup.remake.rig.armature.Joint; /** * Remplace les registries {@code yesman.epicfight.gameasset.Animations} et * {@code yesman.epicfight.gameasset.Armatures} du fork upstream. TiedUp * n'utilise PAS les animations combat EF (BIPED_IDLE, BIPED_WALK, etc. — * ARR assets) — on authore les nôtres en Phase 4 via addon Blender. * *

Ce registry expose juste :

* * *

Les vrais registries TiedUp (TiedUpAnimationRegistry, TiedUpArmatures, * TiedUpMeshRegistry) sont prévus en Phase 2-3 et gèreront le scan resource * pack + lookup par ResourceLocation.

*/ public final class TiedUpRigRegistry { private TiedUpRigRegistry() {} /** * Animation singleton "ne fait rien". Utilisée par le runtime comme * fallback quand aucune animation n'est active sur une layer. * *

Équivalent de {@code TiedUpRigRegistry.EMPTY_ANIMATION} du fork upstream * (cf. Animations.java:27 EF).

*/ public static final DirectStaticAnimation EMPTY_ANIMATION = new DirectStaticAnimation() { public static final ResourceLocation EMPTY_ANIMATION_REGISTRY_NAME = ResourceLocation.fromNamespaceAndPath(TiedUpRigConstants.MODID, "empty"); @Override public void loadAnimation() { } @Override public ResourceLocation registryName() { return EMPTY_ANIMATION_REGISTRY_NAME; } }; /** * Interface fonctionnelle de construction d'armature. Re-exposée depuis * {@code TiedUpRigRegistry.ArmatureContructor} upstream pour que les callers * (JsonAssetLoader, etc.) aient accès au même type. */ @FunctionalInterface public interface ArmatureContructor { T invoke(String name, int jointNumber, Joint joint, Map jointMap); } }