Class PlayerModel
java.lang.Object
net.minecraft.client.model.Model<AvatarRenderState>
net.minecraft.client.model.EntityModel<AvatarRenderState>
net.minecraft.client.model.HumanoidModel<AvatarRenderState>
net.minecraft.client.model.player.PlayerModel
- All Implemented Interfaces:
ArmedModel<AvatarRenderState>,HeadedModel
- Direct Known Subclasses:
PlayerCapeModel,PlayerEarsModel
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.model.HumanoidModel
HumanoidModel.ArmPoseNested classes/interfaces inherited from class net.minecraft.client.model.Model
Model.Simple -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ModelPartprotected static final Stringprotected static final Stringfinal ModelPartfinal ModelPartprotected static final Stringprotected static final Stringfinal ModelPartfinal ModelPartprivate final booleanFields inherited from class net.minecraft.client.model.HumanoidModel
BABY_TRANSFORMER, body, hat, HAT_OVERLAY_SCALE, head, leftArm, leftLeg, LEGGINGS_OVERLAY_SCALE, OVERLAY_SCALE, rightArm, rightLeg, TOOT_HORN_XROT_BASE, TOOT_HORN_YROT_BASEFields inherited from class net.minecraft.client.model.EntityModel
MODEL_Y_OFFSETFields inherited from class net.minecraft.client.model.Model
renderType, root -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ArmorModelSet<MeshDefinition> createArmorMeshSet(CubeDeformation innerCubeDeformation, CubeDeformation outerCubeDeformation) static MeshDefinitioncreateMesh(CubeDeformation cubeDeformation, boolean slim) getRandomBodyPart(RandomSource random) voidsetAllVisible(boolean p_481738_) voidsetupAnim(AvatarRenderState p_482112_) voidtranslateToHand(AvatarRenderState p_479276_, HumanoidArm p_478991_, PoseStack p_480367_) Methods inherited from class net.minecraft.client.model.HumanoidModel
createArmorMeshSet, createMesh, getArm, getHead, setupAttackAnimation, translateToHandMethods inherited from class net.minecraft.client.model.Model
allParts, getAnimation, renderToBuffer, renderToBuffer, renderType, resetPose, rootMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.model.HeadedModel
translateToHead
-
Field Details
-
LEFT_SLEEVE
- See Also:
-
RIGHT_SLEEVE
- See Also:
-
LEFT_PANTS
- See Also:
-
RIGHT_PANTS
- See Also:
-
bodyParts
-
leftSleeve
-
rightSleeve
-
leftPants
-
rightPants
-
jacket
-
slim
private final boolean slim
-
-
Constructor Details
-
PlayerModel
-
-
Method Details
-
createMesh
-
createArmorMeshSet
public static ArmorModelSet<MeshDefinition> createArmorMeshSet(CubeDeformation innerCubeDeformation, CubeDeformation outerCubeDeformation) -
setupAnim
- Overrides:
setupAnimin classHumanoidModel<AvatarRenderState>
-
setAllVisible
public void setAllVisible(boolean p_481738_) - Overrides:
setAllVisiblein classHumanoidModel<AvatarRenderState>
-
translateToHand
public void translateToHand(AvatarRenderState p_479276_, HumanoidArm p_478991_, PoseStack p_480367_) -
getRandomBodyPart
-