Package net.neoforged.neoforge.client
Class RenderTypeHelper
java.lang.Object
net.neoforged.neoforge.client.RenderTypeHelper
Provides helper functions replacing those in
ItemBlockRenderTypes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RenderTypegetEntityRenderType(ChunkSectionLayer chunkSectionLayer) Provides aRenderTypeusingDefaultVertexFormat.NEW_ENTITYfor the givenDefaultVertexFormat.BLOCKformat.static RenderTypegetMovingBlockRenderType(ChunkSectionLayer chunkSectionLayer) Provides aRenderTypefit for rendering moving blocks given the specified chunk render type.
-
Constructor Details
-
RenderTypeHelper
private RenderTypeHelper()
-
-
Method Details
-
getEntityRenderType
Provides aRenderTypeusingDefaultVertexFormat.NEW_ENTITYfor the givenDefaultVertexFormat.BLOCKformat. This should be called for eachRenderTypereturned byBlockModelPartExtension.getRenderType(BlockState).Mimics the behavior of vanilla's
ItemBlockRenderTypes.getRenderType(BlockState). -
getMovingBlockRenderType
Provides aRenderTypefit for rendering moving blocks given the specified chunk render type. This should be called for eachRenderTypereturned byBlockModelPartExtension.getRenderType(BlockState).Mimics the behavior of vanilla's
ItemBlockRenderTypes.getMovingBlockRenderType(BlockState).
-