Interface IModelPartProvider<T extends net.minecraft.world.entity.LivingEntity>
public interface IModelPartProvider<T extends net.minecraft.world.entity.LivingEntity>
-
Method Summary
Modifier and TypeMethodDescriptionUsed to map out the model hierarchy for animations.
-
Method Details
-
getRootAndChildren
ModelInfo getRootAndChildren()Used to map out the model hierarchy for animations. See definition ofModelInfo. Example how to do this automatically:// On your EntityModel implements IModelPartProvider<T> public ModelInfo getRootAndChildren() { return ModelInfo.getInfo(this.root).orElse(new ModelInfo(this.root, Collections.emptyList())); }- Returns:
- The root and children of the model
-