Class Model

java.lang.Object
net.minecraft.client.model.Model
Direct Known Subclasses:
BannerBlockModel, BannerFlagBlockModel, BellBlockModel, BookModel, ChestBlockModel, EntityModel, Model.SinglePartModel, ShieldEntityModel, ShulkerBoxBlockEntityRenderer.ShulkerBoxBlockModel, SkullBlockEntityModel, StingerModel, TridentEntityModel

@Environment(CLIENT) public abstract class Model extends Object
Represents a dynamic model which has its own render layers and custom rendering.
Mappings:
Namespace Name
named net/minecraft/client/model/Model
intermediary net/minecraft/class_3879
official gcx
  • Field Details Link icon

    • ANIMATION_VEC Link icon

      private static final Vector3f ANIMATION_VEC
      Mappings:
      Namespace Name Mixin selector
      named ANIMATION_VEC Lnet/minecraft/client/model/Model;ANIMATION_VEC:Lorg/joml/Vector3f;
      intermediary field_52922 Lnet/minecraft/class_3879;field_52922:Lorg/joml/Vector3f;
      official a Lgcx;a:Lorg/joml/Vector3f;
    • root Link icon

      protected final ModelPart root
      Mappings:
      Namespace Name Mixin selector
      named root Lnet/minecraft/client/model/Model;root:Lnet/minecraft/client/model/ModelPart;
      intermediary field_54014 Lnet/minecraft/class_3879;field_54014:Lnet/minecraft/class_630;
      official v Lgcx;v:Lgfe;
    • layerFactory Link icon

      protected final Function<Identifier,RenderLayer> layerFactory
      Mappings:
      Namespace Name Mixin selector
      named layerFactory Lnet/minecraft/client/model/Model;layerFactory:Ljava/util/function/Function;
      intermediary field_21343 Lnet/minecraft/class_3879;field_21343:Ljava/util/function/Function;
      official w Lgcx;w:Ljava/util/function/Function;
    • parts Link icon

      private final List<ModelPart> parts
      Mappings:
      Namespace Name Mixin selector
      named parts Lnet/minecraft/client/model/Model;parts:Ljava/util/List;
      intermediary field_54013 Lnet/minecraft/class_3879;field_54013:Ljava/util/List;
      official b Lgcx;b:Ljava/util/List;
  • Constructor Details Link icon

    • Model Link icon

      public Model(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> Lgcx;<init>(Lgfe;Ljava/util/function/Function;)V
  • Method Details Link icon

    • getLayer Link icon

      public final RenderLayer getLayer(Identifier texture)
      Returns the render layer for the corresponding texture.
      Parameters:
      texture - the texture used for the render layer
      Returns:
      the render layer for the corresponding texture
      Mappings:
      Namespace Name Mixin selector
      named getLayer Lnet/minecraft/client/model/Model;getLayer(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/render/RenderLayer;
      intermediary method_23500 Lnet/minecraft/class_3879;method_23500(Lnet/minecraft/class_2960;)Lnet/minecraft/class_1921;
      official a Lgcx;a(Lakv;)Lgmj;
    • render Link icon

      public final void render(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, int color)
      Mappings:
      Namespace Name Mixin selector
      named render Lnet/minecraft/client/model/Model;render(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumer;III)V
      intermediary method_62100 Lnet/minecraft/class_3879;method_62100(Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;III)V
      official a Lgcx;a(Lffv;Lffz;III)V
    • render Link icon

      public final void render(MatrixStack matrices, VertexConsumer vertices, int light, int overlay)
      Mappings:
      Namespace Name Mixin selector
      named render Lnet/minecraft/client/model/Model;render(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumer;II)V
      intermediary method_60879 Lnet/minecraft/class_3879;method_60879(Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;II)V
      official a Lgcx;a(Lffv;Lffz;II)V
    • getRootPart Link icon

      public final ModelPart getRootPart()
      Mappings:
      Namespace Name Mixin selector
      named getRootPart Lnet/minecraft/client/model/Model;getRootPart()Lnet/minecraft/client/model/ModelPart;
      intermediary method_63512 Lnet/minecraft/class_3879;method_63512()Lnet/minecraft/class_630;
      official e Lgcx;e()Lgfe;
    • getPart Link icon

      public Optional<ModelPart> getPart(String name)
      Mappings:
      Namespace Name Mixin selector
      named getPart Lnet/minecraft/client/model/Model;getPart(Ljava/lang/String;)Ljava/util/Optional;
      intermediary method_62104 Lnet/minecraft/class_3879;method_62104(Ljava/lang/String;)Ljava/util/Optional;
      official a Lgcx;a(Ljava/lang/String;)Ljava/util/Optional;
    • getParts Link icon

      public final List<ModelPart> getParts()
      Mappings:
      Namespace Name Mixin selector
      named getParts Lnet/minecraft/client/model/Model;getParts()Ljava/util/List;
      intermediary method_63513 Lnet/minecraft/class_3879;method_63513()Ljava/util/List;
      official f Lgcx;f()Ljava/util/List;
    • resetTransforms Link icon

      public final void resetTransforms()
      Mappings:
      Namespace Name Mixin selector
      named resetTransforms Lnet/minecraft/client/model/Model;resetTransforms()V
      intermediary method_63514 Lnet/minecraft/class_3879;method_63514()V
      official g Lgcx;g()V
    • animate Link icon

      protected void animate(AnimationState animationState, Animation animation, float age)
      Mappings:
      Namespace Name Mixin selector
      named animate Lnet/minecraft/client/model/Model;animate(Lnet/minecraft/entity/AnimationState;Lnet/minecraft/client/render/entity/animation/Animation;F)V
      intermediary method_62098 Lnet/minecraft/class_3879;method_62098(Lnet/minecraft/class_7094;Lnet/minecraft/class_7184;F)V
      official a Lgcx;a(Lbue;Lfly;F)V
    • animateWalking Link icon

      protected void animateWalking(Animation animation, float limbFrequency, float limbAmplitudeModifier, float float2, float float3)
      Mappings:
      Namespace Name Mixin selector
      named animateWalking Lnet/minecraft/client/model/Model;animateWalking(Lnet/minecraft/client/render/entity/animation/Animation;FFFF)V
      intermediary method_62102 Lnet/minecraft/class_3879;method_62102(Lnet/minecraft/class_7184;FFFF)V
      official a Lgcx;a(Lfly;FFFF)V
    • animate Link icon

      protected void animate(AnimationState animationState, Animation animation, float age, float speedMultiplier)
      Mappings:
      Namespace Name Mixin selector
      named animate Lnet/minecraft/client/model/Model;animate(Lnet/minecraft/entity/AnimationState;Lnet/minecraft/client/render/entity/animation/Animation;FF)V
      intermediary method_62099 Lnet/minecraft/class_3879;method_62099(Lnet/minecraft/class_7094;Lnet/minecraft/class_7184;FF)V
      official a Lgcx;a(Lbue;Lfly;FF)V
    • animate Link icon

      protected void animate(Animation animation)
      Mappings:
      Namespace Name Mixin selector
      named animate Lnet/minecraft/client/model/Model;animate(Lnet/minecraft/client/render/entity/animation/Animation;)V
      intermediary method_62101 Lnet/minecraft/class_3879;method_62101(Lnet/minecraft/class_7184;)V
      official a Lgcx;a(Lfly;)V