Interface FabricRenderPipeline.Snippet

Enclosing interface:
FabricRenderPipeline

public static interface FabricRenderPipeline.Snippet
General purpose Fabric extensions to the RenderPipeline.Snippet class.

Note: This interface is automatically implemented on all render pipeline snippets via Mixin and interface injection.

  • Method Details

    • usePipelineDrawModeForGui

      default Optional<Boolean> usePipelineDrawModeForGui()
      Returns whether the pipeline draw mode should be used for GUI rendering.
      Returns:
      an Optional containing true if the pipeline draw mode should be used for GUI rendering, false otherwise.
    • withPipelineDrawModeForGui

      static RenderPipeline.Snippet withPipelineDrawModeForGui(RenderPipeline.Snippet base, boolean usePipelineDrawMode)
      Creates a new snippet with the specified pipeline draw mode for GUI rendering.
      Parameters:
      usePipelineDrawMode - true if the pipeline draw mode should be used for GUI rendering, false otherwise.
      Returns:
      a new RenderPipeline.Snippet instance with the specified pipeline draw mode.
    • withoutPipelineDrawModeForGui

      static RenderPipeline.Snippet withoutPipelineDrawModeForGui(RenderPipeline.Snippet base)
      Creates a new snippet without the pipeline draw mode for GUI rendering.
      Returns:
      a new RenderPipeline.Snippet instance without any effect on whether the pipeline draw mode will be used for GUI rendering.