Class ModelHorse

java.lang.Object
net.minecraft.src.ModelBase
net.minecraft.src.ModelHorse

public class ModelHorse extends ModelBase
  • Constructor Details

    • ModelHorse

      public ModelHorse()
      Initializes all model parts for the horse, including the body, head, tail, legs, saddle, chest, and reins.
  • Method Details

    • render

      public void render(Entity par1Entity, float limbSwing, float limbSwingAmount, float ageInTicks, float headYaw, float headPitch, float scale)
      Renders the horse model. Dynamically shows or hides attachments (saddle, chest, reins) and applies scaling for baby horses. Visibility is set based on saddle, chest, and hunger state.
      Overrides:
      render in class ModelBase
    • setLivingAnimations

      public void setLivingAnimations(EntityLivingBase par1EntityLivingBase, float limbSwing, float limbSwingAmount, float partial)
      Sets rotation angles and positions for all body parts according to the horse's animation state, such as grazing, rearing, mouth movement, tail swinging, and kicking.
      Overrides:
      setLivingAnimations in class ModelBase