Interface FabricRenderCommandQueue


public interface FabricRenderCommandQueue
Note: This interface is automatically implemented on OrderedSubmitNodeCollector via Mixin and interface injection.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    submitBlock(com.mojang.blaze3d.vertex.PoseStack matrices, net.minecraft.world.level.block.state.BlockState state, int light, int overlay, int outlineColor, net.minecraft.world.level.BlockAndTintGetter blockView, net.minecraft.core.BlockPos pos)
    Alternative for OrderedSubmitNodeCollector.submitBlock(PoseStack, BlockState, int, int, int) that additionally accepts the BlockAndTintGetter and BlockPos to pass to
    invalid reference
    BlockStateModel#emitQuads(QuadEmitter, BlockAndTintGetter, BlockPos, BlockState, RandomSource, Predicate)
    when necessary.
    default void
    submitBlockStateModel(com.mojang.blaze3d.vertex.PoseStack matrices, Function<net.minecraft.client.renderer.chunk.ChunkSectionLayer,net.minecraft.client.renderer.rendertype.RenderType> renderLayerFunction, net.minecraft.client.renderer.block.model.BlockStateModel model, float r, float g, float b, int light, int overlay, int outlineColor, net.minecraft.world.level.BlockAndTintGetter blockView, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
    Alternative for OrderedSubmitNodeCollector.submitBlockModel(PoseStack, RenderType, BlockStateModel, float, float, float, int, int, int) that accepts a Function<BlockRenderLayer, RenderLayer> instead of a RenderType.
  • Method Details

    • submitBlock

      default void submitBlock(com.mojang.blaze3d.vertex.PoseStack matrices, net.minecraft.world.level.block.state.BlockState state, int light, int overlay, int outlineColor, net.minecraft.world.level.BlockAndTintGetter blockView, net.minecraft.core.BlockPos pos)
      Alternative for OrderedSubmitNodeCollector.submitBlock(PoseStack, BlockState, int, int, int) that additionally accepts the BlockAndTintGetter and BlockPos to pass to
      invalid reference
      BlockStateModel#emitQuads(QuadEmitter, BlockAndTintGetter, BlockPos, BlockState, RandomSource, Predicate)
      when necessary. Prefer using this method over the vanilla alternative to correctly render models that have geometry on multiple render layers and to provide the model with additional context.

      This method allows rendering a block model with minimal transformations to the model geometry. Also invokes the SpecialModelRenderer. Usually used by entity renderers.

      Parameters:
      matrices - The matrices.
      state - The block state.
      light - The minimum light value.
      overlay - The overlay value.
      outlineColor - The outline color.
      blockView - The world in which to render the model. Can be empty (i.e. EmptyBlockAndTintGetter). Must not be mutated after calling this method.
      pos - The position of the block in the world. Should be BlockPos.ZERO if the world is empty. Must not be mutated after calling this method.
      See Also:
    • submitBlockStateModel

      default void submitBlockStateModel(com.mojang.blaze3d.vertex.PoseStack matrices, Function<net.minecraft.client.renderer.chunk.ChunkSectionLayer,net.minecraft.client.renderer.rendertype.RenderType> renderLayerFunction, net.minecraft.client.renderer.block.model.BlockStateModel model, float r, float g, float b, int light, int overlay, int outlineColor, net.minecraft.world.level.BlockAndTintGetter blockView, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
      Alternative for OrderedSubmitNodeCollector.submitBlockModel(PoseStack, RenderType, BlockStateModel, float, float, float, int, int, int) that accepts a Function<BlockRenderLayer, RenderLayer> instead of a RenderType. Also accepts the BlockAndTintGetter, BlockPos, and BlockState to pass to
      invalid reference
      BlockStateModel#emitQuads(QuadEmitter, BlockAndTintGetter, BlockPos, BlockState, RandomSource, Predicate)
      when necessary. Prefer using this method over the vanilla alternative to correctly render models that have geometry on multiple render layers and to provide the model with additional context.

      This method allows rendering a block model with minimal transformations to the model geometry. Usually used by entity renderers.

      Parameters:
      matrices - The matrices.
      renderLayerFunction - The function to use to convert ChunkSectionLayers to RenderTypes. Must not be mutated after calling this method.
      model - The model to render.
      r - The red component of the tint color.
      g - The green component of the tint color.
      b - The blue component of the tint color.
      light - The minimum light value.
      overlay - The overlay value.
      outlineColor - The outline color.
      blockView - The world in which to render the model. Can be empty (i.e. EmptyBlockAndTintGetter). Must not be mutated after calling this method.
      pos - The position of the block in the world. Should be BlockPos.ZERO if the world is empty. Must not be mutated after calling this method.
      state - The block state. Should be Blocks.AIR.getDefaultState() if not applicable.
      See Also: