Options
All
  • Public
  • Public/Protected
  • All
Menu

MBCore GameTest Module

Index

Type Aliases

DimensionIds: "minecraft:overworld" | "minecraft:the_end" | "minecraft:nether"
FieldType: StaticFieldType["prototype"]
FieldTypeIds: FieldType["type"]
Gamemode: "creative" | "survival" | "adventure" | "default" | "c" | "s" | "a" | "d" | 0 | 1 | 2
ModalComponent: DropDown | Slider | TextBox | Toggle
ModalResponse: {}

Type declaration

  • [componentId: string]: { index: number; value: string } | string | number | boolean
SelectorType: "a" | "e" | "r" | "p" | "s" | "c" | "initiator"
StaticFieldType: typeof BooleanField | typeof NumberField | typeof MapField | typeof StringField
Target: string | Selector | MBCPlayer | Entity | Player
schema: {}

Type declaration

Variables

CustomEvents: EventEmitter = ...
FieldTypes: { boolean: typeof BooleanField; map: typeof MapField; number: typeof NumberField; string: typeof StringField } = ...

Type declaration

JSONRequest: JSONRequestEmitter

Functions

  • setTickInterval(callback: (() => any), ticks: number): TickInterval
  • Creates a tick interval that fires repeatedly at the specified rate

    Parameters

    • callback: (() => any)

      The function to call

        • (): any
        • Returns any

    • ticks: number

      How often to call the function

    Returns TickInterval

    A new TickInterval

  • setTickTimeout(callback: (() => any), ticks: number): TickTimeout
  • Creates a tick timeout that fires after the specified amount of ticks

    Parameters

    • callback: (() => any)

      The function to call

        • (): any
        • Returns any

    • ticks: number

      How many ticks to wait before calling the function

    Returns TickTimeout

    A new TickTimeout

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