@Environment(value=CLIENT) public class BipedEntityModel<T extends LivingEntity> extends AnimalModel<T> implements ModelWithArms, ModelWithHead
Modifier and Type | Class and Description |
---|---|
static class |
BipedEntityModel.ArmPose |
Modifier and Type | Field and Description |
---|---|
ModelPart |
head |
ModelPart |
helmet |
float |
leaningPitch |
ModelPart |
leftArm |
BipedEntityModel.ArmPose |
leftArmPose |
ModelPart |
leftLeg |
ModelPart |
rightArm |
BipedEntityModel.ArmPose |
rightArmPose |
ModelPart |
rightLeg |
boolean |
sneaking |
ModelPart |
torso |
child, handSwingProgress, riding
layerFactory, textureHeight, textureWidth
Modifier | Constructor and Description |
---|---|
|
BipedEntityModel(float scale) |
protected |
BipedEntityModel(float scale,
float pivotY,
int textureWidth,
int textureHeight) |
|
BipedEntityModel(Function<Identifier,RenderLayer> texturedLayerFactory,
float scale,
float pivotY,
int textureWidth,
int textureHeight) |
Modifier and Type | Method and Description |
---|---|
void |
animateModel(T t,
float float2,
float float3,
float float4) |
protected ModelPart |
getArm(Arm arm) |
protected Iterable<ModelPart> |
getBodyParts() |
ModelPart |
getHead() |
protected Iterable<ModelPart> |
getHeadParts() |
protected Arm |
getPreferredArm(T entity) |
protected float |
lerpAngle(float float2,
float float3,
float float4) |
private float |
method_2807(float float2) |
protected void |
method_29353(T t,
float float2) |
private void |
method_30154(T t) |
private void |
method_30155(T t) |
void |
setAngles(T t,
float float2,
float float3,
float float4,
float float5,
float float6) |
void |
setArmAngle(Arm arm,
MatrixStack matrices) |
void |
setAttributes(BipedEntityModel<T> bipedEntityModel) |
void |
setVisible(boolean visible) |
render
copyStateTo
public ModelPart head
public ModelPart helmet
public ModelPart torso
public ModelPart rightArm
public ModelPart leftArm
public ModelPart rightLeg
public ModelPart leftLeg
public BipedEntityModel.ArmPose leftArmPose
public BipedEntityModel.ArmPose rightArmPose
public boolean sneaking
public float leaningPitch
public BipedEntityModel(float scale)
protected BipedEntityModel(float scale, float pivotY, int textureWidth, int textureHeight)
public BipedEntityModel(Function<Identifier,RenderLayer> texturedLayerFactory, float scale, float pivotY, int textureWidth, int textureHeight)
protected Iterable<ModelPart> getHeadParts()
getHeadParts
in class AnimalModel<T extends LivingEntity>
protected Iterable<ModelPart> getBodyParts()
getBodyParts
in class AnimalModel<T extends LivingEntity>
public void animateModel(T t, float float2, float float3, float float4)
animateModel
in class EntityModel<T extends LivingEntity>
public void setAngles(T t, float float2, float float3, float float4, float float5, float float6)
setAngles
in class EntityModel<T extends LivingEntity>
private void method_30154(T t)
private void method_30155(T t)
protected void method_29353(T t, float float2)
protected float lerpAngle(float float2, float float3, float float4)
private float method_2807(float float2)
public void setAttributes(BipedEntityModel<T> bipedEntityModel)
public void setVisible(boolean visible)
public void setArmAngle(Arm arm, MatrixStack matrices)
setArmAngle
in interface ModelWithArms
public ModelPart getHead()
getHead
in interface ModelWithHead