Package net.minecraft.client.model
Class PlayerModel<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>
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, LEGGINGS_OVERLAY_SCALE, 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 cubeDeformation, boolean slim) getRandomModelPart(RandomSource random) voidrenderCloak(PoseStack poseStack, VertexConsumer buffer, int packedLight, int packedOverlay) voidrenderEars(PoseStack poseStack, VertexConsumer buffer, int packedLight, int packedOverlay) voidsetAllVisible(boolean visible) voidsetupAnim(T entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) Sets this entity's model rotation anglesvoidtranslateToHand(HumanoidArm side, PoseStack poseStack) 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
renderToBuffer, 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
public void renderEars(PoseStack poseStack, VertexConsumer buffer, int packedLight, int packedOverlay) -
renderCloak
public void renderCloak(PoseStack poseStack, VertexConsumer buffer, int packedLight, int packedOverlay) -
setupAnim
public void setupAnim(T entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) Sets this entity's model rotation angles- Overrides:
setupAnimin classHumanoidModel<T extends LivingEntity>
-
setAllVisible
public void setAllVisible(boolean visible) - Overrides:
setAllVisiblein classHumanoidModel<T extends LivingEntity>
-
translateToHand
- Specified by:
translateToHandin interfaceArmedModel- Overrides:
translateToHandin classHumanoidModel<T extends LivingEntity>
-
getRandomModelPart
-