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 HumanoidModel
HumanoidModel.ArmPoseNested classes/interfaces inherited from class 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 HumanoidModel
ADULT_ARMOR_PARTS_PER_SLOT, BABY_ARMOR_PARTS_PER_SLOT, 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 EntityModel
MODEL_Y_OFFSETFields inherited from class Model
renderType, root -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ArmorModelSet<MeshDefinition> createArmorMeshSet(CubeDeformation innerDeformation, CubeDeformation outerDeformation) static MeshDefinitioncreateMesh(CubeDeformation scale, boolean slim) getRandomBodyPart(RandomSource random) voidsetupAnim(AvatarRenderState state) voidtranslateToHand(AvatarRenderState state, HumanoidArm arm, PoseStack poseStack) Methods inherited from class HumanoidModel
createArmorMeshSet, createBabyArmorMeshSet, createMesh, getArm, getHead, setupAttackAnimation, translateToHandMethods inherited from class Model
allParts, getAnimation, renderToBuffer, renderToBuffer, renderType, resetPose, rootMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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 innerDeformation, CubeDeformation outerDeformation) -
setupAnim
- Overrides:
setupAnimin classHumanoidModel<AvatarRenderState>
-
translateToHand
-
getRandomBodyPart
-