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 Type
    Method
    Description
    default @Nullable AdvancedFbo
    getFramebuffer(net.minecraft.resources.ResourceLocation name)
    Retrieves a framebuffer by id.
    default net.minecraft.client.renderer.texture.AbstractTexture
    getTexture(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 null if it was not found
    • getTexture

      default net.minecraft.client.renderer.texture.AbstractTexture 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