@Environment(value=CLIENT) public class IllagerEntityModel<T extends IllagerEntity> extends CompositeEntityModel<T> implements ModelWithArms, ModelWithHead
Modifier and Type | Field and Description |
---|---|
private ModelPart |
arms |
private ModelPart |
hat |
private ModelPart |
head |
private ModelPart |
leftAttackingArm |
private ModelPart |
leftLeg |
private ModelPart |
rightAttackingArm |
private ModelPart |
rightLeg |
private ModelPart |
torso |
child, handSwingProgress, riding
layerFactory, textureHeight, textureWidth
Constructor and Description |
---|
IllagerEntityModel(float scale,
float pivotY,
int textureWidth,
int textureHeight) |
Modifier and Type | Method and Description |
---|---|
private ModelPart |
getAttackingArm(Arm arm) |
ModelPart |
getHat() |
ModelPart |
getHead() |
Iterable<ModelPart> |
getParts() |
void |
setAngles(T t,
float float2,
float float3,
float float4,
float float5,
float float6) |
void |
setArmAngle(Arm arm,
MatrixStack matrices) |
render
animateModel, copyStateTo
private final ModelPart head
private final ModelPart hat
private final ModelPart torso
private final ModelPart arms
private final ModelPart rightLeg
private final ModelPart leftLeg
private final ModelPart rightAttackingArm
private final ModelPart leftAttackingArm
public IllagerEntityModel(float scale, float pivotY, int textureWidth, int textureHeight)
public Iterable<ModelPart> getParts()
getParts
in class CompositeEntityModel<T extends IllagerEntity>
public void setAngles(T t, float float2, float float3, float float4, float float5, float float6)
setAngles
in class EntityModel<T extends IllagerEntity>
public ModelPart getHat()
public ModelPart getHead()
getHead
in interface ModelWithHead
public void setArmAngle(Arm arm, MatrixStack matrices)
setArmAngle
in interface ModelWithArms