ForwardingBakedModel

public abstract class ForwardingBakedModel implements BakedModel, FabricBakedModel

Base class for specialized model implementations that need to wrap other baked models. Avoids boilerplate code for pass-through methods.

Functions

emitBlockQuads
Link copied to clipboard
void emitBlockQuads(BlockRenderView blockView, BlockState state, BlockPos pos, Supplier<Random> randomSupplier, RenderContext context)
This method will be called during chunk rebuilds to generate both the static anddynamic portions of a block model when the model implements this interface and isVanillaAdapter returns false.
emitItemQuads
Link copied to clipboard
void emitItemQuads(ItemStack stack, Supplier<Random> randomSupplier, RenderContext context)
This method will be called during item rendering to generate both the static anddynamic portions of an item model when the model implements this interface and isVanillaAdapter returns false.
getOverrides
Link copied to clipboard
ModelOverrideList getOverrides()
abstract ModelOverrideList getOverrides()
getQuads
Link copied to clipboard
List<BakedQuadgetQuads(BlockState blockState, Direction face, Random rand)
abstract List<BakedQuadgetQuads(BlockState state, Direction face, Random random)
getSprite
Link copied to clipboard
Sprite getSprite()
abstract Sprite getSprite()
getTransformation
Link copied to clipboard
ModelTransformation getTransformation()
abstract ModelTransformation getTransformation()
hasDepth
Link copied to clipboard
boolean hasDepth()
abstract boolean hasDepth()
isBuiltin
Link copied to clipboard
boolean isBuiltin()
abstract boolean isBuiltin()
isSideLit
Link copied to clipboard
boolean isSideLit()
abstract boolean isSideLit()
isVanillaAdapter
Link copied to clipboard
boolean isVanillaAdapter()
When true, signals renderer this producer is implemented through getQuads.Also means the model does not rely on any non-vanilla features.Allows the renderer to optimize or route vanilla models through the unmodified vanilla pipeline if desired.
useAmbientOcclusion
Link copied to clipboard
boolean useAmbientOcclusion()
abstract boolean useAmbientOcclusion()

Sources

jvm source
Link copied to clipboard