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

@Environment(CLIENT) public abstract class EntityModel<T extends Entity> extends Model
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
named net/minecraft/client/render/entity/model/EntityModel
intermediary net/minecraft/class_583
official fvk
  • Field Details

    • handSwingProgress

      public float handSwingProgress
      Mappings:
      Namespace Name Mixin selector
      named handSwingProgress Lnet/minecraft/client/render/entity/model/EntityModel;handSwingProgress:F
      intermediary field_3447 Lnet/minecraft/class_583;field_3447:F
      official c Lfvk;c:F
    • riding

      public boolean riding
      Mappings:
      Namespace Name Mixin selector
      named riding Lnet/minecraft/client/render/entity/model/EntityModel;riding:Z
      intermediary field_3449 Lnet/minecraft/class_583;field_3449:Z
      official d Lfvk;d:Z
    • child

      public boolean child
      Mappings:
      Namespace Name Mixin selector
      named child Lnet/minecraft/client/render/entity/model/EntityModel;child:Z
      intermediary field_3448 Lnet/minecraft/class_583;field_3448:Z
      official e Lfvk;e:Z
  • Constructor Details

    • EntityModel

      protected EntityModel()
    • EntityModel

      protected EntityModel(Function<Identifier,RenderLayer> layerFactory)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/model/Model;<init>(Ljava/util/function/Function;)V
      intermediary <init> Lnet/minecraft/class_3879;<init>(Ljava/util/function/Function;)V
      official <init> Lfwg;<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
      named setAngles Lnet/minecraft/client/render/entity/model/EntityModel;setAngles(Lnet/minecraft/entity/Entity;FFFFF)V
      intermediary method_2819 Lnet/minecraft/class_583;method_2819(Lnet/minecraft/class_1297;FFFFF)V
      official a Lfvk;a(Lbsr;FFFFF)V
    • animateModel

      public void animateModel(T entity, float limbAngle, float limbDistance, float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      named animateModel Lnet/minecraft/client/render/entity/model/EntityModel;animateModel(Lnet/minecraft/entity/Entity;FFF)V
      intermediary method_2816 Lnet/minecraft/class_583;method_2816(Lnet/minecraft/class_1297;FFF)V
      official a Lfvk;a(Lbsr;FFF)V
    • copyStateTo

      public void copyStateTo(EntityModel<T> copy)
      Mappings:
      Namespace Name Mixin selector
      named copyStateTo Lnet/minecraft/client/render/entity/model/EntityModel;copyStateTo(Lnet/minecraft/client/render/entity/model/EntityModel;)V
      intermediary method_17081 Lnet/minecraft/class_583;method_17081(Lnet/minecraft/class_583;)V
      official a Lfvk;a(Lfvk;)V