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:
BeeEntityModel,BipedEntityModel,ChickenEntityModel,ElytraEntityModel,FoxEntityModel,HoglinEntityModel,HorseEntityModel,OcelotEntityModel,QuadrupedEntityModel,TintableAnimalModel
@Environment(CLIENT) public abstract class AnimalModel<E extends Entity> extends EntityModel<E>
-
Field Summary
Fields Modifier and Type Field Description private floatchildBodyYOffsetprivate floatchildHeadYOffsetprivate floatchildHeadZOffsetprivate booleanheadScaledprivate floatinvertedChildBodyScaleprivate floatinvertedChildHeadScaleFields inherited from class net.minecraft.client.render.entity.model.EntityModel
child, handSwingProgress, ridingFields inherited from class net.minecraft.client.model.Model
layerFactory, textureHeight, textureWidth -
Constructor Summary
Constructors Modifier Constructor Description protectedAnimalModel()protectedAnimalModel(boolean headScaled, float childHeadYOffset, float childHeadZOffset)protectedAnimalModel(boolean headScaled, float childHeadYOffset, float childHeadZOffset, float invertedChildHeadScale, float invertedChildBodyScale, float childBodyYOffset)protectedAnimalModel(Function<Identifier,RenderLayer> function, boolean headScaled, float childHeadYOffset, float childHeadZOffset, float invertedChildHeadScale, float invertedChildBodyScale, float childBodyYOffset) -
Method Summary
Modifier and Type Method Description protected abstract Iterable<ModelPart>getBodyParts()protected abstract Iterable<ModelPart>getHeadParts()voidrender(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, float red, float green, float blue, float alpha)Methods inherited from class net.minecraft.client.render.entity.model.EntityModel
animateModel, copyStateTo, setAngles
-
Field Details
-
headScaled
private final boolean headScaled -
childHeadYOffset
private final float childHeadYOffset -
childHeadZOffset
private final float childHeadZOffset -
invertedChildHeadScale
private final float invertedChildHeadScale -
invertedChildBodyScale
private final float invertedChildBodyScale -
childBodyYOffset
private final float childBodyYOffset
-
-
Constructor Details
-
AnimalModel
protected AnimalModel(boolean headScaled, float childHeadYOffset, float childHeadZOffset) -
AnimalModel
protected AnimalModel(boolean headScaled, float childHeadYOffset, float childHeadZOffset, float invertedChildHeadScale, float invertedChildBodyScale, float childBodyYOffset) -
AnimalModel
protected AnimalModel(Function<Identifier,RenderLayer> function, boolean headScaled, float childHeadYOffset, float childHeadZOffset, float invertedChildHeadScale, float invertedChildBodyScale, float childBodyYOffset) -
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) -
getHeadParts
-
getBodyParts
-