Class TintableAnimalModel<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>
net.minecraft.client.render.entity.model.TintableAnimalModel<E>
- Direct Known Subclasses:
WolfEntityModel
@Environment(CLIENT) public abstract class TintableAnimalModel<E extends Entity> extends AnimalModel<E>
-
Field Summary
Fields Modifier and Type Field Description private floatblueMultiplierprivate floatgreenMultiplierprivate floatredMultiplierFields inherited from class net.minecraft.client.render.entity.model.EntityModel
child, handSwingProgress, ridingFields inherited from class net.minecraft.client.model.Model
layerFactory -
Constructor Summary
Constructors Constructor Description TintableAnimalModel() -
Method Summary
Modifier and Type Method Description voidrender(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, float red, float green, float blue, float alpha)voidsetColorMultiplier(float red, float green, float blue)Methods inherited from class net.minecraft.client.render.entity.model.AnimalModel
getBodyParts, getHeadPartsMethods inherited from class net.minecraft.client.render.entity.model.EntityModel
animateModel, copyStateTo, setAngles
-
Field Details
-
redMultiplier
private float redMultiplier -
greenMultiplier
private float greenMultiplier -
blueMultiplier
private float blueMultiplier
-
-
Constructor Details
-
TintableAnimalModel
public TintableAnimalModel()
-
-
Method Details
-
setColorMultiplier
public void setColorMultiplier(float red, float green, float blue) -
render
public void render(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, float red, float green, float blue, float alpha)- Overrides:
renderin classAnimalModel<E extends Entity>
-