Package net.minecraft.client.model
Class Model
java.lang.Object
net.minecraft.client.model.Model
- Direct Known Subclasses:
BannerBlockModel,BannerFlagBlockModel,BellBlockModel,BookModel,ChestBlockModel,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 gcx
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Vector3fprotected final Function<Identifier, RenderLayer> protected final ModelPart -
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.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 void
-
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 aLgcx;a:Lorg/joml/Vector3f;
-
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 vLgcx;v:Lgfe;
-
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 wLgcx;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 bLgcx;b: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>Lgcx;<init>(Lgfe;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 aLgcx;a(Lakv;)Lgmj;
-
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 aLgcx;a(Lffv;Lffz;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 aLgcx;a(Lffv;Lffz;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 eLgcx;e()Lgfe;
-
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 aLgcx;a(Ljava/lang/String;)Ljava/util/Optional;
-
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 fLgcx;f()Ljava/util/List;
-
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 gLgcx;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 aLgcx;a(Lbue;Lfly;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 aLgcx;a(Lfly;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 aLgcx;a(Lbue;Lfly;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 aLgcx;a(Lfly;)V
-