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 class
BipedModel.ArmPose
-
Field Summary
Fields Modifier and Type Field Description ModelRenderer
body
boolean
crouching
ModelRenderer
hat
ModelRenderer
head
ModelRenderer
leftArm
BipedModel.ArmPose
leftArmPose
ModelRenderer
leftLeg
ModelRenderer
rightArm
BipedModel.ArmPose
rightArmPose
ModelRenderer
rightLeg
float
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 Modifier Constructor Description BipedModel(float p_i1148_1_)
protected
BipedModel(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()
void
copyPropertiesTo(BipedModel<T> p_217148_1_)
protected ModelRenderer
getArm(HandSide p_187074_1_)
protected HandSide
getAttackArm(T p_217147_1_)
ModelRenderer
getHead()
protected java.lang.Iterable<ModelRenderer>
headParts()
private void
poseLeftArm(T p_241655_1_)
private void
poseRightArm(T p_241654_1_)
void
prepareMobModel(T p_212843_1_, float p_212843_2_, float p_212843_3_, float p_212843_4_)
private float
quadraticArmUpdate(float p_203068_1_)
protected float
rotlerpRad(float p_205060_1_, float p_205060_2_, float p_205060_3_)
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_)
protected void
setupAttackAnimation(T p_230486_1_, float p_230486_2_)
void
translateToHand(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:
headParts
in classAgeableModel<T extends LivingEntity>
-
bodyParts
protected java.lang.Iterable<ModelRenderer> bodyParts()
- Specified by:
bodyParts
in 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:
prepareMobModel
in 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:
setupAnim
in 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:
translateToHand
in interfaceIHasArm
-
getArm
protected ModelRenderer getArm(HandSide p_187074_1_)
-
getHead
public ModelRenderer getHead()
-
-