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
RenderPipeline
s 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
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceKey
<net.minecraft.core.Registry<PipelineModifier>> -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.blaze3d.pipeline.RenderPipeline
apply
(com.mojang.blaze3d.pipeline.RenderPipeline pipeline, net.minecraft.resources.ResourceLocation name) Apply modifications to the providedRenderPipeline
(seeRenderPipeline.toBuilder()
), return an existingRenderPipeline
to replace the provided one or return the provided one to pass.
-
Field Details
-
MODIFIERS_KEY
static final net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<PipelineModifier>> MODIFIERS_KEY
-
-
Method Details
-
apply
com.mojang.blaze3d.pipeline.RenderPipeline apply(com.mojang.blaze3d.pipeline.RenderPipeline pipeline, net.minecraft.resources.ResourceLocation name) Apply modifications to the providedRenderPipeline
(seeRenderPipeline.toBuilder()
), return an existingRenderPipeline
to 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
ResourceLocation
as the pipeline's location in order to ensure traceability of pipeline modifications.- Parameters:
pipeline
- TheRenderPipeline
to be modifiedname
- The name to use for the modified pipeline
-