Class Model<S>

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

@Environment(CLIENT) public abstract class Model<S> 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 gwg
  • Field Details

    • 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 Lgwg;v:Lgyo;
    • 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 Lgwg;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 a Lgwg;a: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> Lgwg;<init>(Lgyo;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 Lgwg;a(Lamj;)Lhgk;
    • 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 Lgwg;a(Lfua;Lfud;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 Lgwg;a(Lfua;Lfud;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 h Lgwg;h()Lgyo;
    • 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 i Lgwg;i()Ljava/util/List;
    • setAngles

      public void setAngles(S state)
      Mappings:
      Namespace Name Mixin selector
      named setAngles Lnet/minecraft/client/model/Model;setAngles(Ljava/lang/Object;)V
      intermediary method_2819 Lnet/minecraft/class_3879;method_2819(Ljava/lang/Object;)V
      official a Lgwg;a(Ljava/lang/Object;)V
    • 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 j Lgwg;j()V