Class PlayerEntityModel<T extends LivingEntity>
java.lang.Object
net.minecraft.client.model.Model
net.minecraft.client.render.entity.model.EntityModel<T>
net.minecraft.client.render.entity.model.AnimalModel<T>
net.minecraft.client.render.entity.model.BipedEntityModel<T>
net.minecraft.client.render.entity.model.PlayerEntityModel<T>
- All Implemented Interfaces:
ModelWithArms,ModelWithHead
- Direct Known Subclasses:
PiglinEntityModel
@Environment(CLIENT)
public class PlayerEntityModel<T extends LivingEntity>
extends BipedEntityModel<T>
Represents the model of a player-like entity.
| Part Name | Parent | Corresponding Field |
|---|---|---|
| "hat" | Root part | BipedEntityModel.hat |
| "head" | Root part | BipedEntityModel.head |
| "body" | Root part | BipedEntityModel.body |
| "right_arm" | Root part | BipedEntityModel.rightArm |
| "left_arm" | Root part | BipedEntityModel.leftArm |
| "right_leg" | Root part | BipedEntityModel.rightLeg |
| "left_leg" | Root part | BipedEntityModel.leftLeg |
| "ear"<T extends LivingEntity> | Root part | ear |
| "cloak"<T extends LivingEntity> | Root part | cloak |
| "left_sleeve"<T extends LivingEntity> | Root part | leftSleeve |
| "right_sleeve"<T extends LivingEntity> | Root part | rightSleeve |
| "left_pants"<T extends LivingEntity> | Root part | leftPants |
| "right_pants"<T extends LivingEntity> | Root part | rightPants |
| "jacket" | Root part | jacket |
- Mappings:
Namespace Name named net/minecraft/client/render/entity/model/PlayerEntityModelintermediary net/minecraft/class_591official fwp
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.render.entity.model.BipedEntityModel
BipedEntityModel.ArmPose -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ModelPartprivate static final StringThe key of the cloak model part, whose value is "cloak".private final ModelPartprivate static final StringThe key of the ear model part, whose value is "ear".final ModelPartprivate static final StringThe key of the left pants model part, whose value is "left_pants".private static final StringThe key of the left sleeve model part, whose value is "left_sleeve".final ModelPartfinal ModelPartAll the parts.private static final StringThe key of the right pants model part, whose value is "right_pants".private static final StringThe key of the right sleeve model part, whose value is "right_sleeve".final ModelPartfinal ModelPartprivate final booleanFields inherited from class net.minecraft.client.render.entity.model.BipedEntityModel
body, field_32505, field_32506, field_39069, field_39070, field_42513, hat, head, leaningPitch, leftArm, leftArmPose, leftLeg, rightArm, rightArmPose, rightLeg, sneakingFields inherited from class net.minecraft.client.render.entity.model.EntityModel
child, handSwingProgress, ridingFields inherited from class net.minecraft.client.model.Model
layerFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRandomPart(Random random) static ModelDatagetTexturedModelData(Dilation dilation, boolean slim) voidrenderCape(MatrixStack matrices, VertexConsumer vertices, int light, int overlay) voidrenderEars(MatrixStack matrices, VertexConsumer vertices, int light, int overlay) voidvoidsetArmAngle(Arm arm, MatrixStack matrices) voidsetVisible(boolean visible) Methods inherited from class net.minecraft.client.render.entity.model.BipedEntityModel
animateArms, animateModel, copyBipedStateTo, getArm, getHead, getHeadParts, getModelData, lerpAngleMethods inherited from class net.minecraft.client.render.entity.model.AnimalModel
renderMethods inherited from class net.minecraft.client.render.entity.model.EntityModel
copyStateTo
-
Field Details
-
EAR
The key of the ear model part, whose value is "ear".- See Also:
- Mappings:
Namespace Name Mixin selector named EARLnet/minecraft/client/render/entity/model/PlayerEntityModel;EAR:Ljava/lang/String;intermediary field_32538Lnet/minecraft/class_591;field_32538:Ljava/lang/String;official aLfwp;a:Ljava/lang/String;
-
CLOAK
The key of the cloak model part, whose value is "cloak".- See Also:
- Mappings:
Namespace Name Mixin selector named CLOAKLnet/minecraft/client/render/entity/model/PlayerEntityModel;CLOAK:Ljava/lang/String;intermediary field_32539Lnet/minecraft/class_591;field_32539:Ljava/lang/String;official ALfwp;A:Ljava/lang/String;
-
LEFT_SLEEVE
The key of the left sleeve model part, whose value is "left_sleeve".- See Also:
- Mappings:
Namespace Name Mixin selector named LEFT_SLEEVELnet/minecraft/client/render/entity/model/PlayerEntityModel;LEFT_SLEEVE:Ljava/lang/String;intermediary field_32540Lnet/minecraft/class_591;field_32540:Ljava/lang/String;official BLfwp;B:Ljava/lang/String;
-
RIGHT_SLEEVE
The key of the right sleeve model part, whose value is "right_sleeve".- See Also:
- Mappings:
Namespace Name Mixin selector named RIGHT_SLEEVELnet/minecraft/client/render/entity/model/PlayerEntityModel;RIGHT_SLEEVE:Ljava/lang/String;intermediary field_32541Lnet/minecraft/class_591;field_32541:Ljava/lang/String;official CLfwp;C:Ljava/lang/String;
-
LEFT_PANTS
The key of the left pants model part, whose value is "left_pants".- See Also:
- Mappings:
Namespace Name Mixin selector named LEFT_PANTSLnet/minecraft/client/render/entity/model/PlayerEntityModel;LEFT_PANTS:Ljava/lang/String;intermediary field_32536Lnet/minecraft/class_591;field_32536:Ljava/lang/String;official DLfwp;D:Ljava/lang/String;
-
RIGHT_PANTS
The key of the right pants model part, whose value is "right_pants".- See Also:
- Mappings:
Namespace Name Mixin selector named RIGHT_PANTSLnet/minecraft/client/render/entity/model/PlayerEntityModel;RIGHT_PANTS:Ljava/lang/String;intermediary field_32537Lnet/minecraft/class_591;field_32537:Ljava/lang/String;official ELfwp;E:Ljava/lang/String;
-
parts
All the parts. Used when picking a part to render stuck arrows.- Mappings:
Namespace Name Mixin selector named partsLnet/minecraft/client/render/entity/model/PlayerEntityModel;parts:Ljava/util/List;intermediary field_27466Lnet/minecraft/class_591;field_27466:Ljava/util/List;official FLfwp;F:Ljava/util/List;
-
leftSleeve
- Mappings:
Namespace Name Mixin selector named leftSleeveLnet/minecraft/client/render/entity/model/PlayerEntityModel;leftSleeve:Lnet/minecraft/client/model/ModelPart;intermediary field_3484Lnet/minecraft/class_591;field_3484:Lnet/minecraft/class_630;official bLfwp;b:Lfyk;
-
rightSleeve
- Mappings:
Namespace Name Mixin selector named rightSleeveLnet/minecraft/client/render/entity/model/PlayerEntityModel;rightSleeve:Lnet/minecraft/client/model/ModelPart;intermediary field_3486Lnet/minecraft/class_591;field_3486:Lnet/minecraft/class_630;official wLfwp;w:Lfyk;
-
leftPants
- Mappings:
Namespace Name Mixin selector named leftPantsLnet/minecraft/client/render/entity/model/PlayerEntityModel;leftPants:Lnet/minecraft/client/model/ModelPart;intermediary field_3482Lnet/minecraft/class_591;field_3482:Lnet/minecraft/class_630;official xLfwp;x:Lfyk;
-
rightPants
- Mappings:
Namespace Name Mixin selector named rightPantsLnet/minecraft/client/render/entity/model/PlayerEntityModel;rightPants:Lnet/minecraft/client/model/ModelPart;intermediary field_3479Lnet/minecraft/class_591;field_3479:Lnet/minecraft/class_630;official yLfwp;y:Lfyk;
-
jacket
- Mappings:
Namespace Name Mixin selector named jacketLnet/minecraft/client/render/entity/model/PlayerEntityModel;jacket:Lnet/minecraft/client/model/ModelPart;intermediary field_3483Lnet/minecraft/class_591;field_3483:Lnet/minecraft/class_630;official zLfwp;z:Lfyk;
-
cloak
- Mappings:
Namespace Name Mixin selector named cloakLnet/minecraft/client/render/entity/model/PlayerEntityModel;cloak:Lnet/minecraft/client/model/ModelPart;intermediary field_3485Lnet/minecraft/class_591;field_3485:Lnet/minecraft/class_630;official GLfwp;G:Lfyk;
-
ear
- Mappings:
Namespace Name Mixin selector named earLnet/minecraft/client/render/entity/model/PlayerEntityModel;ear:Lnet/minecraft/client/model/ModelPart;intermediary field_3481Lnet/minecraft/class_591;field_3481:Lnet/minecraft/class_630;official HLfwp;H:Lfyk;
-
thinArms
private final boolean thinArms- Mappings:
Namespace Name Mixin selector named thinArmsLnet/minecraft/client/render/entity/model/PlayerEntityModel;thinArms:Zintermediary field_3480Lnet/minecraft/class_591;field_3480:Zofficial ILfwp;I:Z
-
-
Constructor Details
-
PlayerEntityModel
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/render/entity/model/PlayerEntityModel;<init>(Lnet/minecraft/client/model/ModelPart;Z)Vintermediary <init>Lnet/minecraft/class_591;<init>(Lnet/minecraft/class_630;Z)Vofficial <init>Lfwp;<init>(Lfyk;Z)V
-
-
Method Details
-
getTexturedModelData
- Mappings:
Namespace Name Mixin selector named getTexturedModelDataLnet/minecraft/client/render/entity/model/PlayerEntityModel;getTexturedModelData(Lnet/minecraft/client/model/Dilation;Z)Lnet/minecraft/client/model/ModelData;intermediary method_32028Lnet/minecraft/class_591;method_32028(Lnet/minecraft/class_5605;Z)Lnet/minecraft/class_5609;official aLfwp;a(Lfyo;Z)Lfys;
-
getBodyParts
- Overrides:
getBodyPartsin classBipedEntityModel<T extends LivingEntity>- Mappings:
Namespace Name Mixin selector named getBodyPartsLnet/minecraft/client/render/entity/model/AnimalModel;getBodyParts()Ljava/lang/Iterable;intermediary method_22948Lnet/minecraft/class_4592;method_22948()Ljava/lang/Iterable;official bLfuf;b()Ljava/lang/Iterable;
-
renderEars
- Mappings:
Namespace Name Mixin selector named renderEarsLnet/minecraft/client/render/entity/model/PlayerEntityModel;renderEars(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumer;II)Vintermediary method_2824Lnet/minecraft/class_591;method_2824(Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;II)Vofficial bLfwp;b(Lfbi;Lfbm;II)V
-
renderCape
- Mappings:
Namespace Name Mixin selector named renderCapeLnet/minecraft/client/render/entity/model/PlayerEntityModel;renderCape(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumer;II)Vintermediary method_2823Lnet/minecraft/class_591;method_2823(Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;II)Vofficial cLfwp;c(Lfbi;Lfbm;II)V
-
setAngles
- Overrides:
setAnglesin classBipedEntityModel<T extends LivingEntity>- Mappings:
Namespace Name Mixin selector named setAnglesLnet/minecraft/client/render/entity/model/PlayerEntityModel;setAngles(Lnet/minecraft/entity/LivingEntity;FFFFF)Vintermediary method_17087Lnet/minecraft/class_591;method_17087(Lnet/minecraft/class_1309;FFFFF)Vofficial method_17087Lfwp;method_17087(Lbtn;FFFFF)V
-
setVisible
public void setVisible(boolean visible) - Overrides:
setVisiblein classBipedEntityModel<T extends LivingEntity>- Mappings:
Namespace Name Mixin selector named setVisibleLnet/minecraft/client/render/entity/model/BipedEntityModel;setVisible(Z)Vintermediary method_2805Lnet/minecraft/class_572;method_2805(Z)Vofficial c_Lfvx;c_(Z)V
-
setArmAngle
- Specified by:
setArmAnglein interfaceModelWithArms- Overrides:
setArmAnglein classBipedEntityModel<T extends LivingEntity>- Mappings:
Namespace Name Mixin selector named setArmAngleLnet/minecraft/client/render/entity/model/ModelWithArms;setArmAngle(Lnet/minecraft/util/Arm;Lnet/minecraft/client/util/math/MatrixStack;)Vintermediary method_2803Lnet/minecraft/class_3881;method_2803(Lnet/minecraft/class_1306;Lnet/minecraft/class_4587;)Vofficial aLfuj;a(Lbtg;Lfbi;)V
-
getRandomPart
- Mappings:
Namespace Name Mixin selector named getRandomPartLnet/minecraft/client/render/entity/model/PlayerEntityModel;getRandomPart(Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/client/model/ModelPart;intermediary method_22697Lnet/minecraft/class_591;method_22697(Lnet/minecraft/class_5819;)Lnet/minecraft/class_630;official aLfwp;a(Layw;)Lfyk;
-