Class ChunkSectionLayerHelper
java.lang.Object
net.fabricmc.fabric.api.client.renderer.v1.render.ChunkSectionLayerHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic BlockMultiBufferSourceentityDelegate(net.minecraft.client.renderer.MultiBufferSource bufferSource) Wraps the given provider, convertingChunkSectionLayers to render types usinggetEntityBlockLayer(ChunkSectionLayer).static net.minecraft.client.renderer.rendertype.RenderTypegetEntityBlockLayer(net.minecraft.client.renderer.chunk.ChunkSectionLayer layer) Same logic asItemBlockRenderTypes.getRenderType(BlockState), but accepts aChunkSectionLayerinstead of aBlockState.static net.minecraft.client.renderer.rendertype.RenderTypegetMovingBlockLayer(net.minecraft.client.renderer.chunk.ChunkSectionLayer layer) Same logic asItemBlockRenderTypes.getMovingBlockRenderType(BlockState), but accepts aChunkSectionLayerinstead of aBlockState.static BlockMultiBufferSourcemovingDelegate(net.minecraft.client.renderer.MultiBufferSource bufferSource) Wraps the given provider, convertingChunkSectionLayers to render types usinggetMovingBlockLayer(ChunkSectionLayer).
-
Method Details
-
getMovingBlockLayer
public static net.minecraft.client.renderer.rendertype.RenderType getMovingBlockLayer(net.minecraft.client.renderer.chunk.ChunkSectionLayer layer) Same logic asItemBlockRenderTypes.getMovingBlockRenderType(BlockState), but accepts aChunkSectionLayerinstead of aBlockState. -
getEntityBlockLayer
public static net.minecraft.client.renderer.rendertype.RenderType getEntityBlockLayer(net.minecraft.client.renderer.chunk.ChunkSectionLayer layer) Same logic asItemBlockRenderTypes.getRenderType(BlockState), but accepts aChunkSectionLayerinstead of aBlockState. -
movingDelegate
public static BlockMultiBufferSource movingDelegate(net.minecraft.client.renderer.MultiBufferSource bufferSource) Wraps the given provider, convertingChunkSectionLayers to render types usinggetMovingBlockLayer(ChunkSectionLayer). -
entityDelegate
public static BlockMultiBufferSource entityDelegate(net.minecraft.client.renderer.MultiBufferSource bufferSource) Wraps the given provider, convertingChunkSectionLayers to render types usinggetEntityBlockLayer(ChunkSectionLayer).
-