Package net.minecraft.client.model
Class Model
java.lang.Object
net.minecraft.client.model.Model
- Direct Known Subclasses:
BookModel,EntityModel,HangingSignBlockEntityRenderer.HangingSignModel,ShieldEntityModel,SignBlockEntityRenderer.SignModel,SkullBlockEntityModel,TridentEntityModel
Represents a dynamic model which has its own render layers and custom rendering.
- Mappings:
Namespace Name named net/minecraft/client/model/Modelintermediary net/minecraft/class_3879official fwa
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal RenderLayergetLayer(Identifier texture) Returns the render layer for the corresponding texture.final voidmethod_60879(MatrixStack matrixStack, VertexConsumer vertexConsumer, int int2, int int3) abstract voidrender(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, int int2) Renders the model.
-
Field Details
-
layerFactory
- Mappings:
Namespace Name Mixin selector named layerFactoryLnet/minecraft/client/model/Model;layerFactory:Ljava/util/function/Function;intermediary field_21343Lnet/minecraft/class_3879;field_21343:Ljava/util/function/Function;official vLfwa;v:Ljava/util/function/Function;
-
-
Constructor Details
-
Model
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/model/Model;<init>(Ljava/util/function/Function;)Vintermediary <init>Lnet/minecraft/class_3879;<init>(Ljava/util/function/Function;)Vofficial <init>Lfwa;<init>(Ljava/util/function/Function;)V
-
-
Method Details
-
getLayer
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 getLayerLnet/minecraft/client/model/Model;getLayer(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/render/RenderLayer;intermediary method_23500Lnet/minecraft/class_3879;method_23500(Lnet/minecraft/class_2960;)Lnet/minecraft/class_1921;official aLfwa;a(Lakq;)Lgfb;
-
render
public abstract void render(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, int int2) Renders the model.- Parameters:
light- the lightmap coordinates used for this model rendering- Mappings:
Namespace Name Mixin selector named renderLnet/minecraft/client/model/Model;render(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumer;III)Vintermediary method_2828Lnet/minecraft/class_3879;method_2828(Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;III)Vofficial aLfwa;a(Lfbc;Lfbg;III)V
-
method_60879
public final void method_60879(MatrixStack matrixStack, VertexConsumer vertexConsumer, int int2, int int3) - Mappings:
Namespace Name Mixin selector named method_60879Lnet/minecraft/client/model/Model;method_60879(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumer;II)Vintermediary method_60879Lnet/minecraft/class_3879;method_60879(Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;II)Vofficial aLfwa;a(Lfbc;Lfbg;II)V
-