Class BipedEntityModel<T extends LivingEntity>
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.BipedEntityModel<T>
- All Implemented Interfaces:
ModelWithArms
,ModelWithHead
- Direct Known Subclasses:
AbstractZombieModel
,ArmorStandArmorEntityModel
,EndermanEntityModel
,PlayerEntityModel
,SkeletonEntityModel
,VexEntityModel
,ZombieVillagerEntityModel
@Environment(CLIENT) public class BipedEntityModel<T extends LivingEntity> extends AnimalModel<T> implements ModelWithArms, ModelWithHead
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BipedEntityModel.ArmPose
-
Field Summary
Fields Modifier and Type Field Description ModelPart
body
ModelPart
hat
ModelPart
head
float
leaningPitch
ModelPart
leftArm
BipedEntityModel.ArmPose
leftArmPose
ModelPart
leftLeg
ModelPart
rightArm
BipedEntityModel.ArmPose
rightArmPose
ModelPart
rightLeg
boolean
sneaking
Fields inherited from class net.minecraft.client.render.entity.model.EntityModel
child, handSwingProgress, riding
Fields inherited from class net.minecraft.client.model.Model
layerFactory
-
Constructor Summary
Constructors Constructor Description BipedEntityModel(ModelPart root)
BipedEntityModel(ModelPart root, Function<Identifier,RenderLayer> renderLayerFactory)
-
Method Summary
Modifier and Type Method Description protected void
animateArms(T entity, float animationProgress)
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()
static ModelData
getModelData(Dilation dilation, float pivotOffsetY)
private Arm
getPreferredArm(T entity)
protected float
lerpAngle(float angleOne, float angleTwo, float magnitude)
private float
method_2807(float float2)
private void
positionLeftArm(T entity)
private void
positionRightArm(T entity)
void
setAngles(T t, float float2, float float3, float float4, float float5, float float6)
void
setArmAngle(Arm arm, MatrixStack matrices)
void
setAttributes(BipedEntityModel<T> model)
void
setVisible(boolean visible)
Methods inherited from class net.minecraft.client.render.entity.model.AnimalModel
render
Methods inherited from class net.minecraft.client.render.entity.model.EntityModel
copyStateTo
-
Field Details
-
head
-
hat
-
body
-
rightArm
-
leftArm
-
rightLeg
-
leftLeg
-
leftArmPose
-
rightArmPose
-
sneaking
public boolean sneaking -
leaningPitch
public float leaningPitch
-
-
Constructor Details
-
BipedEntityModel
-
BipedEntityModel
-
-
Method Details
-
getModelData
-
getHeadParts
- Specified by:
getHeadParts
in classAnimalModel<T extends LivingEntity>
-
getBodyParts
- Specified by:
getBodyParts
in classAnimalModel<T extends LivingEntity>
-
animateModel
- Overrides:
animateModel
in classEntityModel<T extends LivingEntity>
-
setAngles
- Specified by:
setAngles
in classEntityModel<T extends LivingEntity>
-
positionRightArm
-
positionLeftArm
-
animateArms
-
lerpAngle
protected float lerpAngle(float angleOne, float angleTwo, float magnitude) -
method_2807
private float method_2807(float float2) -
setAttributes
-
setVisible
public void setVisible(boolean visible) -
setArmAngle
- Specified by:
setArmAngle
in interfaceModelWithArms
-
getArm
-
getHead
- Specified by:
getHead
in interfaceModelWithHead
-
getPreferredArm
-