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 fyj
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Vector3fprotected final ModelPartprotected final Function<Identifier, RenderLayer> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidanimate(AnimationState animationState, Animation animation, float age) protected voidanimate(AnimationState animationState, Animation animation, float age, float speedMultiplier) protected voidanimateWalking(Animation animation, float limbFrequency, float limbAmplitudeModifier, float float2, float float3) final RenderLayergetLayer(Identifier texture) Returns the render layer for the corresponding texture.final ModelPartfinal voidfinal voidrender(MatrixStack matrices, VertexConsumer vertices, int light, int overlay) final voidrender(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, int color)
-
Field Details
-
ANIMATION_VEC
- Mappings:
Namespace Name Mixin selector named ANIMATION_VECLnet/minecraft/client/model/Model;ANIMATION_VEC:Lorg/joml/Vector3f;intermediary field_52922Lnet/minecraft/class_3879;field_52922:Lorg/joml/Vector3f;official aLfyj;a:Lorg/joml/Vector3f;
-
field_54014
- Mappings:
Namespace Name Mixin selector named field_54014Lnet/minecraft/client/model/Model;field_54014:Lnet/minecraft/client/model/ModelPart;intermediary field_54014Lnet/minecraft/class_3879;field_54014:Lnet/minecraft/class_630;official vLfyj;v:Lgaq;
-
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 wLfyj;w:Ljava/util/function/Function;
-
field_54013
- Mappings:
Namespace Name Mixin selector named field_54013Lnet/minecraft/client/model/Model;field_54013:Ljava/util/List;intermediary field_54013Lnet/minecraft/class_3879;field_54013:Ljava/util/List;official bLfyj;b:Ljava/util/List;
-
-
Constructor Details
-
Model
-
-
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 aLfyj;a(Lale;)Lghv;
-
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 aLfyj;a(Lfdi;Lfdm;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 aLfyj;a(Lfdi;Lfdm;II)V
-
method_63512
- Mappings:
Namespace Name Mixin selector named method_63512Lnet/minecraft/client/model/Model;method_63512()Lnet/minecraft/client/model/ModelPart;intermediary method_63512Lnet/minecraft/class_3879;method_63512()Lnet/minecraft/class_630;official eLfyj;e()Lgaq;
-
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 aLfyj;a(Ljava/lang/String;)Ljava/util/Optional;
-
method_63513
- Mappings:
Namespace Name Mixin selector named method_63513Lnet/minecraft/client/model/Model;method_63513()Ljava/util/List;intermediary method_63513Lnet/minecraft/class_3879;method_63513()Ljava/util/List;official fLfyj;f()Ljava/util/List;
-
method_63514
public final void method_63514()- Mappings:
Namespace Name Mixin selector named method_63514Lnet/minecraft/client/model/Model;method_63514()Vintermediary method_63514Lnet/minecraft/class_3879;method_63514()Vofficial gLfyj;g()V
-
animate
- Mappings:
Namespace Name Mixin selector named animateLnet/minecraft/client/model/Model;animate(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 aLfyj;a(Lbtl;Lfje;F)V
-
animateWalking
protected void animateWalking(Animation animation, float limbFrequency, float limbAmplitudeModifier, float float2, float float3) - Mappings:
Namespace Name Mixin selector named animateWalkingLnet/minecraft/client/model/Model;animateWalking(Lnet/minecraft/client/render/entity/animation/Animation;FFFF)Vintermediary method_62102Lnet/minecraft/class_3879;method_62102(Lnet/minecraft/class_7184;FFFF)Vofficial aLfyj;a(Lfje;FFFF)V
-
animate
protected void animate(AnimationState animationState, Animation animation, float age, float speedMultiplier) - Mappings:
Namespace Name Mixin selector named animateLnet/minecraft/client/model/Model;animate(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 aLfyj;a(Lbtl;Lfje;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 aLfyj;a(Lfje;)V
-