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 final ModelPartprivate static final Stringprivate final ModelPartprivate static final Stringfinal ModelPartprivate static final Stringprivate static final Stringfinal ModelPartfinal ModelPartprivate static final Stringprivate static final Stringfinal ModelPartfinal ModelPartprivate final booleanFields inherited from class net.minecraft.client.model.HumanoidModel
body, crouching, hat, HAT_OVERLAY_SCALE, head, leftArm, leftArmPose, leftLeg, OVERLAY_SCALE, rightArm, rightArmPose, rightLeg, swimAmount, TOOT_HORN_XROT_BASE, TOOT_HORN_YROT_BASEFields 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(RandomSource p_233439_) 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:
-
CLOAK
- See Also:
-
LEFT_SLEEVE
- See Also:
-
RIGHT_SLEEVE
- See Also:
-
LEFT_PANTS
- See Also:
-
RIGHT_PANTS
- See Also:
-
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
-
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
-