Options
All
  • Public
  • Public/Protected
  • All
Menu

Change the outputs of specific console functions; To enable chat log ingame, run /tag @s add devLog

Hierarchy

  • Debug

Index

Constructors

Properties

maxFormatterDepth: number = 3

Max formatter depth

default

3

outputConsoleErrorToChat: boolean = true

Make console.error() output to chat

default

true

outputConsoleLogToChat: boolean = true

Make console.log() output to chat

default

true

outputConsoleWarnToChat: boolean = true

Make console.warn() output to chat

default

true

Methods

  • format(data: any, indent?: string, maxDepth?: number): string
  • Format data into a colored string

    Parameters

    • data: any

      Data to format

    • Optional indent: string

      A string used to indent

    • Optional maxDepth: number

      The max depth to format to

    Returns string

    A formatted string version of the data

  • visualize(origin: Vector3, direction: Vector3, dimension?: Dimension, particle?: string, segments?: number): void
  • Visualizes a Vector by using particles

    Parameters

    • origin: Vector3

      The start position for the visualization

    • direction: Vector3

      The direction to cast the visualization in (length is also determined by this direction)

    • dimension: Dimension = ...

      Optional Dimension to visualize in. Set to 'overworld' by default

    • particle: string = MinecraftParticles.basicFlame

      Optional particle id string used to specify what particle to use in the visualization Set to 'minecraft:basic_flame_particle' by default

    • segments: number = 10

      Optional number specifying how many points to visualize. Set to 10 by default

    Returns void

Generated using TypeDoc version 0.22.18, the 7/5/2022