Class EntityModel<T extends Entity>
java.lang.Object
net.minecraft.client.model.Model
net.minecraft.client.render.entity.model.EntityModel<T>
- Direct Known Subclasses:
AnimalModel,CompositeEntityModel,EnderDragonEntityRenderer.DragonEntityModel,LlamaEntityModel,RabbitEntityModel,SinglePartEntityModel
Represents the model of an Entity.
An instance of an entity model will not define the model data,
but will animate it.
Model data may be defined in a static method, most of the children classes will
have a getTexturedModelData method.
The model data is usually passed in the constructor of the entity model.
Some children classes contain a model parts table, those tables contains the model parts for the base model. In a modded context the tables may be inaccurate. Model parts with an associated field are required.
- Mappings:
Namespace Name official fauintermediary net/minecraft/class_583named net/minecraft/client/render/entity/model/EntityModel
-
Field Summary
FieldsFields inherited from class net.minecraft.client.model.Model
layerFactory -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedEntityModel(Function<Identifier, RenderLayer> layerFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidanimateModel(T entity, float limbAngle, float limbDistance, float tickDelta) voidcopyStateTo(EntityModel<T> copy) abstract voidsetAngles(T entity, float limbAngle, float limbDistance, float animationProgress, float headYaw, float headPitch)
-
Field Details
-
handSwingProgress
public float handSwingProgress- Mappings:
Namespace Name Mixin selector official cLfau;c:Fintermediary field_3447Lnet/minecraft/class_583;field_3447:Fnamed handSwingProgressLnet/minecraft/client/render/entity/model/EntityModel;handSwingProgress:F
-
riding
public boolean riding- Mappings:
Namespace Name Mixin selector official dLfau;d:Zintermediary field_3449Lnet/minecraft/class_583;field_3449:Znamed ridingLnet/minecraft/client/render/entity/model/EntityModel;riding:Z
-
child
public boolean child- Mappings:
Namespace Name Mixin selector official eLfau;e:Zintermediary field_3448Lnet/minecraft/class_583;field_3448:Znamed childLnet/minecraft/client/render/entity/model/EntityModel;child:Z
-
-
Constructor Details
-
EntityModel
protected EntityModel() -
EntityModel
- Mappings:
Namespace Name Mixin selector official <init>Lfbq;<init>(Ljava/util/function/Function;)Vintermediary <init>Lnet/minecraft/class_3879;<init>(Ljava/util/function/Function;)Vnamed <init>Lnet/minecraft/client/model/Model;<init>(Ljava/util/function/Function;)V
-
-
Method Details
-
setAngles
public abstract void setAngles(T entity, float limbAngle, float limbDistance, float animationProgress, float headYaw, float headPitch) - Mappings:
Namespace Name Mixin selector official aLfau;a(Lbfh;FFFFF)Vintermediary method_2819Lnet/minecraft/class_583;method_2819(Lnet/minecraft/class_1297;FFFFF)Vnamed setAnglesLnet/minecraft/client/render/entity/model/EntityModel;setAngles(Lnet/minecraft/entity/Entity;FFFFF)V
-
animateModel
- Mappings:
Namespace Name Mixin selector official aLfau;a(Lbfh;FFF)Vintermediary method_2816Lnet/minecraft/class_583;method_2816(Lnet/minecraft/class_1297;FFF)Vnamed animateModelLnet/minecraft/client/render/entity/model/EntityModel;animateModel(Lnet/minecraft/entity/Entity;FFF)V
-
copyStateTo
- Mappings:
Namespace Name Mixin selector official aLfau;a(Lfau;)Vintermediary method_17081Lnet/minecraft/class_583;method_17081(Lnet/minecraft/class_583;)Vnamed copyStateToLnet/minecraft/client/render/entity/model/EntityModel;copyStateTo(Lnet/minecraft/client/render/entity/model/EntityModel;)V
-