Class Model

java.lang.Object
net.minecraft.client.model.Model
Direct Known Subclasses:
BookModel, EntityModel, HangingSignBlockEntityRenderer.HangingSignModel, ShieldEntityModel, SignBlockEntityRenderer.SignModel, SkullBlockEntityModel, 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 fwg
  • Field Details

    • 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 v Lfwg;v:Ljava/util/function/Function;
  • Constructor Details

    • Model

      public Model(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

    • 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 Lfwg;a(Lakr;)Lgfh;
    • render

      public abstract void render(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, int color)
      Renders the model.
      Parameters:
      light - the lightmap coordinates used for this model rendering
      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_2828 Lnet/minecraft/class_3879;method_2828(Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;III)V
      official a Lfwg;a(Lfbi;Lfbm;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 Lfwg;a(Lfbi;Lfbm;II)V