Package net.minecraft.src
Class ModelHorse
java.lang.Object
net.minecraft.src.ModelBase
net.minecraft.src.ModelHorse
-
Field Summary
Fields inherited from class net.minecraft.src.ModelBase
boxList, isChild, isRiding, onGround, textureHeight, textureWidth -
Constructor Summary
ConstructorsConstructorDescriptionInitializes all model parts for the horse, including the body, head, tail, legs, saddle, chest, and reins. -
Method Summary
Modifier and TypeMethodDescriptionvoidrender(Entity par1Entity, float limbSwing, float limbSwingAmount, float ageInTicks, float headYaw, float headPitch, float scale) Renders the horse model.voidsetLivingAnimations(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.Methods inherited from class net.minecraft.src.ModelBase
getRandomModelBox, getTextureOffset, setRotationAngles, setTextureOffset
-
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. -
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:
setLivingAnimationsin classModelBase
-