Package net.minecraft.client.model
Class Model
java.lang.Object
net.minecraft.client.model.Model
- Direct Known Subclasses:
BellBlockModel,BookModel,ChestBlockModel,EntityModel,HangingSignBlockEntityRenderer.HangingSignModel,Model.SinglePartModel,ShieldEntityModel,ShulkerBoxBlockEntityRenderer.class_9984,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 fxv
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Vector3fprotected final Function<Identifier, RenderLayer> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfinal RenderLayergetLayer(Identifier texture) Returns the render layer for the corresponding texture.abstract ModelPartgetPart()protected voidmethod_62098(AnimationState animationState, Animation animation, float float2) protected voidmethod_62099(AnimationState animationState, Animation animation, float float2, float float3) protected voidmethod_62102(Animation animation, float float2, float float3, float float4, float float5) final voidrender(MatrixStack matrices, VertexConsumer vertices, int light, int overlay) final voidrender(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, int int2)
-
Field Details
-
field_52922
- Mappings:
Namespace Name Mixin selector named field_52922Lnet/minecraft/client/model/Model;field_52922:Lorg/joml/Vector3f;intermediary field_52922Lnet/minecraft/class_3879;field_52922:Lorg/joml/Vector3f;official aLfxv;a:Lorg/joml/Vector3f;
-
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 vLfxv;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>Lfxv;<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 aLfxv;a(Lalb;)Lghe;
-
render
public final void render(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, int int2) - 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 aLfxv;a(Lfcu;Lfcy;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 aLfxv;a(Lfcu;Lfcy;II)V
-
getPart
- Mappings:
Namespace Name Mixin selector named getPartLnet/minecraft/client/model/Model;getPart()Lnet/minecraft/client/model/ModelPart;intermediary method_32008Lnet/minecraft/class_3879;method_32008()Lnet/minecraft/class_630;official aLfxv;a()Lgab;
-
getPart
- Mappings:
Namespace Name Mixin selector named getPartLnet/minecraft/client/model/Model;getPart(Ljava/lang/String;)Ljava/util/Optional;intermediary method_62104Lnet/minecraft/class_3879;method_62104(Ljava/lang/String;)Ljava/util/Optional;official aLfxv;a(Ljava/lang/String;)Ljava/util/Optional;
-
method_62098
- Mappings:
Namespace Name Mixin selector named method_62098Lnet/minecraft/client/model/Model;method_62098(Lnet/minecraft/entity/AnimationState;Lnet/minecraft/client/render/entity/animation/Animation;F)Vintermediary method_62098Lnet/minecraft/class_3879;method_62098(Lnet/minecraft/class_7094;Lnet/minecraft/class_7184;F)Vofficial aLfxv;a(Lbtd;Lfiq;F)V
-
method_62102
protected void method_62102(Animation animation, float float2, float float3, float float4, float float5) - Mappings:
Namespace Name Mixin selector named method_62102Lnet/minecraft/client/model/Model;method_62102(Lnet/minecraft/client/render/entity/animation/Animation;FFFF)Vintermediary method_62102Lnet/minecraft/class_3879;method_62102(Lnet/minecraft/class_7184;FFFF)Vofficial aLfxv;a(Lfiq;FFFF)V
-
method_62099
protected void method_62099(AnimationState animationState, Animation animation, float float2, float float3) - Mappings:
Namespace Name Mixin selector named method_62099Lnet/minecraft/client/model/Model;method_62099(Lnet/minecraft/entity/AnimationState;Lnet/minecraft/client/render/entity/animation/Animation;FF)Vintermediary method_62099Lnet/minecraft/class_3879;method_62099(Lnet/minecraft/class_7094;Lnet/minecraft/class_7184;FF)Vofficial aLfxv;a(Lbtd;Lfiq;FF)V
-
animate
- Mappings:
Namespace Name Mixin selector named animateLnet/minecraft/client/model/Model;animate(Lnet/minecraft/client/render/entity/animation/Animation;)Vintermediary method_62101Lnet/minecraft/class_3879;method_62101(Lnet/minecraft/class_7184;)Vofficial aLfxv;a(Lfiq;)V
-