Interface ShaderTextureSource.Context
- All Known Subinterfaces:
PostPipeline.Context
- All Known Implementing Classes:
PostPipelineContext
- Enclosing interface:
ShaderTextureSource
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Context for applying shader textures.
-
Method Summary
Modifier and TypeMethodDescription@Nullable AdvancedFbo
getFramebuffer
(net.minecraft.resources.ResourceLocation name) Retrieves a framebuffer by id.default int
getTexture
(net.minecraft.resources.ResourceLocation name) Retrieves a texture by id.
-
Method Details
-
getFramebuffer
Retrieves a framebuffer by id.- Parameters:
name
- The name of the framebuffer to retrieve- Returns:
- The framebuffer with that id or
null
if it was not found
-
getTexture
default int getTexture(net.minecraft.resources.ResourceLocation name) Retrieves a texture by id.- Parameters:
name
- The name of the texture to retrieve- Returns:
- The texture with that id or the missing texture if it was not found
-