MixinWeightedBakedModel

public class MixinWeightedBakedModel implements FabricBakedModel

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.
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.

Sources

jvm source
Link copied to clipboard