Interface PipelineModifier
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface for modifying or replacing
RenderPipelines in arbitrary render paths on the fly.
All implementations of this interface must be idempotent and have to return the exact same result for the given
input. The result of invoking apply(RenderPipeline, ResourceLocation) will be cached.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionapply(RenderPipeline pipeline, ResourceLocation name) Apply modifications to the providedRenderPipeline(seeRenderPipeline.toBuilder()), return an existingRenderPipelineto replace the provided one or return the provided one to pass.
-
Field Details
-
MODIFIERS_KEY
-
-
Method Details
-
apply
Apply modifications to the providedRenderPipeline(seeRenderPipeline.toBuilder()), return an existingRenderPipelineto replace the provided one or return the provided one to pass.If the provided pipeline is modified, then the returned pipeline must use the provided
ResourceLocationas the pipeline's location in order to ensure traceability of pipeline modifications.- Parameters:
pipeline- TheRenderPipelineto be modifiedname- The name to use for the modified pipeline
-