Package net.minecraft.client.model
Class HumanoidModel<T extends LivingEntity>
java.lang.Object
net.minecraft.client.model.Model
net.minecraft.client.model.EntityModel<E>
net.minecraft.client.model.AgeableListModel<T>
net.minecraft.client.model.HumanoidModel<T>
- All Implemented Interfaces:
ArmedModel,HeadedModel
- Direct Known Subclasses:
AbstractZombieModel,ArmorStandArmorModel,EndermanModel,PlayerModel,SkeletonModel,VexModel,ZombieVillagerModel
public class HumanoidModel<T extends LivingEntity>
extends AgeableListModel<T>
implements ArmedModel, HeadedModel
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanstatic floatstatic floatprivate static floatprivate static floatprivate static floatfloatFields inherited from class net.minecraft.client.model.EntityModel
attackTime, riding, youngFields inherited from class net.minecraft.client.model.Model
renderType -
Constructor Summary
ConstructorsConstructorDescriptionHumanoidModel(ModelPart p_170677_)HumanoidModel(ModelPart p_170679_, Function<ResourceLocation,RenderType> p_170680_) -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyPropertiesTo(HumanoidModel<T> p_102873_)static MeshDefinitioncreateMesh(CubeDeformation p_170682_, float p_170683_)protected ModelPartgetArm(HumanoidArm p_102852_)private HumanoidArmgetAttackArm(T p_102857_)getHead()private voidposeLeftArm(T p_102879_)private voidposeRightArm(T p_102876_)voidprepareMobModel(T p_102861_, float p_102862_, float p_102863_, float p_102864_)private floatquadraticArmUpdate(float p_102834_)protected floatrotlerpRad(float p_102836_, float p_102837_, float p_102838_)voidsetAllVisible(boolean p_102880_)voidsetupAnim(T p_102866_, float p_102867_, float p_102868_, float p_102869_, float p_102870_, float p_102871_)protected voidsetupAttackAnimation(T p_102858_, float p_102859_)voidtranslateToHand(HumanoidArm p_102854_, PoseStack p_102855_)Methods inherited from class net.minecraft.client.model.AgeableListModel
renderToBufferMethods inherited from class net.minecraft.client.model.EntityModel
copyPropertiesToMethods inherited from class net.minecraft.client.model.Model
renderType
-
Field Details
-
OVERLAY_SCALE
public static final float OVERLAY_SCALE- See Also:
- Constant Field Values
-
HAT_OVERLAY_SCALE
public static final float HAT_OVERLAY_SCALE- See Also:
- Constant Field Values
-
SPYGLASS_ARM_ROT_Y
private static final float SPYGLASS_ARM_ROT_Y- See Also:
- Constant Field Values
-
SPYGLASS_ARM_ROT_X
private static final float SPYGLASS_ARM_ROT_X- See Also:
- Constant Field Values
-
SPYGLASS_ARM_CROUCH_ROT_X
private static final float SPYGLASS_ARM_CROUCH_ROT_X- See Also:
- Constant Field Values
-
head
-
hat
-
body
-
rightArm
-
leftArm
-
rightLeg
-
leftLeg
-
leftArmPose
-
rightArmPose
-
crouching
public boolean crouching -
swimAmount
public float swimAmount
-
-
Constructor Details
-
HumanoidModel
-
HumanoidModel
-
-
Method Details
-
createMesh
-
headParts
- Specified by:
headPartsin classAgeableListModel<T extends LivingEntity>
-
bodyParts
- Specified by:
bodyPartsin classAgeableListModel<T extends LivingEntity>
-
prepareMobModel
- Overrides:
prepareMobModelin classEntityModel<T extends LivingEntity>
-
setupAnim
public void setupAnim(T p_102866_, float p_102867_, float p_102868_, float p_102869_, float p_102870_, float p_102871_)- Specified by:
setupAnimin classEntityModel<T extends LivingEntity>
-
poseRightArm
-
poseLeftArm
-
setupAttackAnimation
-
rotlerpRad
protected float rotlerpRad(float p_102836_, float p_102837_, float p_102838_) -
quadraticArmUpdate
private float quadraticArmUpdate(float p_102834_) -
copyPropertiesTo
-
setAllVisible
public void setAllVisible(boolean p_102880_) -
translateToHand
- Specified by:
translateToHandin interfaceArmedModel
-
getArm
-
getHead
- Specified by:
getHeadin interfaceHeadedModel
-
getAttackArm
-