Class RenderLayerHelper
java.lang.Object
net.fabricmc.fabric.api.renderer.v1.render.RenderLayerHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic BlockVertexConsumerProviderentityDelegate(net.minecraft.client.renderer.MultiBufferSource vertexConsumers) Wraps the given provider, convertingChunkSectionLayers to render layers usinggetEntityBlockLayer(ChunkSectionLayer).static net.minecraft.client.renderer.rendertype.RenderTypegetEntityBlockLayer(net.minecraft.client.renderer.chunk.ChunkSectionLayer layer) Same logic asItemBlockRenderTypes.getRenderType(net.minecraft.world.level.block.state.BlockState), but accepts aChunkSectionLayerinstead of aBlockState.static net.minecraft.client.renderer.rendertype.RenderTypegetMovingBlockLayer(net.minecraft.client.renderer.chunk.ChunkSectionLayer layer) Same logic asItemBlockRenderTypes.getMovingBlockRenderType(net.minecraft.world.level.block.state.BlockState), but accepts aChunkSectionLayerinstead of aBlockState.static BlockVertexConsumerProvidermovingDelegate(net.minecraft.client.renderer.MultiBufferSource vertexConsumers) Wraps the given provider, convertingChunkSectionLayers to render layers 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(net.minecraft.world.level.block.state.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(net.minecraft.world.level.block.state.BlockState), but accepts aChunkSectionLayerinstead of aBlockState. -
movingDelegate
public static BlockVertexConsumerProvider movingDelegate(net.minecraft.client.renderer.MultiBufferSource vertexConsumers) Wraps the given provider, convertingChunkSectionLayers to render layers usinggetMovingBlockLayer(ChunkSectionLayer). -
entityDelegate
public static BlockVertexConsumerProvider entityDelegate(net.minecraft.client.renderer.MultiBufferSource vertexConsumers) Wraps the given provider, convertingChunkSectionLayers to render layers usinggetEntityBlockLayer(ChunkSectionLayer).
-