Modsmith v0.1.1
Get started Guides Concepts Reference Help
/
PaPa-jun/Modsmith

Reference

  • Reference
    • Platforms
    • Modpacks
    • Mod loaders
    • Instances
    • Minecraft
    • Java
    • Launcher
    • Network
    • Progress
      • Progress
      • CancelToken
      • ProgressCallback
      • report
    • Errors
Reference Progress

funcreport#

report(
callback: Callable[[Progress], None] | None,
task: str,
current: int,
total: int | None = None,
unit: str = 'item',
) → None#

Send a Progress update if a callback was given.

Parameters:
  • callback (Callable[[Progress], None] | None) – The callback, or None to do nothing.

  • task (str) – The current stage.

  • current (int) – The units finished so far.

  • total (int | None) – The units expected, or None if unknown.

  • unit (str) – What is counted.

PreviousProgressCallbackNextErrors

On this page

  • report
    • report()

Copyright © 2026 MeNeither
Released under the MIT License. Built with Sphinx.