Class ChunkSectionLayerHelper

java.lang.Object
net.fabricmc.fabric.api.client.renderer.v1.render.ChunkSectionLayerHelper

public final class ChunkSectionLayerHelper extends Object
  • Method Details

    • getMovingBlockLayer

      public static net.minecraft.client.renderer.rendertype.RenderType getMovingBlockLayer(net.minecraft.client.renderer.chunk.ChunkSectionLayer layer)
      Same logic as ItemBlockRenderTypes.getMovingBlockRenderType(BlockState), but accepts a ChunkSectionLayer instead of a BlockState.
    • getEntityBlockLayer

      public static net.minecraft.client.renderer.rendertype.RenderType getEntityBlockLayer(net.minecraft.client.renderer.chunk.ChunkSectionLayer layer)
      Same logic as ItemBlockRenderTypes.getRenderType(BlockState), but accepts a ChunkSectionLayer instead of a BlockState.
    • movingDelegate

      public static BlockMultiBufferSource movingDelegate(net.minecraft.client.renderer.MultiBufferSource bufferSource)
      Wraps the given provider, converting ChunkSectionLayers to render types using getMovingBlockLayer(ChunkSectionLayer).
    • entityDelegate

      public static BlockMultiBufferSource entityDelegate(net.minecraft.client.renderer.MultiBufferSource bufferSource)
      Wraps the given provider, converting ChunkSectionLayers to render types using getEntityBlockLayer(ChunkSectionLayer).