Class RenderTypeProvider
java.lang.Object
team.lodestar.lodestone.systems.rendering.rendeertype.RenderTypeProvider
A provider for creating
LodestoneRenderType instances.
Render types are cached to allow for non-static, conditional or procedural render type instances to be created
The cache is based on a RenderTypeToken, which will consider any added uniform handlers and modifiers as a separate token, leading to a different render type.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(RenderTypeToken token) booleanprotected LodestoneRenderTypecreateRenderType(RenderTypeToken token) Creates a newLodestoneRenderTypeusing the provided token and builder.toString()
-
Constructor Details
-
RenderTypeProvider
-
-
Method Details
-
apply
-
createRenderType
Creates a newLodestoneRenderTypeusing the provided token and builder.- Parameters:
token- the token to create the render type with- Returns:
- the created
LodestoneRenderType
-
toString
-
checkNuclear
public boolean checkNuclear()
-