Package net.minecraft.client.model
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
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 gwg
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Function<Identifier, RenderLayer> protected final ModelPart -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal RenderLayergetLayer(Identifier texture) Returns the render layer for the corresponding texture.getParts()final ModelPartfinal voidrender(MatrixStack matrices, VertexConsumer vertices, int light, int overlay) final voidrender(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, int color) final voidvoid
-
Field Details
-
root
- Mappings:
Namespace Name Mixin selector named rootLnet/minecraft/client/model/Model;root:Lnet/minecraft/client/model/ModelPart;intermediary field_54014Lnet/minecraft/class_3879;field_54014:Lnet/minecraft/class_630;official vLgwg;v:Lgyo;
-
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 wLgwg;w:Ljava/util/function/Function;
-
parts
- Mappings:
Namespace Name Mixin selector named partsLnet/minecraft/client/model/Model;parts:Ljava/util/List;intermediary field_54013Lnet/minecraft/class_3879;field_54013:Ljava/util/List;official aLgwg;a:Ljava/util/List;
-
-
Constructor Details
-
Model
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/model/Model;<init>(Lnet/minecraft/client/model/ModelPart;Ljava/util/function/Function;)Vintermediary <init>Lnet/minecraft/class_3879;<init>(Lnet/minecraft/class_630;Ljava/util/function/Function;)Vofficial <init>Lgwg;<init>(Lgyo;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 aLgwg;a(Lamj;)Lhgk;
-
render
public final void render(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, int color) - 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_62100Lnet/minecraft/class_3879;method_62100(Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;III)Vofficial aLgwg;a(Lfua;Lfud;III)V
-
render
- Mappings:
Namespace Name Mixin selector named renderLnet/minecraft/client/model/Model;render(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 aLgwg;a(Lfua;Lfud;II)V
-
getRootPart
- Mappings:
Namespace Name Mixin selector named getRootPartLnet/minecraft/client/model/Model;getRootPart()Lnet/minecraft/client/model/ModelPart;intermediary method_63512Lnet/minecraft/class_3879;method_63512()Lnet/minecraft/class_630;official hLgwg;h()Lgyo;
-
getParts
- Mappings:
Namespace Name Mixin selector named getPartsLnet/minecraft/client/model/Model;getParts()Ljava/util/List;intermediary method_63513Lnet/minecraft/class_3879;method_63513()Ljava/util/List;official iLgwg;i()Ljava/util/List;
-
setAngles
- Mappings:
Namespace Name Mixin selector named setAnglesLnet/minecraft/client/model/Model;setAngles(Ljava/lang/Object;)Vintermediary method_2819Lnet/minecraft/class_3879;method_2819(Ljava/lang/Object;)Vofficial aLgwg;a(Ljava/lang/Object;)V
-
resetTransforms
public final void resetTransforms()- Mappings:
Namespace Name Mixin selector named resetTransformsLnet/minecraft/client/model/Model;resetTransforms()Vintermediary method_63514Lnet/minecraft/class_3879;method_63514()Vofficial jLgwg;j()V
-