@Environment(value=CLIENT) public abstract class AnimalModel<E extends Entity> extends EntityModel<E>
Modifier and Type | Field and Description |
---|---|
private float |
childBodyYOffset |
private float |
childHeadYOffset |
private float |
childHeadZOffset |
private boolean |
headScaled |
private float |
invertedChildBodyScale |
private float |
invertedChildHeadScale |
child, handSwingProgress, riding
layerFactory, textureHeight, textureWidth
Modifier | Constructor and Description |
---|---|
protected |
AnimalModel() |
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> function,
boolean headScaled,
float childHeadYOffset,
float childHeadZOffset,
float invertedChildHeadScale,
float invertedChildBodyScale,
float childBodyYOffset) |
Modifier and Type | Method and Description |
---|---|
protected abstract Iterable<ModelPart> |
getBodyParts() |
protected abstract Iterable<ModelPart> |
getHeadParts() |
void |
render(MatrixStack matrices,
VertexConsumer vertices,
int light,
int overlay,
float red,
float green,
float blue,
float alpha) |
animateModel, copyStateTo, setAngles
private final boolean headScaled
private final float childHeadYOffset
private final float childHeadZOffset
private final float invertedChildHeadScale
private final float invertedChildBodyScale
private final float childBodyYOffset
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> function, boolean headScaled, float childHeadYOffset, float childHeadZOffset, float invertedChildHeadScale, float invertedChildBodyScale, float childBodyYOffset)
protected AnimalModel()
public void render(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, float red, float green, float blue, float alpha)