@Environment(value=CLIENT) public class VillagerResemblingModel<T extends Entity> extends CompositeEntityModel<T> implements ModelWithHead, ModelWithHat
Modifier and Type | Field and Description |
---|---|
protected ModelPart |
arms |
protected ModelPart |
field_17141 |
protected ModelPart |
field_17142 |
protected ModelPart |
head |
protected ModelPart |
leftLeg |
protected ModelPart |
nose |
protected ModelPart |
rightLeg |
protected ModelPart |
robe |
protected ModelPart |
torso |
child, handSwingProgress, riding
layerFactory, textureHeight, textureWidth
Constructor and Description |
---|
VillagerResemblingModel(float scale) |
VillagerResemblingModel(float scale,
int textureWidth,
int textureHeight) |
Modifier and Type | Method and Description |
---|---|
ModelPart |
getHead() |
Iterable<ModelPart> |
getParts() |
void |
setAngles(T entity,
float limbAngle,
float limbDistance,
float animationProgress,
float headYaw,
float headPitch) |
void |
setHatVisible(boolean visible) |
render
animateModel, copyStateTo
protected ModelPart head
protected ModelPart field_17141
protected final ModelPart field_17142
protected final ModelPart torso
protected final ModelPart robe
protected final ModelPart arms
protected final ModelPart rightLeg
protected final ModelPart leftLeg
protected final ModelPart nose
public VillagerResemblingModel(float scale)
public VillagerResemblingModel(float scale, int textureWidth, int textureHeight)
public Iterable<ModelPart> getParts()
getParts
in class CompositeEntityModel<T extends Entity>
public void setAngles(T entity, float limbAngle, float limbDistance, float animationProgress, float headYaw, float headPitch)
setAngles
in class EntityModel<T extends Entity>
public ModelPart getHead()
getHead
in interface ModelWithHead
public void setHatVisible(boolean visible)
setHatVisible
in interface ModelWithHat