Class BipedEntityModel<T extends LivingEntity>
java.lang.Object
net.minecraft.client.model.Model
net.minecraft.client.render.entity.model.EntityModel<E>
net.minecraft.client.render.entity.model.AnimalModel<T>
net.minecraft.client.render.entity.model.BipedEntityModel<T>
- All Implemented Interfaces:
Consumer<ModelPart>,ModelWithArms,ModelWithHead
- Direct Known Subclasses:
AbstractZombieModel,ArmorStandArmorEntityModel,EndermanEntityModel,PlayerEntityModel,SkeletonEntityModel,VexEntityModel,ZombieVillagerEntityModel
@Environment(CLIENT) public class BipedEntityModel<T extends LivingEntity> extends AnimalModel<T> implements ModelWithArms, ModelWithHead
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBipedEntityModel.ArmPose -
Field Summary
Fields Modifier and Type Field Description ModelPartheadModelParthelmetfloatleaningPitchModelPartleftArmBipedEntityModel.ArmPoseleftArmPoseModelPartleftLegModelPartrightArmBipedEntityModel.ArmPoserightArmPoseModelPartrightLegbooleansneakingModelParttorsoFields inherited from class net.minecraft.client.render.entity.model.EntityModel
child, handSwingProgress, ridingFields inherited from class net.minecraft.client.model.Model
layerFactory, textureHeight, textureWidth -
Constructor Summary
Constructors Modifier Constructor Description BipedEntityModel(float scale)protectedBipedEntityModel(float scale, float pivotY, int textureWidth, int textureHeight)BipedEntityModel(Function<Identifier,RenderLayer> texturedLayerFactory, float scale, float pivotY, int textureWidth, int textureHeight) -
Method Summary
Modifier and Type Method Description voidanimateModel(T t, float float2, float float3, float float4)protected ModelPartgetArm(Arm arm)protected Iterable<ModelPart>getBodyParts()ModelPartgetHead()protected Iterable<ModelPart>getHeadParts()protected ArmgetPreferredArm(T entity)protected floatlerpAngle(float float2, float float3, float float4)private floatmethod_2807(float float2)protected voidmethod_29353(T t, float float2)private voidmethod_30154(T t)private voidmethod_30155(T t)voidsetAngles(T t, float float2, float float3, float float4, float float5, float float6)voidsetArmAngle(Arm arm, MatrixStack matrices)voidsetAttributes(BipedEntityModel<T> bipedEntityModel)voidsetVisible(boolean visible)Methods inherited from class net.minecraft.client.render.entity.model.AnimalModel
renderMethods inherited from class net.minecraft.client.render.entity.model.EntityModel
copyStateTo
-
Field Details
-
head
-
helmet
-
torso
-
rightArm
-
leftArm
-
rightLeg
-
leftLeg
-
leftArmPose
-
rightArmPose
-
sneaking
public boolean sneaking -
leaningPitch
public float leaningPitch
-
-
Constructor Details
-
BipedEntityModel
public BipedEntityModel(float scale) -
BipedEntityModel
protected BipedEntityModel(float scale, float pivotY, int textureWidth, int textureHeight) -
BipedEntityModel
public BipedEntityModel(Function<Identifier,RenderLayer> texturedLayerFactory, float scale, float pivotY, int textureWidth, int textureHeight)
-
-
Method Details
-
getHeadParts
- Specified by:
getHeadPartsin classAnimalModel<T extends LivingEntity>
-
getBodyParts
- Specified by:
getBodyPartsin classAnimalModel<T extends LivingEntity>
-
animateModel
- Overrides:
animateModelin classEntityModel<T extends LivingEntity>
-
setAngles
- Specified by:
setAnglesin classEntityModel<T extends LivingEntity>
-
method_30154
-
method_30155
-
method_29353
-
lerpAngle
protected float lerpAngle(float float2, float float3, float float4) -
method_2807
private float method_2807(float float2) -
setAttributes
-
setVisible
public void setVisible(boolean visible) -
setArmAngle
- Specified by:
setArmAnglein interfaceModelWithArms
-
getArm
-
getHead
- Specified by:
getHeadin interfaceModelWithHead
-
getPreferredArm
-