Interface IModelPartProvider<T extends net.minecraft.world.entity.LivingEntity>


public interface IModelPartProvider<T extends net.minecraft.world.entity.LivingEntity>
  • Method Summary

    Modifier and Type
    Method
    Description
    Used to map out the model hierarchy for animations.
  • Method Details

    • getRootAndChildren

      ModelInfo getRootAndChildren()
      Used to map out the model hierarchy for animations. See definition of ModelInfo. 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