Class ForwardingBakedModel
java.lang.Object
net.fabricmc.fabric.api.renderer.v1.model.ForwardingBakedModel
- All Implemented Interfaces:
WrapperBakedModel
,BakedModel
Base class for specialized model implementations that need to wrap other baked models.
Avoids boilerplate code for pass-through methods.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
emitBlockQuads
(BlockRenderView blockView, BlockState state, BlockPos pos, Supplier<Random> randomSupplier, RenderContext context) void
emitItemQuads
(ItemStack stack, Supplier<Random> randomSupplier, RenderContext context) getQuads
(BlockState blockState, Direction face, Random rand) Return the wrapped model, if there is one at the moment, ornull
otherwise.boolean
hasDepth()
boolean
boolean
boolean
boolean
-
Field Details
-
wrapped
implementations must set this somehow.
-
-
Constructor Details
-
ForwardingBakedModel
public ForwardingBakedModel()
-
-
Method Details
-
isVanillaAdapter
public boolean isVanillaAdapter() -
emitBlockQuads
public void emitBlockQuads(BlockRenderView blockView, BlockState state, BlockPos pos, Supplier<Random> randomSupplier, RenderContext context) -
emitItemQuads
-
getQuads
- Specified by:
getQuads
in interfaceBakedModel
-
useAmbientOcclusion
public boolean useAmbientOcclusion()- Specified by:
useAmbientOcclusion
in interfaceBakedModel
-
hasDepth
public boolean hasDepth()- Specified by:
hasDepth
in interfaceBakedModel
-
isBuiltin
public boolean isBuiltin()- Specified by:
isBuiltin
in interfaceBakedModel
-
getParticleSprite
- Specified by:
getParticleSprite
in interfaceBakedModel
-
isSideLit
public boolean isSideLit()- Specified by:
isSideLit
in interfaceBakedModel
-
getTransformation
- Specified by:
getTransformation
in interfaceBakedModel
-
getOverrides
- Specified by:
getOverrides
in interfaceBakedModel
-
getWrappedModel
Description copied from interface:WrapperBakedModel
Return the wrapped model, if there is one at the moment, ornull
otherwise.If there are multiple layers of wrapping, this method does not necessarily return the innermost model.
- Specified by:
getWrappedModel
in interfaceWrapperBakedModel
-