Class EntityModel<T extends EntityRenderState>

java.lang.Object
net.minecraft.client.model.Model
net.minecraft.client.render.entity.model.EntityModel<T>
Direct Known Subclasses:
AbstractBoatEntityModel, AbstractHorseEntityModel, AllayEntityModel, ArmadilloEntityModel, ArrowEntityModel, AxolotlEntityModel, BatEntityModel, BeeEntityModel, BipedEntityModel, BlazeEntityModel, BreezeEntityModel, CamelEntityModel, ChickenEntityModel, CodEntityModel, CreakingEntityModel, CreeperEntityModel, DolphinEntityModel, DragonEntityModel, ElytraEntityModel, EndCrystalEntityModel, EndermiteEntityModel, EvokerFangsEntityModel, FelineEntityModel, FoxEntityModel, FrogEntityModel, GhastEntityModel, GuardianEntityModel, HoglinEntityModel, IllagerEntityModel, IronGolemEntityModel, LargePufferfishEntityModel, LargeTropicalFishEntityModel, LeashKnotEntityModel, LlamaEntityModel, LlamaSpitEntityModel, MagmaCubeEntityModel, MediumPufferfishEntityModel, MinecartEntityModel, ParrotEntityModel, PhantomEntityModel, QuadrupedEntityModel, RabbitEntityModel, RavagerEntityModel, SalmonEntityModel, ShulkerBulletEntityModel, ShulkerEntityModel, SilverfishEntityModel, SlimeEntityModel, SmallPufferfishEntityModel, SmallTropicalFishEntityModel, SnifferEntityModel, SnowGolemEntityModel, SpiderEntityModel, SquidEntityModel, StriderEntityModel, TadpoleEntityModel, TridentRiptideEntityModel, VexEntityModel, VillagerResemblingModel, WardenEntityModel, WindChargeEntityModel, WitchEntityModel, WitherEntityModel, WolfEntityModel

@Environment(CLIENT) public abstract class EntityModel<T extends EntityRenderState> extends Model
Represents the model of an
invalid reference
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 gbl
  • Field Details

    • field_52908

      public static final float field_52908
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_52908 Lnet/minecraft/client/render/entity/model/EntityModel;field_52908:F
      intermediary field_52908 Lnet/minecraft/class_583;field_52908:F
      official h Lgbl;h:F
  • Constructor Details

    • EntityModel

      protected EntityModel(ModelPart root)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/entity/model/EntityModel;<init>(Lnet/minecraft/client/model/ModelPart;)V
      intermediary <init> Lnet/minecraft/class_583;<init>(Lnet/minecraft/class_630;)V
      official <init> Lgbl;<init>(Lgen;)V
    • EntityModel

      protected EntityModel(ModelPart root, Function<Identifier,RenderLayer> layerFactory)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/model/Model;<init>(Lnet/minecraft/client/model/ModelPart;Ljava/util/function/Function;)V
      intermediary <init> Lnet/minecraft/class_3879;<init>(Lnet/minecraft/class_630;Ljava/util/function/Function;)V
      official <init> Lgcg;<init>(Lgen;Ljava/util/function/Function;)V
  • Method Details

    • setAngles

      public void setAngles(T state)
      Mappings:
      Namespace Name Mixin selector
      named setAngles Lnet/minecraft/client/render/entity/model/EntityModel;setAngles(Lnet/minecraft/client/render/entity/state/EntityRenderState;)V
      intermediary method_2819 Lnet/minecraft/class_583;method_2819(Lnet/minecraft/class_10017;)V
      official a Lgbl;a(Lgxu;)V