Class BipedModel<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>
-
- All Implemented Interfaces:
java.util.function.Consumer<ModelRenderer>,IHasArm,IHasHead
- Direct Known Subclasses:
AbstractZombieModel,ArmorStandArmorModel,EndermanModel,PlayerModel,SkeletonModel,VexModel,ZombieVillagerModel
public class BipedModel<T extends LivingEntity> extends AgeableModel<T> implements IHasArm, IHasHead
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBipedModel.ArmPose
-
Field Summary
Fields Modifier and Type Field Description ModelRendererbodybooleancrouchingModelRendererhatModelRendererheadModelRendererleftArmBipedModel.ArmPoseleftArmPoseModelRendererleftLegModelRendererrightArmBipedModel.ArmPoserightArmPoseModelRendererrightLegfloatswimAmount-
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 Modifier Constructor Description BipedModel(float p_i1148_1_)protectedBipedModel(float p_i1149_1_, float p_i1149_2_, int p_i1149_3_, int p_i1149_4_)BipedModel(java.util.function.Function<ResourceLocation,RenderType> p_i225946_1_, float p_i225946_2_, float p_i225946_3_, int p_i225946_4_, int p_i225946_5_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Iterable<ModelRenderer>bodyParts()voidcopyPropertiesTo(BipedModel<T> p_217148_1_)protected ModelRenderergetArm(HandSide p_187074_1_)protected HandSidegetAttackArm(T p_217147_1_)ModelRenderergetHead()protected java.lang.Iterable<ModelRenderer>headParts()private voidposeLeftArm(T p_241655_1_)private voidposeRightArm(T p_241654_1_)voidprepareMobModel(T p_212843_1_, float p_212843_2_, float p_212843_3_, float p_212843_4_)private floatquadraticArmUpdate(float p_203068_1_)protected floatrotlerpRad(float p_205060_1_, float p_205060_2_, float p_205060_3_)voidsetAllVisible(boolean p_178719_1_)voidsetupAnim(T p_225597_1_, float p_225597_2_, float p_225597_3_, float p_225597_4_, float p_225597_5_, float p_225597_6_)protected voidsetupAttackAnimation(T p_230486_1_, float p_230486_2_)voidtranslateToHand(HandSide p_225599_1_, MatrixStack p_225599_2_)-
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
accept, renderType
-
-
-
-
Field Detail
-
head
public ModelRenderer head
-
hat
public ModelRenderer hat
-
body
public ModelRenderer body
-
rightArm
public ModelRenderer rightArm
-
leftArm
public ModelRenderer leftArm
-
rightLeg
public ModelRenderer rightLeg
-
leftLeg
public ModelRenderer leftLeg
-
leftArmPose
public BipedModel.ArmPose leftArmPose
-
rightArmPose
public BipedModel.ArmPose rightArmPose
-
crouching
public boolean crouching
-
swimAmount
public float swimAmount
-
-
Constructor Detail
-
BipedModel
public BipedModel(float p_i1148_1_)
-
BipedModel
protected BipedModel(float p_i1149_1_, float p_i1149_2_, int p_i1149_3_, int p_i1149_4_)
-
BipedModel
public BipedModel(java.util.function.Function<ResourceLocation,RenderType> p_i225946_1_, float p_i225946_2_, float p_i225946_3_, int p_i225946_4_, int p_i225946_5_)
-
-
Method Detail
-
headParts
protected java.lang.Iterable<ModelRenderer> headParts()
- Specified by:
headPartsin classAgeableModel<T extends LivingEntity>
-
bodyParts
protected java.lang.Iterable<ModelRenderer> bodyParts()
- Specified by:
bodyPartsin classAgeableModel<T extends LivingEntity>
-
prepareMobModel
public void prepareMobModel(T p_212843_1_, float p_212843_2_, float p_212843_3_, float p_212843_4_)
- Overrides:
prepareMobModelin classEntityModel<T extends LivingEntity>
-
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_)
- Specified by:
setupAnimin classEntityModel<T extends LivingEntity>
-
poseRightArm
private void poseRightArm(T p_241654_1_)
-
poseLeftArm
private void poseLeftArm(T p_241655_1_)
-
setupAttackAnimation
protected void setupAttackAnimation(T p_230486_1_, float p_230486_2_)
-
rotlerpRad
protected float rotlerpRad(float p_205060_1_, float p_205060_2_, float p_205060_3_)
-
quadraticArmUpdate
private float quadraticArmUpdate(float p_203068_1_)
-
copyPropertiesTo
public void copyPropertiesTo(BipedModel<T> p_217148_1_)
-
setAllVisible
public void setAllVisible(boolean p_178719_1_)
-
translateToHand
public void translateToHand(HandSide p_225599_1_, MatrixStack p_225599_2_)
- Specified by:
translateToHandin interfaceIHasArm
-
getArm
protected ModelRenderer getArm(HandSide p_187074_1_)
-
getHead
public ModelRenderer getHead()
-
-