Package net.minecraft.client.model
Class HumanoidModel<T extends LivingEntity>
java.lang.Object
net.minecraft.client.model.Model
net.minecraft.client.model.EntityModel<E>
net.minecraft.client.model.AgeableListModel<T>
net.minecraft.client.model.HumanoidModel<T>
- All Implemented Interfaces:
ArmedModel
,HeadedModel
- Direct Known Subclasses:
AbstractZombieModel
,ArmorStandArmorModel
,EndermanModel
,HumanoidArmorModel
,PlayerModel
,SkeletonModel
,ZombieVillagerModel
public class HumanoidModel<T extends LivingEntity>
extends AgeableListModel<T>
implements ArmedModel, HeadedModel
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionfinal ModelPart
boolean
private static final float
final ModelPart
static final float
final ModelPart
final ModelPart
final ModelPart
static final float
static final float
final ModelPart
final ModelPart
private static final float
private static final float
private static final float
float
static final float
static final float
Fields inherited from class net.minecraft.client.model.EntityModel
attackTime, riding, young
Fields inherited from class net.minecraft.client.model.Model
renderType
-
Constructor Summary
ConstructorDescriptionHumanoidModel
(ModelPart p_170677_) HumanoidModel
(ModelPart p_170679_, Function<ResourceLocation, RenderType> p_170680_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
copyPropertiesTo
(HumanoidModel<T> p_102873_) static MeshDefinition
createMesh
(CubeDeformation p_170682_, float p_170683_) protected ModelPart
getArm
(HumanoidArm p_102852_) private HumanoidArm
getAttackArm
(T p_102857_) getHead()
private void
poseLeftArm
(T p_102879_) private void
poseRightArm
(T p_102876_) void
prepareMobModel
(T p_102861_, float p_102862_, float p_102863_, float p_102864_) private float
quadraticArmUpdate
(float p_102834_) protected float
rotlerpRad
(float p_102836_, float p_102837_, float p_102838_) void
setAllVisible
(boolean p_102880_) void
setupAnim
(T p_102866_, float p_102867_, float p_102868_, float p_102869_, float p_102870_, float p_102871_) protected void
setupAttackAnimation
(T p_102858_, float p_102859_) void
translateToHand
(HumanoidArm p_102854_, PoseStack p_102855_) Methods inherited from class net.minecraft.client.model.AgeableListModel
renderToBuffer
Methods inherited from class net.minecraft.client.model.EntityModel
copyPropertiesTo
Methods inherited from class net.minecraft.client.model.Model
renderType
-
Field Details
-
OVERLAY_SCALE
public static final float OVERLAY_SCALE- See Also:
-
HAT_OVERLAY_SCALE
public static final float HAT_OVERLAY_SCALE- See Also:
-
LEGGINGS_OVERLAY_SCALE
public static final float LEGGINGS_OVERLAY_SCALE- See Also:
-
DUCK_WALK_ROTATION
private static final float DUCK_WALK_ROTATION- See Also:
-
SPYGLASS_ARM_ROT_Y
private static final float SPYGLASS_ARM_ROT_Y- See Also:
-
SPYGLASS_ARM_ROT_X
private static final float SPYGLASS_ARM_ROT_X- See Also:
-
SPYGLASS_ARM_CROUCH_ROT_X
private static final float SPYGLASS_ARM_CROUCH_ROT_X- See Also:
-
TOOT_HORN_XROT_BASE
public static final float TOOT_HORN_XROT_BASE- See Also:
-
TOOT_HORN_YROT_BASE
public static final float TOOT_HORN_YROT_BASE- See Also:
-
head
-
hat
-
body
-
rightArm
-
leftArm
-
rightLeg
-
leftLeg
-
leftArmPose
-
rightArmPose
-
crouching
public boolean crouching -
swimAmount
public float swimAmount
-
-
Constructor Details
-
HumanoidModel
-
HumanoidModel
-
-
Method Details
-
createMesh
-
headParts
- Specified by:
headParts
in classAgeableListModel<T extends LivingEntity>
-
bodyParts
- Specified by:
bodyParts
in classAgeableListModel<T extends LivingEntity>
-
prepareMobModel
- Overrides:
prepareMobModel
in classEntityModel<T extends LivingEntity>
-
setupAnim
public void setupAnim(T p_102866_, float p_102867_, float p_102868_, float p_102869_, float p_102870_, float p_102871_) - Specified by:
setupAnim
in classEntityModel<T extends LivingEntity>
-
poseRightArm
-
poseLeftArm
-
setupAttackAnimation
-
rotlerpRad
protected float rotlerpRad(float p_102836_, float p_102837_, float p_102838_) -
quadraticArmUpdate
private float quadraticArmUpdate(float p_102834_) -
copyPropertiesTo
-
setAllVisible
public void setAllVisible(boolean p_102880_) -
translateToHand
- Specified by:
translateToHand
in interfaceArmedModel
-
getArm
-
getHead
- Specified by:
getHead
in interfaceHeadedModel
-
getAttackArm
-