public class BipedModel<T extends LivingEntity> extends AgeableModel<T> implements IHasArm, IHasHead
Modifier and Type | Class and Description |
---|---|
static class |
BipedModel.ArmPose |
Modifier and Type | Field and Description |
---|---|
ModelRenderer |
bipedBody |
ModelRenderer |
bipedHead |
ModelRenderer |
bipedHeadwear |
ModelRenderer |
bipedLeftArm |
ModelRenderer |
bipedLeftLeg |
ModelRenderer |
bipedRightArm |
ModelRenderer |
bipedRightLeg |
boolean |
isSneak |
BipedModel.ArmPose |
leftArmPose |
private float |
remainingItemUseTime |
BipedModel.ArmPose |
rightArmPose |
float |
swimAnimation |
isChild, isSitting, swingProgress
renderType, textureHeight, textureWidth
Modifier | Constructor and Description |
---|---|
|
BipedModel(float modelSize) |
protected |
BipedModel(float modelSize,
float yOffsetIn,
int textureWidthIn,
int textureHeightIn) |
|
BipedModel(java.util.function.Function<ResourceLocation,RenderType> renderTypeIn,
float modelSizeIn,
float yOffsetIn,
int textureWidthIn,
int textureHeightIn) |
Modifier and Type | Method and Description |
---|---|
private float |
getArmAngleSq(float limbSwing) |
protected ModelRenderer |
getArmForSide(HandSide side) |
protected java.lang.Iterable<ModelRenderer> |
getBodyParts() |
protected java.lang.Iterable<ModelRenderer> |
getHeadParts() |
protected HandSide |
getMainHand(T entityIn) |
ModelRenderer |
getModelHead() |
protected float |
rotLerpRad(float angleIn,
float maxAngleIn,
float mulIn) |
void |
setLivingAnimations(T entityIn,
float limbSwing,
float limbSwingAmount,
float partialTick) |
void |
setModelAttributes(BipedModel<T> modelIn) |
void |
setRotationAngles(T entityIn,
float limbSwing,
float limbSwingAmount,
float ageInTicks,
float netHeadYaw,
float headPitch) |
void |
setVisible(boolean visible) |
void |
translateHand(HandSide sideIn,
MatrixStack matrixStackIn) |
render
copyModelAttributesTo
accept, getRenderType
public ModelRenderer bipedHead
public ModelRenderer bipedHeadwear
public ModelRenderer bipedBody
public ModelRenderer bipedRightArm
public ModelRenderer bipedLeftArm
public ModelRenderer bipedRightLeg
public ModelRenderer bipedLeftLeg
public BipedModel.ArmPose leftArmPose
public BipedModel.ArmPose rightArmPose
public boolean isSneak
public float swimAnimation
private float remainingItemUseTime
public BipedModel(float modelSize)
protected BipedModel(float modelSize, float yOffsetIn, int textureWidthIn, int textureHeightIn)
public BipedModel(java.util.function.Function<ResourceLocation,RenderType> renderTypeIn, float modelSizeIn, float yOffsetIn, int textureWidthIn, int textureHeightIn)
protected java.lang.Iterable<ModelRenderer> getHeadParts()
getHeadParts
in class AgeableModel<T extends LivingEntity>
protected java.lang.Iterable<ModelRenderer> getBodyParts()
getBodyParts
in class AgeableModel<T extends LivingEntity>
public void setLivingAnimations(T entityIn, float limbSwing, float limbSwingAmount, float partialTick)
setLivingAnimations
in class EntityModel<T extends LivingEntity>
public void setRotationAngles(T entityIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch)
setRotationAngles
in class EntityModel<T extends LivingEntity>
protected float rotLerpRad(float angleIn, float maxAngleIn, float mulIn)
private float getArmAngleSq(float limbSwing)
public void setModelAttributes(BipedModel<T> modelIn)
public void setVisible(boolean visible)
public void translateHand(HandSide sideIn, MatrixStack matrixStackIn)
translateHand
in interface IHasArm
protected ModelRenderer getArmForSide(HandSide side)
public ModelRenderer getModelHead()
getModelHead
in interface IHasHead