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 classBipedEntityModel.ArmPose -
Field Summary
Fields Modifier and Type Field Description ModelPartbodyModelParthatModelPartheadfloatleaningPitchModelPartleftArmBipedEntityModel.ArmPoseleftArmPoseModelPartleftLegModelPartrightArmBipedEntityModel.ArmPoserightArmPoseModelPartrightLegbooleansneakingFields inherited from class net.minecraft.client.render.entity.model.EntityModel
child, handSwingProgress, ridingFields 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 voidanimateArms(T entity, float animationProgress)voidanimateModel(T t, float float2, float float3, float float4)protected ModelPartgetArm(Arm arm)protected Iterable<ModelPart>getBodyParts()ModelPartgetHead()protected Iterable<ModelPart>getHeadParts()static ModelDatagetModelData(Dilation dilation, float pivotOffsetY)private ArmgetPreferredArm(T entity)protected floatlerpAngle(float angleOne, float angleTwo, float magnitude)private floatmethod_2807(float float2)private voidpositionLeftArm(T entity)private voidpositionRightArm(T entity)voidsetAngles(T t, float float2, float float3, float float4, float float5, float float6)voidsetArmAngle(Arm arm, MatrixStack matrices)voidsetAttributes(BipedEntityModel<T> model)voidsetVisible(boolean visible)Methods inherited from class net.minecraft.client.render.entity.model.AnimalModel
renderMethods 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:
getHeadPartsin classAnimalModel<T extends LivingEntity>
-
getBodyParts
- Specified by:
getBodyPartsin classAnimalModel<T extends LivingEntity>
-
animateModel
- Overrides:
animateModelin classEntityModel<T extends LivingEntity>
-
setAngles
- Specified by:
setAnglesin 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:
setArmAnglein interfaceModelWithArms
-
getArm
-
getHead
- Specified by:
getHeadin interfaceModelWithHead
-
getPreferredArm
-