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 ModelPart
boolean
private static final float
final ModelPart
The Biped's Headwear.static final float
final ModelPart
private static final float
private static final float
final ModelPart
The Biped's Left Armfinal ModelPart
The Biped's Left Legstatic final float
private static final float
static final float
final ModelPart
The Biped's Right Armfinal ModelPart
The Biped's Right Legprivate static final float
private static final float
private static final float
float
static final float
static final float
Fields inherited from class net.minecraft.client.model.EntityModel
attackTime, riding, young
Fields 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 TypeMethodDescriptionvoid
copyPropertiesTo
(HumanoidModel<T> pModel) static MeshDefinition
createMesh
(CubeDeformation pCubeDeformation, float pYOffset) protected ModelPart
getArm
(HumanoidArm pSide) private HumanoidArm
getAttackArm
(T pEntity) getHead()
private void
poseBlockingArm
(ModelPart pArm, boolean pIsRightArm) private void
poseLeftArm
(T pLivingEntity) private void
poseRightArm
(T pLivingEntity) void
prepareMobModel
(T pEntity, float pLimbSwing, float pLimbSwingAmount, float pPartialTick) private float
quadraticArmUpdate
(float pLimbSwing) protected float
rotlerpRad
(float pAngle, float pMaxAngle, float pMul) void
setAllVisible
(boolean pVisible) void
setupAnim
(T pEntity, float pLimbSwing, float pLimbSwingAmount, float pAgeInTicks, float pNetHeadYaw, float pHeadPitch) Sets this entity's model rotation anglesprotected void
setupAttackAnimation
(T pLivingEntity, float pAgeInTicks) void
translateToHand
(HumanoidArm pSide, PoseStack pPoseStack) Methods inherited from class net.minecraft.client.model.AgeableListModel
renderToBuffer
Methods inherited from class net.minecraft.client.model.EntityModel
copyPropertiesTo
Methods 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:
headParts
in classAgeableListModel<T extends LivingEntity>
-
bodyParts
- Specified by:
bodyParts
in classAgeableListModel<T extends LivingEntity>
-
prepareMobModel
public void prepareMobModel(T pEntity, float pLimbSwing, float pLimbSwingAmount, float pPartialTick) - Overrides:
prepareMobModel
in 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:
setupAnim
in 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:
translateToHand
in interfaceArmedModel
-
getArm
-
getHead
- Specified by:
getHead
in interfaceHeadedModel
-
getAttackArm
-