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 root) HumanoidModel(ModelPart root, Function<ResourceLocation, RenderType> renderType) -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyPropertiesTo(HumanoidModel<T> model) static MeshDefinitioncreateMesh(CubeDeformation cubeDeformation, float yOffset) protected ModelPartgetArm(HumanoidArm side) private HumanoidArmgetAttackArm(T entity) getHead()private voidposeBlockingArm(ModelPart arm, boolean isRightArm) private voidposeLeftArm(T livingEntity) private voidposeRightArm(T livingEntity) voidprepareMobModel(T entity, float limbSwing, float limbSwingAmount, float partialTick) private floatquadraticArmUpdate(float limbSwing) protected floatrotlerpRad(float angle, float maxAngle, float mul) voidsetAllVisible(boolean visible) voidsetupAnim(T entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) Sets this entity's model rotation anglesprotected voidsetupAttackAnimation(T livingEntity, float ageInTicks) voidtranslateToHand(HumanoidArm side, PoseStack poseStack) 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
- Overrides:
prepareMobModelin classEntityModel<T extends LivingEntity>
-
setupAnim
public void setupAnim(T entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) Sets this entity's model rotation angles- Specified by:
setupAnimin classEntityModel<T extends LivingEntity>
-
poseRightArm
-
poseLeftArm
-
poseBlockingArm
-
setupAttackAnimation
-
rotlerpRad
protected float rotlerpRad(float angle, float maxAngle, float mul) -
quadraticArmUpdate
private float quadraticArmUpdate(float limbSwing) -
copyPropertiesTo
-
setAllVisible
public void setAllVisible(boolean visible) -
translateToHand
- Specified by:
translateToHandin interfaceArmedModel
-
getArm
-
getHead
- Specified by:
getHeadin interfaceHeadedModel
-
getAttackArm
-