Class PlayerEntityModel
java.lang.Object
net.minecraft.client.model.Model<PlayerEntityRenderState>
net.minecraft.client.render.entity.model.EntityModel<PlayerEntityRenderState>
net.minecraft.client.render.entity.model.BipedEntityModel<PlayerEntityRenderState>
net.minecraft.client.render.entity.model.PlayerEntityModel
- All Implemented Interfaces:
ModelWithArms<PlayerEntityRenderState>,ModelWithHead
- Direct Known Subclasses:
Deadmau5EarsEntityModel,PlayerCapeModel
@Environment(CLIENT)
public class PlayerEntityModel
extends BipedEntityModel<PlayerEntityRenderState>
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 |
| Root part |
invalid reference
|
|
| Root part |
invalid reference
|
|
| "left_sleeve" | Root part | leftSleeve |
| "right_sleeve" | Root part | rightSleeve |
| "left_pants" | Root part | leftPants |
| "right_pants" | Root part | rightPants |
| "jacket" | Root part | jacket |
- Mappings:
Namespace Name named net/minecraft/client/render/entity/model/PlayerEntityModelintermediary net/minecraft/class_591official gsg
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.render.entity.model.BipedEntityModel
BipedEntityModel.ArmPoseNested classes/interfaces inherited from class net.minecraft.client.model.Model
Model.SinglePartModel -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ModelPartprotected static final StringThe key of the left pants model part, whose value is "left_pants".protected static final StringThe key of the left sleeve model part, whose value is "left_sleeve".final ModelPartfinal ModelPartAll the parts.protected static final StringThe key of the right pants model part, whose value is "right_pants".protected 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
BABY_TRANSFORMER, body, field_32505, field_32506, field_39069, field_39070, field_42513, hat, head, leftArm, leftLeg, rightArm, rightLegFields inherited from class net.minecraft.client.render.entity.model.EntityModel
field_52908Fields inherited from class net.minecraft.client.model.Model
layerFactory, root -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EquipmentModelData<ModelData> createEquipmentModelData(Dilation hatDilation, Dilation armorDilation) getRandomPart(Random random) static ModelDatagetTexturedModelData(Dilation dilation, boolean slim) voidsetAngles(PlayerEntityRenderState playerEntityRenderState) voidsetArmAngle(PlayerEntityRenderState playerEntityRenderState, Arm arm, MatrixStack matrixStack) voidsetVisible(boolean visible) Methods inherited from class net.minecraft.client.render.entity.model.BipedEntityModel
animateArms, createEquipmentModelData, getArm, getHead, getModelData, setArmAngleMethods inherited from class net.minecraft.client.model.Model
getLayer, getParts, getRootPart, render, render, resetTransforms
-
Field Details
-
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 aLgsg;a: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 bLgsg;b: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 cLgsg;c: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 dLgsg;d: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 zLgsg;z: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 eLgsg;e:Lgue;
-
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 fLgsg;f:Lgue;
-
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 gLgsg;g:Lgue;
-
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 xLgsg;x:Lgue;
-
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 yLgsg;y:Lgue;
-
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 ALgsg;A: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>Lgsg;<init>(Lgue;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 aLgsg;a(Lgui;Z)Lgum;
-
createEquipmentModelData
public static EquipmentModelData<ModelData> createEquipmentModelData(Dilation hatDilation, Dilation armorDilation) - Mappings:
Namespace Name Mixin selector named createEquipmentModelDataLnet/minecraft/client/render/entity/model/PlayerEntityModel;createEquipmentModelData(Lnet/minecraft/client/model/Dilation;Lnet/minecraft/client/model/Dilation;)Lnet/minecraft/client/render/entity/model/EquipmentModelData;intermediary method_72857Lnet/minecraft/class_591;method_72857(Lnet/minecraft/class_5605;Lnet/minecraft/class_5605;)Lnet/minecraft/class_11677;official aLgsg;a(Lgui;Lgui;)Lhhe;
-
setAngles
- Overrides:
setAnglesin classBipedEntityModel<PlayerEntityRenderState>- Mappings:
Namespace Name Mixin selector named setAnglesLnet/minecraft/client/render/entity/model/PlayerEntityModel;setAngles(Lnet/minecraft/client/render/entity/state/PlayerEntityRenderState;)Vintermediary method_62110Lnet/minecraft/class_591;method_62110(Lnet/minecraft/class_10055;)Vofficial aLgsg;a(Lhqj;)V
-
setVisible
public void setVisible(boolean visible) - Overrides:
setVisiblein classBipedEntityModel<PlayerEntityRenderState>- 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 aLgro;a(Z)V
-
setArmAngle
public void setArmAngle(PlayerEntityRenderState playerEntityRenderState, Arm arm, MatrixStack matrixStack) - Mappings:
Namespace Name Mixin selector named setArmAngleLnet/minecraft/client/render/entity/model/PlayerEntityModel;setArmAngle(Lnet/minecraft/client/render/entity/state/PlayerEntityRenderState;Lnet/minecraft/util/Arm;Lnet/minecraft/client/util/math/MatrixStack;)Vintermediary method_72859Lnet/minecraft/class_591;method_72859(Lnet/minecraft/class_10055;Lnet/minecraft/class_1306;Lnet/minecraft/class_4587;)Vofficial aLgsg;a(Lhqj;Lcbb;Lfqf;)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 aLgsg;a(Lbdd;)Lgue;
-