Class PlayerModel<T extends LivingEntity>
- java.lang.Object
-
- net.minecraft.client.renderer.model.Model
-
- net.minecraft.client.renderer.entity.model.EntityModel<E>
-
- net.minecraft.client.renderer.entity.model.AgeableModel<T>
-
- net.minecraft.client.renderer.entity.model.BipedModel<T>
-
- net.minecraft.client.renderer.entity.model.PlayerModel<T>
-
- All Implemented Interfaces:
java.util.function.Consumer<ModelRenderer>
,IHasArm
,IHasHead
- Direct Known Subclasses:
PiglinModel
public class PlayerModel<T extends LivingEntity> extends BipedModel<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.client.renderer.entity.model.BipedModel
BipedModel.ArmPose
-
-
Field Summary
Fields Modifier and Type Field Description private ModelRenderer
cloak
private java.util.List<ModelRenderer>
cubes
private ModelRenderer
ear
ModelRenderer
jacket
ModelRenderer
leftPants
ModelRenderer
leftSleeve
ModelRenderer
rightPants
ModelRenderer
rightSleeve
private boolean
slim
-
Fields inherited from class net.minecraft.client.renderer.entity.model.BipedModel
body, crouching, hat, head, leftArm, leftArmPose, leftLeg, rightArm, rightArmPose, rightLeg, swimAmount
-
Fields inherited from class net.minecraft.client.renderer.entity.model.EntityModel
attackTime, riding, young
-
Fields inherited from class net.minecraft.client.renderer.model.Model
renderType, texHeight, texWidth
-
-
Constructor Summary
Constructors Constructor Description PlayerModel(float p_i46304_1_, boolean p_i46304_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ModelRenderer p_accept_1_)
protected java.lang.Iterable<ModelRenderer>
bodyParts()
ModelRenderer
getRandomModelPart(java.util.Random p_228288_1_)
void
renderCloak(MatrixStack p_228289_1_, IVertexBuilder p_228289_2_, int p_228289_3_, int p_228289_4_)
void
renderEars(MatrixStack p_228287_1_, IVertexBuilder p_228287_2_, int p_228287_3_, int p_228287_4_)
void
setAllVisible(boolean p_178719_1_)
void
setupAnim(T p_225597_1_, float p_225597_2_, float p_225597_3_, float p_225597_4_, float p_225597_5_, float p_225597_6_)
void
translateToHand(HandSide p_225599_1_, MatrixStack p_225599_2_)
-
Methods inherited from class net.minecraft.client.renderer.entity.model.BipedModel
copyPropertiesTo, getArm, getAttackArm, getHead, headParts, prepareMobModel, rotlerpRad, setupAttackAnimation
-
Methods inherited from class net.minecraft.client.renderer.entity.model.AgeableModel
renderToBuffer
-
Methods inherited from class net.minecraft.client.renderer.entity.model.EntityModel
copyPropertiesTo
-
Methods inherited from class net.minecraft.client.renderer.model.Model
renderType
-
-
-
-
Field Detail
-
cubes
private java.util.List<ModelRenderer> cubes
-
leftSleeve
public final ModelRenderer leftSleeve
-
rightSleeve
public final ModelRenderer rightSleeve
-
leftPants
public final ModelRenderer leftPants
-
rightPants
public final ModelRenderer rightPants
-
jacket
public final ModelRenderer jacket
-
cloak
private final ModelRenderer cloak
-
ear
private final ModelRenderer ear
-
slim
private final boolean slim
-
-
Method Detail
-
bodyParts
protected java.lang.Iterable<ModelRenderer> bodyParts()
- Overrides:
bodyParts
in classBipedModel<T extends LivingEntity>
-
renderEars
public void renderEars(MatrixStack p_228287_1_, IVertexBuilder p_228287_2_, int p_228287_3_, int p_228287_4_)
-
renderCloak
public void renderCloak(MatrixStack p_228289_1_, IVertexBuilder p_228289_2_, int p_228289_3_, int p_228289_4_)
-
setupAnim
public void setupAnim(T p_225597_1_, float p_225597_2_, float p_225597_3_, float p_225597_4_, float p_225597_5_, float p_225597_6_)
- Overrides:
setupAnim
in classBipedModel<T extends LivingEntity>
-
setAllVisible
public void setAllVisible(boolean p_178719_1_)
- Overrides:
setAllVisible
in classBipedModel<T extends LivingEntity>
-
translateToHand
public void translateToHand(HandSide p_225599_1_, MatrixStack p_225599_2_)
- Specified by:
translateToHand
in interfaceIHasArm
- Overrides:
translateToHand
in classBipedModel<T extends LivingEntity>
-
getRandomModelPart
public ModelRenderer getRandomModelPart(java.util.Random p_228288_1_)
-
accept
public void accept(ModelRenderer p_accept_1_)
- Specified by:
accept
in interfacejava.util.function.Consumer<T extends LivingEntity>
- Overrides:
accept
in classModel
-
-