Interface PartRenderContext
- All Superinterfaces:
RenderContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.fabricmc.fabric.api.renderer.v1.render.RenderContext
RenderContext.QuadTransform
-
Method Summary
Modifier and TypeMethodDescriptiondefault Consumer<BakedModel>
default QuadEmitter
default Random
default void
default void
pushTransform
(RenderContext.QuadTransform transform) boolean
-
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).
-
getRandomSupplier
- Returns:
- The random supplier that is passed to
FabricBakedModel.emitBlockQuads(BlockRenderView, BlockState, BlockPos, Supplier, RenderContext)
-
getRandom
- Returns:
getRandomSupplier()
.Supplier.get()
-
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
-