Refactor writing/formatting systems

This commit is contained in:
Andrew Miner
2025-10-13 20:59:15 -06:00
parent 516748bee5
commit 25b1b7f9f9
48 changed files with 1463 additions and 417 deletions
+20
View File
@@ -0,0 +1,20 @@
from mcpacker.format.report.composer import ReportComposer
from mcpacker.model.modpack import ModPack
from pathlib import Path
# Class ############################################################################################
class MineralReport(ReportComposer):
def doCompose(self):
for mineral in self.pack.world.minerals:
self.line(f"# Mineral: {mineral.name}")
self.line()
self.indent()
for replacement in mineral.replacements:
self.text("* ").line(str(replacement))
self.outdent()
self.line()