Class AnimalModel<E extends Entity>
java.lang.Object
net.minecraft.client.model.Model
net.minecraft.client.render.entity.model.EntityModel<E>
net.minecraft.client.render.entity.model.AnimalModel<E>
- Direct Known Subclasses:
AxolotlEntityModel
,BeeEntityModel
,BipedEntityModel
,ChickenEntityModel
,ElytraEntityModel
,FoxEntityModel
,HoglinEntityModel
,HorseEntityModel
,OcelotEntityModel
,QuadrupedEntityModel
,TadpoleEntityModel
,TintableAnimalModel
- Mappings:
Namespace Name official fed
intermediary net/minecraft/class_4592
named net/minecraft/client/render/entity/model/AnimalModel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final float
private final float
private final float
private final boolean
private final float
private final float
Fields inherited from class net.minecraft.client.render.entity.model.EntityModel
child, handSwingProgress, riding
Fields inherited from class net.minecraft.client.model.Model
layerFactory
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
AnimalModel
(boolean headScaled, float childHeadYOffset, float childHeadZOffset) protected
AnimalModel
(boolean headScaled, float childHeadYOffset, float childHeadZOffset, float invertedChildHeadScale, float invertedChildBodyScale, float childBodyYOffset) protected
AnimalModel
(Function<Identifier, RenderLayer> renderLayerFactory, boolean headScaled, float childHeadYOffset, float childHeadZOffset, float invertedChildHeadScale, float invertedChildBodyScale, float childBodyYOffset) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected boolean
void
render
(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, float red, float green, float blue, float alpha) Renders the model.Methods inherited from class net.minecraft.client.render.entity.model.EntityModel
animateModel, copyStateTo, method_50994, setAngles
-
Field Details
-
headScaled
private final boolean headScaled- Mappings:
Namespace Name Mixin selector official a
Lfed;a:Z
intermediary field_20915
Lnet/minecraft/class_4592;field_20915:Z
named headScaled
Lnet/minecraft/client/render/entity/model/AnimalModel;headScaled:Z
-
childHeadYOffset
private final float childHeadYOffset- Mappings:
Namespace Name Mixin selector official b
Lfed;b:F
intermediary field_20916
Lnet/minecraft/class_4592;field_20916:F
named childHeadYOffset
Lnet/minecraft/client/render/entity/model/AnimalModel;childHeadYOffset:F
-
childHeadZOffset
private final float childHeadZOffset- Mappings:
Namespace Name Mixin selector official f
Lfed;f:F
intermediary field_20917
Lnet/minecraft/class_4592;field_20917:F
named childHeadZOffset
Lnet/minecraft/client/render/entity/model/AnimalModel;childHeadZOffset:F
-
invertedChildHeadScale
private final float invertedChildHeadScale- Mappings:
Namespace Name Mixin selector official g
Lfed;g:F
intermediary field_20918
Lnet/minecraft/class_4592;field_20918:F
named invertedChildHeadScale
Lnet/minecraft/client/render/entity/model/AnimalModel;invertedChildHeadScale:F
-
invertedChildBodyScale
private final float invertedChildBodyScale- Mappings:
Namespace Name Mixin selector official h
Lfed;h:F
intermediary field_20919
Lnet/minecraft/class_4592;field_20919:F
named invertedChildBodyScale
Lnet/minecraft/client/render/entity/model/AnimalModel;invertedChildBodyScale:F
-
childBodyYOffset
private final float childBodyYOffset- Mappings:
Namespace Name Mixin selector official i
Lfed;i:F
intermediary field_20920
Lnet/minecraft/class_4592;field_20920:F
named childBodyYOffset
Lnet/minecraft/client/render/entity/model/AnimalModel;childBodyYOffset:F
-
-
Constructor Details
-
AnimalModel
protected AnimalModel(boolean headScaled, float childHeadYOffset, float childHeadZOffset) - Mappings:
Namespace Name Mixin selector official <init>
Lfed;<init>(ZFF)V
intermediary <init>
Lnet/minecraft/class_4592;<init>(ZFF)V
named <init>
Lnet/minecraft/client/render/entity/model/AnimalModel;<init>(ZFF)V
-
AnimalModel
protected AnimalModel(boolean headScaled, float childHeadYOffset, float childHeadZOffset, float invertedChildHeadScale, float invertedChildBodyScale, float childBodyYOffset) - Mappings:
Namespace Name Mixin selector official <init>
Lfed;<init>(ZFFFFF)V
intermediary <init>
Lnet/minecraft/class_4592;<init>(ZFFFFF)V
named <init>
Lnet/minecraft/client/render/entity/model/AnimalModel;<init>(ZFFFFF)V
-
AnimalModel
protected AnimalModel(Function<Identifier, RenderLayer> renderLayerFactory, boolean headScaled, float childHeadYOffset, float childHeadZOffset, float invertedChildHeadScale, float invertedChildBodyScale, float childBodyYOffset) - Mappings:
Namespace Name Mixin selector official <init>
Lfed;<init>(Ljava/util/function/Function;ZFFFFF)V
intermediary <init>
Lnet/minecraft/class_4592;<init>(Ljava/util/function/Function;ZFFFFF)V
named <init>
Lnet/minecraft/client/render/entity/model/AnimalModel;<init>(Ljava/util/function/Function;ZFFFFF)V
-
AnimalModel
protected AnimalModel()
-
-
Method Details
-
render
public void render(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, float red, float green, float blue, float alpha) Renders the model.- Specified by:
render
in classModel
- Parameters:
light
- the lightmap coordinates used for this model rendering- Mappings:
Namespace Name Mixin selector official a
Lfgd;a(Lemi;Lemm;IIFFFF)V
intermediary method_2828
Lnet/minecraft/class_3879;method_2828(Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;IIFFFF)V
named render
Lnet/minecraft/client/model/Model;render(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumer;IIFFFF)V
-
method_50988
protected boolean method_50988()- Mappings:
Namespace Name Mixin selector official a
Lfed;a()Z
intermediary method_50988
Lnet/minecraft/class_4592;method_50988()Z
named method_50988
Lnet/minecraft/client/render/entity/model/AnimalModel;method_50988()Z
-
method_50989
protected boolean method_50989()- Mappings:
Namespace Name Mixin selector official aM_
Lfed;aM_()Z
intermediary method_50989
Lnet/minecraft/class_4592;method_50989()Z
named method_50989
Lnet/minecraft/client/render/entity/model/AnimalModel;method_50989()Z
-
getHeadParts
- Mappings:
Namespace Name Mixin selector official c
Lfed;c()Ljava/lang/Iterable;
intermediary method_22946
Lnet/minecraft/class_4592;method_22946()Ljava/lang/Iterable;
named getHeadParts
Lnet/minecraft/client/render/entity/model/AnimalModel;getHeadParts()Ljava/lang/Iterable;
-
getBodyParts
- Mappings:
Namespace Name Mixin selector official d
Lfed;d()Ljava/lang/Iterable;
intermediary method_22948
Lnet/minecraft/class_4592;method_22948()Ljava/lang/Iterable;
named getBodyParts
Lnet/minecraft/client/render/entity/model/AnimalModel;getBodyParts()Ljava/lang/Iterable;
-