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 int
    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 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