Interface PartRenderContext

All Superinterfaces:
net.fabricmc.fabric.api.renderer.v1.render.RenderContext

public interface PartRenderContext
extends net.fabricmc.fabric.api.renderer.v1.render.RenderContext
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.fabricmc.fabric.api.renderer.v1.render.RenderContext

    net.fabricmc.fabric.api.renderer.v1.render.RenderContext.QuadTransform
  • Method Summary

    Modifier and Type Method Description
    default java.util.function.Consumer<net.minecraft.client.render.model.BakedModel> fallbackConsumer()  
    PartBreakContext getBreakContext()  
    default net.fabricmc.fabric.api.renderer.v1.mesh.QuadEmitter getEmitter()  
    net.fabricmc.fabric.api.renderer.v1.render.RenderContext getRealRenderContext()  
    default java.util.function.Consumer<net.fabricmc.fabric.api.renderer.v1.mesh.Mesh> meshConsumer()  
    default void popTransform()  
    default void pushTransform​(net.fabricmc.fabric.api.renderer.v1.render.RenderContext.QuadTransform transform)  
    boolean shouldQuadsBeLit()  
  • Method Details

    • getRealRenderContext

      net.fabricmc.fabric.api.renderer.v1.render.RenderContext getRealRenderContext()
      Returns:
      The backing RenderContext that is used for this.
    • getBreakContext

      @Nullable PartBreakContext getBreakContext()
      Returns:
      A PartBreakContext if a part (or sub-part) is being broken.
    • shouldQuadsBeLit

      boolean shouldQuadsBeLit()
      Returns:
      True if the quads emitted to this render context should be pre-lit according to their direction (for block models) or not (for item models).
    • meshConsumer

      default java.util.function.Consumer<net.fabricmc.fabric.api.renderer.v1.mesh.Mesh> meshConsumer()
      Specified by:
      meshConsumer in interface net.fabricmc.fabric.api.renderer.v1.render.RenderContext
    • fallbackConsumer

      default java.util.function.Consumer<net.minecraft.client.render.model.BakedModel> fallbackConsumer()
      Specified by:
      fallbackConsumer in interface net.fabricmc.fabric.api.renderer.v1.render.RenderContext
    • getEmitter

      default net.fabricmc.fabric.api.renderer.v1.mesh.QuadEmitter getEmitter()
      Specified by:
      getEmitter in interface net.fabricmc.fabric.api.renderer.v1.render.RenderContext
    • pushTransform

      default void pushTransform​(net.fabricmc.fabric.api.renderer.v1.render.RenderContext.QuadTransform transform)
      Specified by:
      pushTransform in interface net.fabricmc.fabric.api.renderer.v1.render.RenderContext
    • popTransform

      default void popTransform()
      Specified by:
      popTransform in interface net.fabricmc.fabric.api.renderer.v1.render.RenderContext