@Environment(value=CLIENT) public class ParrotEntityModel extends CompositeEntityModel<ParrotEntity>
Modifier and Type | Class and Description |
---|---|
static class |
ParrotEntityModel.Pose |
Modifier and Type | Field and Description |
---|---|
private ModelPart |
forehead |
private ModelPart |
head |
private ModelPart |
headFeathers |
private ModelPart |
innerBeak |
private ModelPart |
leftLeg |
private ModelPart |
leftWing |
private ModelPart |
outerBeak |
private ModelPart |
rightLeg |
private ModelPart |
rightWing |
private ModelPart |
tail |
private ModelPart |
torso |
child, handSwingProgress, riding
layerFactory, textureHeight, textureWidth
Constructor and Description |
---|
ParrotEntityModel() |
Modifier and Type | Method and Description |
---|---|
void |
animateModel(ParrotEntity parrotEntity,
float float2,
float float3,
float float4) |
private void |
animateModel(ParrotEntityModel.Pose pose) |
Iterable<ModelPart> |
getParts() |
private static ParrotEntityModel.Pose |
getPose(ParrotEntity parrot) |
void |
poseOnShoulder(MatrixStack matrices,
VertexConsumer vertexConsumer,
int light,
int overlay,
float limbAngle,
float limbDistance,
float headYaw,
float headPitch,
int danceAngle) |
void |
setAngles(ParrotEntity parrotEntity,
float float2,
float float3,
float float4,
float float5,
float float6) |
private void |
setAngles(ParrotEntityModel.Pose pose,
int danceAngle,
float limbAngle,
float limbDistance,
float age,
float headYaw,
float headPitch) |
render
copyStateTo
private final ModelPart torso
private final ModelPart tail
private final ModelPart leftWing
private final ModelPart rightWing
private final ModelPart head
private final ModelPart forehead
private final ModelPart innerBeak
private final ModelPart outerBeak
private final ModelPart headFeathers
private final ModelPart leftLeg
private final ModelPart rightLeg
public Iterable<ModelPart> getParts()
getParts
in class CompositeEntityModel<ParrotEntity>
public void setAngles(ParrotEntity parrotEntity, float float2, float float3, float float4, float float5, float float6)
setAngles
in class EntityModel<ParrotEntity>
public void animateModel(ParrotEntity parrotEntity, float float2, float float3, float float4)
animateModel
in class EntityModel<ParrotEntity>
public void poseOnShoulder(MatrixStack matrices, VertexConsumer vertexConsumer, int light, int overlay, float limbAngle, float limbDistance, float headYaw, float headPitch, int danceAngle)
private void setAngles(ParrotEntityModel.Pose pose, int danceAngle, float limbAngle, float limbDistance, float age, float headYaw, float headPitch)
private void animateModel(ParrotEntityModel.Pose pose)
private static ParrotEntityModel.Pose getPose(ParrotEntity parrot)