@Environment(value=CLIENT) public abstract class Model extends Object implements Consumer<ModelPart>
Modifier and Type | Field and Description |
---|---|
protected Function<Identifier,RenderLayer> |
layerFactory |
int |
textureHeight |
int |
textureWidth |
Constructor and Description |
---|
Model(Function<Identifier,RenderLayer> layerFactory) |
Modifier and Type | Method and Description |
---|---|
void |
accept(ModelPart modelPart) |
RenderLayer |
getLayer(Identifier texture) |
abstract void |
render(MatrixStack matrices,
VertexConsumer vertices,
int light,
int overlay,
float red,
float green,
float blue,
float alpha) |
protected final Function<Identifier,RenderLayer> layerFactory
public int textureWidth
public int textureHeight
public Model(Function<Identifier,RenderLayer> layerFactory)
public void accept(ModelPart modelPart)
public final RenderLayer getLayer(Identifier texture)
public abstract void render(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, float red, float green, float blue, float alpha)