Class QuadrupedEntityModel<T extends Entity>
java.lang.Object
net.minecraft.client.model.Model
net.minecraft.client.render.entity.model.EntityModel<E>
net.minecraft.client.render.entity.model.AnimalModel<T>
net.minecraft.client.render.entity.model.QuadrupedEntityModel<T>
- Direct Known Subclasses:
CowEntityModel
,PandaEntityModel
,PigEntityModel
,PolarBearEntityModel
,SheepEntityModel
,SheepWoolEntityModel
,TurtleEntityModel
@Environment(CLIENT) public class QuadrupedEntityModel<T extends Entity> extends AnimalModel<T>
-
Field Summary
Fields Modifier and Type Field Description protected ModelPart
backLeftLeg
protected ModelPart
backRightLeg
protected ModelPart
frontLeftLeg
protected ModelPart
frontRightLeg
protected ModelPart
head
protected ModelPart
torso
Fields inherited from class net.minecraft.client.render.entity.model.EntityModel
child, handSwingProgress, riding
Fields inherited from class net.minecraft.client.model.Model
layerFactory, textureHeight, textureWidth
-
Constructor Summary
Constructors Constructor Description QuadrupedEntityModel(int legHeight, float scale, boolean headScaled, float childHeadYOffset, float childHeadZOffset, float invertedChildHeadScale, float invertedChildBodyScale, int childBodyYOffset)
-
Method Summary
Modifier and Type Method Description protected Iterable<ModelPart>
getBodyParts()
protected Iterable<ModelPart>
getHeadParts()
void
setAngles(T entity, float limbAngle, float limbDistance, float animationProgress, float headYaw, float headPitch)
Methods inherited from class net.minecraft.client.render.entity.model.AnimalModel
render
Methods inherited from class net.minecraft.client.render.entity.model.EntityModel
animateModel, copyStateTo
-
Field Details
-
head
-
torso
-
backRightLeg
-
backLeftLeg
-
frontRightLeg
-
frontLeftLeg
-
-
Constructor Details
-
QuadrupedEntityModel
public QuadrupedEntityModel(int legHeight, float scale, boolean headScaled, float childHeadYOffset, float childHeadZOffset, float invertedChildHeadScale, float invertedChildBodyScale, int childBodyYOffset)
-
-
Method Details
-
getHeadParts
- Specified by:
getHeadParts
in classAnimalModel<T extends Entity>
-
getBodyParts
- Specified by:
getBodyParts
in classAnimalModel<T extends Entity>
-
setAngles
public void setAngles(T entity, float limbAngle, float limbDistance, float animationProgress, float headYaw, float headPitch)- Specified by:
setAngles
in classEntityModel<T extends Entity>
-