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 Summary
Modifier and TypeMethodDescriptionReturns whether the pipeline draw mode should be used for GUI rendering.static RenderPipeline.SnippetCreates a new snippet without the pipeline draw mode for GUI rendering.static RenderPipeline.SnippetwithPipelineDrawModeForGui(RenderPipeline.Snippet base, boolean usePipelineDrawMode) Creates a new snippet with the specified pipeline draw mode for GUI rendering.
-
Method Details
-
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
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.
-