Interface PartRenderContext
- All Superinterfaces:
RenderContext
public interface PartRenderContext extends RenderContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.fabricmc.fabric.api.renderer.v1.render.RenderContext
RenderContext.QuadTransform
-
Method Summary
Modifier and Type Method Description default Consumer<BakedModel>
fallbackConsumer()
PartBreakContext
getBreakContext()
default QuadEmitter
getEmitter()
RenderContext
getRealRenderContext()
default Consumer<Mesh>
meshConsumer()
default void
popTransform()
default void
pushTransform(RenderContext.QuadTransform transform)
boolean
shouldQuadsBeLit()
-
Method Details
-
getRealRenderContext
RenderContext getRealRenderContext()- Returns:
- The backing
RenderContext
that is used for this.
-
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
- Specified by:
meshConsumer
in interfaceRenderContext
-
fallbackConsumer
- Specified by:
fallbackConsumer
in interfaceRenderContext
-
getEmitter
- Specified by:
getEmitter
in interfaceRenderContext
-
pushTransform
- Specified by:
pushTransform
in interfaceRenderContext
-
popTransform
default void popTransform()- Specified by:
popTransform
in interfaceRenderContext
-