Package net.minecraft.client.model
Class HumanoidModel<T extends LivingEntity>
java.lang.Object
net.minecraft.client.model.Model
net.minecraft.client.model.EntityModel<T>
net.minecraft.client.model.AgeableListModel<T>
net.minecraft.client.model.HumanoidModel<T>
- All Implemented Interfaces:
ArmedModel,HeadedModel
- Direct Known Subclasses:
AbstractZombieModel,ArmorStandArmorModel,EndermanModel,HumanoidArmorModel,PlayerModel,SkeletonModel,ZombieVillagerModel
public class HumanoidModel<T extends LivingEntity>
extends AgeableListModel<T>
implements ArmedModel, HeadedModel
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ModelPartbooleanprivate static final floatfinal ModelPartThe Biped's Headwear.static final floatfinal ModelPartprivate static final floatprivate static final floatfinal ModelPartThe Biped's Left Armfinal ModelPartThe Biped's Left Legstatic final floatprivate static final floatstatic final floatfinal ModelPartThe Biped's Right Armfinal ModelPartThe Biped's Right Legprivate static final floatprivate static final floatprivate static final floatfloatstatic final floatstatic final floatFields inherited from class net.minecraft.client.model.EntityModel
attackTime, riding, youngFields inherited from class net.minecraft.client.model.Model
renderType -
Constructor Summary
ConstructorsConstructorDescriptionHumanoidModel(ModelPart pRoot) HumanoidModel(ModelPart pRoot, Function<ResourceLocation, RenderType> pRenderType) -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyPropertiesTo(HumanoidModel<T> pModel) static MeshDefinitioncreateMesh(CubeDeformation pCubeDeformation, float pYOffset) protected ModelPartgetArm(HumanoidArm pSide) private HumanoidArmgetAttackArm(T pEntity) getHead()private voidposeBlockingArm(ModelPart pArm, boolean pIsRightArm) private voidposeLeftArm(T pLivingEntity) private voidposeRightArm(T pLivingEntity) voidprepareMobModel(T pEntity, float pLimbSwing, float pLimbSwingAmount, float pPartialTick) private floatquadraticArmUpdate(float pLimbSwing) protected floatrotlerpRad(float pAngle, float pMaxAngle, float pMul) voidsetAllVisible(boolean pVisible) voidsetupAnim(T pEntity, float pLimbSwing, float pLimbSwingAmount, float pAgeInTicks, float pNetHeadYaw, float pHeadPitch) Sets this entity's model rotation anglesprotected voidsetupAttackAnimation(T pLivingEntity, float pAgeInTicks) voidtranslateToHand(HumanoidArm pSide, PoseStack pPoseStack) 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
renderToBuffer, renderType
-
Field Details
-
OVERLAY_SCALE
public static final float OVERLAY_SCALE- See Also:
-
HAT_OVERLAY_SCALE
public static final float HAT_OVERLAY_SCALE- See Also:
-
LEGGINGS_OVERLAY_SCALE
public static final float LEGGINGS_OVERLAY_SCALE- See Also:
-
DUCK_WALK_ROTATION
private static final float DUCK_WALK_ROTATION- See Also:
-
SPYGLASS_ARM_ROT_Y
private static final float SPYGLASS_ARM_ROT_Y- See Also:
-
SPYGLASS_ARM_ROT_X
private static final float SPYGLASS_ARM_ROT_X- See Also:
-
SPYGLASS_ARM_CROUCH_ROT_X
private static final float SPYGLASS_ARM_CROUCH_ROT_X- See Also:
-
HIGHEST_SHIELD_BLOCKING_ANGLE
private static final float HIGHEST_SHIELD_BLOCKING_ANGLE- See Also:
-
LOWEST_SHIELD_BLOCKING_ANGLE
private static final float LOWEST_SHIELD_BLOCKING_ANGLE- See Also:
-
HORIZONTAL_SHIELD_MOVEMENT_LIMIT
private static final float HORIZONTAL_SHIELD_MOVEMENT_LIMIT- See Also:
-
TOOT_HORN_XROT_BASE
public static final float TOOT_HORN_XROT_BASE- See Also:
-
TOOT_HORN_YROT_BASE
public static final float TOOT_HORN_YROT_BASE- See Also:
-
head
-
hat
The Biped's Headwear. Used for the outer layer of player skins. -
body
-
rightArm
The Biped's Right Arm -
leftArm
The Biped's Left Arm -
rightLeg
The Biped's Right Leg -
leftLeg
The Biped's Left Leg -
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
public void prepareMobModel(T pEntity, float pLimbSwing, float pLimbSwingAmount, float pPartialTick) - Overrides:
prepareMobModelin classEntityModel<T extends LivingEntity>
-
setupAnim
public void setupAnim(T pEntity, float pLimbSwing, float pLimbSwingAmount, float pAgeInTicks, float pNetHeadYaw, float pHeadPitch) Sets this entity's model rotation angles- Specified by:
setupAnimin classEntityModel<T extends LivingEntity>
-
poseRightArm
-
poseLeftArm
-
poseBlockingArm
-
setupAttackAnimation
-
rotlerpRad
protected float rotlerpRad(float pAngle, float pMaxAngle, float pMul) -
quadraticArmUpdate
private float quadraticArmUpdate(float pLimbSwing) -
copyPropertiesTo
-
setAllVisible
public void setAllVisible(boolean pVisible) -
translateToHand
- Specified by:
translateToHandin interfaceArmedModel
-
getArm
-
getHead
- Specified by:
getHeadin interfaceHeadedModel
-
getAttackArm
-