๐บ๏ธ emit#
Writes the .mcfunction.map sidecars for StewBeetโs own writes, as a pipeline step of its own.
It is separate from the capture plugin because the two have opposite ordering needs:
capture must be installed before anything writes a function, while emission must happen after every rewriting plugin and still before
stewbeet.plugins.archive zips the pack. A generatorโs teardown cannot sit between those two, so the pipeline lists both.
- write_maps(ctx: Context) int[source]#
Write one
.mcfunction.mapbeside every generated function that has a known origin.A function whose chunks, text and pack layout are all unchanged since the last build gets its map back from the cache instead of being reconciled again, which is where nearly all of the time goes.
- Returns:
How many sidecars this call wrote, ignoring functions already carrying a comment.
- beet_default(ctx: Context) None[source]#
Write the source maps into the pack, before any plugin turns the pack into a distributable.
Place it after every plugin that writes or rewrites functions, and before
stewbeet.plugins.archive.- Parameters:
ctx โ The beet context.