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 fyf
-
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 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.abstract ModelPartgetPart()final 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 aLfyf;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 vLfyf;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>Lfyf;<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 aLfyf;a(Lalc;)Lghq;
-
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 aLfyf;a(Lfde;Lfdi;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 aLfyf;a(Lfde;Lfdi;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 aLfyf;a()Lgal;
-
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 aLfyf;a(Ljava/lang/String;)Ljava/util/Optional;
-
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 aLfyf;a(Lbti;Lfja;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 aLfyf;a(Lfja;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 aLfyf;a(Lbti;Lfja;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 aLfyf;a(Lfja;)V
-