Class Model

java.lang.Object
net.minecraft.client.model.Model
Direct Known Subclasses:
BellBlockModel, BookModel, ChestBlockModel, EntityModel, HangingSignBlockEntityRenderer.HangingSignModel, 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 gcg
  • Field Details

    • ANIMATION_VEC

      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 Lgcg;a:Lorg/joml/Vector3f;
    • root

      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 Lgcg;v:Lgen;
    • layerFactory

      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 Lgcg;w:Ljava/util/function/Function;
    • parts

      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 Lgcg;b:Ljava/util/List;
  • Constructor Details

    • Model

      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> Lgcg;<init>(Lgen;Ljava/util/function/Function;)V
  • Method Details

    • getLayer

      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 Lgcg;a(Lalz;)Lglu;
    • render

      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 Lgcg;a(Lfgr;Lfgv;III)V
    • render

      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 Lgcg;a(Lfgr;Lfgv;II)V
    • getRootPart

      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 Lgcg;e()Lgen;
    • getPart

      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 Lgcg;a(Ljava/lang/String;)Ljava/util/Optional;
    • getParts

      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 Lgcg;f()Ljava/util/List;
    • resetTransforms

      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 Lgcg;g()V
    • animate

      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 Lgcg;a(Lbvb;Lfmt;F)V
    • animateWalking

      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 Lgcg;a(Lfmt;FFFF)V
    • animate

      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 Lgcg;a(Lbvb;Lfmt;FF)V
    • animate

      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 Lgcg;a(Lfmt;)V