Package net.minecraft.client.model
Class Model
java.lang.Object
net.minecraft.client.model.Model
- Direct Known Subclasses:
BookModel,EntityModel,ShieldEntityModel,SignBlockEntityRenderer.SignModel,SkullEntityModel,TridentEntityModel
@Environment(CLIENT) public abstract class Model extends Object implements Consumer<ModelPart>
-
Field Summary
Fields Modifier and Type Field Description protected Function<Identifier,RenderLayer>layerFactoryinttextureHeightinttextureWidth -
Constructor Summary
Constructors Constructor Description Model(Function<Identifier,RenderLayer> layerFactory) -
Method Summary
Modifier and Type Method Description voidaccept(ModelPart modelPart)RenderLayergetLayer(Identifier texture)abstract voidrender(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, float red, float green, float blue, float alpha)
-
Field Details
-
layerFactory
-
textureWidth
public int textureWidth -
textureHeight
public int textureHeight
-
-
Constructor Details
-
Model
-
-
Method Details
-
accept
-
getLayer
-
render
public abstract void render(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, float red, float green, float blue, float alpha)
-