Namespace Debug

Defines some useful methods for debugging.

Functions

  • Spawns vanilla debug particle on the specified coordinates.

    Parameters

    • id: number

      particle type ID, should be one of the EParticleType

    • x: number
    • y: number
    • z: number
    • vx: number

      x velocity

    • vy: number

      y velocity

    • vz: number

      y velocity

    • data: number

      additional particles data

    Returns void

  • Writes several values in JSON format to the selectable alert window text view, serializing javascript objects if possible.

    Parameters

    • Rest...args: any[]

      messages to be displayed

    Returns void

    2.0.5b44

  • Displays an android.app.AlertDialog with given title and bitmap.

    Parameters

    • bitmap: Bitmap

      android.graphics.Bitmap object of the bitmap to be displayed

    • Optionaltitle: any

      title of the AlertDialog

    Returns void

  • Writes error debug message (in red) to local player in chat.

    Parameters

    • message: any

      message to be displayed

    Returns void

  • Writes several comma-separated values to local player in chat as a general debug message, serializing javascript objects if possible.

    Parameters

    • Rest...args: any[]

      messages to be displayed

    Returns void

    2.0.5b44

  • Writes general debug message (in green) to local player in chat.

    Parameters

    • message: any

      message to be displayed

    Returns void

  • Returns number

    Current system time in milliseconds.

  • Writes warning debug message (in gold) to local player in chat.

    Parameters

    • message: any

      message to be displayed

    Returns void

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