Interface ShaderTextureSource.Context
- All Known Subinterfaces:
PostPipeline.Context
- All Known Implementing Classes:
PostPipelineContext
- Enclosing interface:
ShaderTextureSource
public static interface ShaderTextureSource.Context
Context for applying shader textures.
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable AdvancedFbogetFramebuffer(net.minecraft.resources.ResourceLocation name) Retrieves a framebuffer by id.default intgetTexture(net.minecraft.resources.ResourceLocation name) Retrieves a texture by id.
-
Method Details
-
getFramebuffer
@Nullable default @Nullable AdvancedFbo getFramebuffer(net.minecraft.resources.ResourceLocation name) Retrieves a framebuffer by id.- Parameters:
name- The name of the framebuffer to retrieve- Returns:
- The framebuffer with that id or
nullif 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
-