Namespace LowLevelUtils

Specific methods, for the most part, are designed to work with Inner Core internals and debug various data.

2.2.1b110

Functions

  • Creates an empty resource or behavior pack with a manifest to add content during mod loading. Please use names without special characters and only with ASCII characters.

    Parameters

    • type: "resource" | "behavior" | "behaviour"
    • name: string

      pack title to be used for folder and displayed in pack list; folder will receive "runtime_<name>" name and title in interface will be "runtime pack: <name>"

    Returns string

  • Dumps AdaptedScript API hieracly to log with debug priority.

    Returns void

  • Displays dialog with given bitmap image and title " bitmap <width>x<height>".

    Parameters

    Returns void

  • Displays dialog with given message and without title.

    Parameters

    • message: string

    Returns void

  • Executes any code in the script body of a given object, the object itself becomes a local list of variables for code execution.

    Parameters

    • code: string

      text to evaluate in given scope

    • scope: object

      object in which context code is executed

    • name: string

      script name for errors, debugging, etc.

    Returns object

    2.2.0b76

  • Causes a native error, which immediately leads to the forced closure of the game.

    Returns void

  • Gets status of server tick, e.g. is tick disabled due to error. After restarting the world/server, this state is reset.

    Returns boolean

  • Calls an action in the Android interface thread. Any unexpected errors here will lead to the closure of the game, please add try-catch blocks to prevent this.

    Parameters

    • func: (() => void)
        • (): void
        • Returns void

    Returns void

  • Instead of displaying fatal error type in dialog with a log, the specified function will be called to change this behavior.

    Parameters

    Returns void

  • Instead of displaying non-fatal error type in dialog with a log, the specified function will be called to change this behavior.

    Parameters

    Returns void

  • Instead of displaying startup error type in dialog with a log, the specified function will be called to change this behavior. For startup errors, only message and recent log are available, all other data will be passed as null.

    Parameters

    Returns void

  • Changes bottom label on mod loading screen, it is recommended to use it for debugging or visualization of long work during startup.

    Parameters

    • tip: string

    Returns void

  • Parameters

    • priority: number

    Returns void

Type Aliases

ThreadTypeMarker: "CLIENT" | "SERVER" | "UNKNOWN"

Marking for current thread, unknown thread are used by default if this thread is not indented to be server or client-side.

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.