Package net.minecraft.client.model
Class PlayerModel<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>
net.minecraft.client.model.PlayerModel<T>
- All Implemented Interfaces:
ArmedModel,HeadedModel
- Direct Known Subclasses:
PiglinModel
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.model.HumanoidModel
HumanoidModel.ArmPose -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ModelPartprivate static Stringprivate ModelPartprivate static Stringprivate static Stringprivate static Stringprivate static Stringprivate static Stringprivate booleanFields inherited from class net.minecraft.client.model.HumanoidModel
body, crouching, hat, HAT_OVERLAY_SCALE, head, leftArm, leftArmPose, leftLeg, OVERLAY_SCALE, rightArm, rightArmPose, rightLeg, swimAmountFields inherited from class net.minecraft.client.model.EntityModel
attackTime, riding, youngFields inherited from class net.minecraft.client.model.Model
renderType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MeshDefinitioncreateMesh(CubeDeformation p_170826_, boolean p_170827_)getRandomModelPart(Random p_103407_)voidrenderCloak(PoseStack p_103412_, VertexConsumer p_103413_, int p_103414_, int p_103415_)voidrenderEars(PoseStack p_103402_, VertexConsumer p_103403_, int p_103404_, int p_103405_)voidsetAllVisible(boolean p_103419_)voidsetupAnim(T p_103395_, float p_103396_, float p_103397_, float p_103398_, float p_103399_, float p_103400_)voidtranslateToHand(HumanoidArm p_103392_, PoseStack p_103393_)Methods inherited from class net.minecraft.client.model.HumanoidModel
copyPropertiesTo, createMesh, getArm, getHead, headParts, prepareMobModel, rotlerpRad, setupAttackAnimationMethods 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
-
EAR
- See Also:
- Constant Field Values
-
CLOAK
- See Also:
- Constant Field Values
-
LEFT_SLEEVE
- See Also:
- Constant Field Values
-
RIGHT_SLEEVE
- See Also:
- Constant Field Values
-
LEFT_PANTS
- See Also:
- Constant Field Values
-
RIGHT_PANTS
- See Also:
- Constant Field Values
-
parts
-
leftSleeve
-
rightSleeve
-
leftPants
-
rightPants
-
jacket
-
cloak
-
ear
-
slim
private final boolean slim
-
-
Constructor Details
-
PlayerModel
-
-
Method Details
-
createMesh
-
bodyParts
- Overrides:
bodyPartsin classHumanoidModel<T extends LivingEntity>
-
renderEars
public void renderEars(PoseStack p_103402_, VertexConsumer p_103403_, int p_103404_, int p_103405_) -
renderCloak
public void renderCloak(PoseStack p_103412_, VertexConsumer p_103413_, int p_103414_, int p_103415_) -
setupAnim
public void setupAnim(T p_103395_, float p_103396_, float p_103397_, float p_103398_, float p_103399_, float p_103400_)- Overrides:
setupAnimin classHumanoidModel<T extends LivingEntity>
-
setAllVisible
public void setAllVisible(boolean p_103419_)- Overrides:
setAllVisiblein classHumanoidModel<T extends LivingEntity>
-
translateToHand
- Specified by:
translateToHandin interfaceArmedModel- Overrides:
translateToHandin classHumanoidModel<T extends LivingEntity>
-
getRandomModelPart
-