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 class
BipedEntityModel.ArmPose
-
Field Summary
Fields Modifier and Type Field Description ModelPart
head
ModelPart
helmet
float
leaningPitch
ModelPart
leftArm
BipedEntityModel.ArmPose
leftArmPose
ModelPart
leftLeg
ModelPart
rightArm
BipedEntityModel.ArmPose
rightArmPose
ModelPart
rightLeg
boolean
sneaking
ModelPart
torso
Fields inherited from class net.minecraft.client.render.entity.model.EntityModel
child, handSwingProgress, riding
Fields inherited from class net.minecraft.client.model.Model
layerFactory, textureHeight, textureWidth
-
Constructor Summary
Constructors Modifier Constructor Description BipedEntityModel(float scale)
protected
BipedEntityModel(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 void
animateModel(T t, float float2, float float3, float float4)
protected ModelPart
getArm(Arm arm)
protected Iterable<ModelPart>
getBodyParts()
ModelPart
getHead()
protected Iterable<ModelPart>
getHeadParts()
protected Arm
getPreferredArm(T entity)
protected float
lerpAngle(float float2, float float3, float float4)
private float
method_2807(float float2)
protected void
method_29353(T t, float float2)
private void
method_30154(T t)
private void
method_30155(T t)
void
setAngles(T t, float float2, float float3, float float4, float float5, float float6)
void
setArmAngle(Arm arm, MatrixStack matrices)
void
setAttributes(BipedEntityModel<T> bipedEntityModel)
void
setVisible(boolean visible)
Methods inherited from class net.minecraft.client.render.entity.model.AnimalModel
render
Methods 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:
getHeadParts
in classAnimalModel<T extends LivingEntity>
-
getBodyParts
- Specified by:
getBodyParts
in classAnimalModel<T extends LivingEntity>
-
animateModel
- Overrides:
animateModel
in classEntityModel<T extends LivingEntity>
-
setAngles
- Specified by:
setAngles
in 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:
setArmAngle
in interfaceModelWithArms
-
getArm
-
getHead
- Specified by:
getHead
in interfaceModelWithHead
-
getPreferredArm
-