Options
All
  • Public
  • Public/Protected
  • All
Menu

Extension for InnerCore's Callback module listing new callbacks invoked by Kernel Extension mod and adding some new features to the callback system.

since

1.0

Index

Functions

  • addCallback(name: "KEX-InnerCoreIdsCached", func: (() => void), priority?: number): void
  • addCallback(name: "PlayerJump", func: PlayerJumpFunction, priority?: number): void
  • addCallback(name: "GameModeChanged", func: GameModeChangedFunction, priority?: number): void
  • addCallback(name: "ChangeCarriedItem", func: ChangeCarriedItemFunction, priority?: number): void
  • addCallback(name: "EntitySneakChanged", func: EntitySneakChangedFunction, priority?: number): void
  • addCallback(name: "ItemTooltip", func: OnTooltipCallback, priority?: number): void
  • addCallback(name: "BlockEventEntityStepOff", func: EntityStepOnFunction, priority?: number): void
  • addCallback(name: "BiomesInitialized", func: (() => void), priority?: number): void
  • off(name: "KEX-InnerCoreIdsCached", func: (() => void), priority?: number): void
  • off(name: "PlayerJump", func: PlayerJumpFunction, priority?: number): void
  • off(name: "GameModeChanged", func: GameModeChangedFunction, priority?: number): void
  • off(name: "ChangeCarriedItem", func: ChangeCarriedItemFunction, priority?: number): void
  • off(name: "EntitySneakChanged", func: EntitySneakChangedFunction, priority?: number): void
  • off(name: "ItemTooltip", func: OnTooltipCallback, priority?: number): void
  • off(name: "BlockEventEntityStepOff", func: EntityStepOnFunction, priority?: number): void
  • off(name: "BiomesInitialized", func: (() => void), priority?: number): void
  • Removes an existing callback handler from the handlers list. To use this, you'll need to make your handler an external function, for example:

    var jumpCounter = 0;
    function jumpHandler(player) {
    if(++jumpCounter >= 10) {
    Callback.off("PlayerJump", jumpHandler);
    }
    Debug.m("The player has already jumped " + jumpCounter + " times!");
    }
    Callback.on("PlayerJump", jumpHandler);
    since

    2.1

    Parameters

    • name: "KEX-InnerCoreIdsCached"
    • func: (() => void)
        • (): void
        • Returns void

    • Optional priority: number

    Returns void

  • Removes an existing callback handler from the handlers list. To use this, you'll need to make your handler an external function, for example:

    var jumpCounter = 0;
    function jumpHandler(player) {
    if(++jumpCounter >= 10) {
    Callback.off("PlayerJump", jumpHandler);
    }
    Debug.m("The player has already jumped " + jumpCounter + " times!");
    }
    Callback.on("PlayerJump", jumpHandler);
    since

    2.1

    Parameters

    Returns void

  • Removes an existing callback handler from the handlers list. To use this, you'll need to make your handler an external function, for example:

    var jumpCounter = 0;
    function jumpHandler(player) {
    if(++jumpCounter >= 10) {
    Callback.off("PlayerJump", jumpHandler);
    }
    Debug.m("The player has already jumped " + jumpCounter + " times!");
    }
    Callback.on("PlayerJump", jumpHandler);
    since

    2.1

    Parameters

    Returns void

  • Removes an existing callback handler from the handlers list. To use this, you'll need to make your handler an external function, for example:

    var jumpCounter = 0;
    function jumpHandler(player) {
    if(++jumpCounter >= 10) {
    Callback.off("PlayerJump", jumpHandler);
    }
    Debug.m("The player has already jumped " + jumpCounter + " times!");
    }
    Callback.on("PlayerJump", jumpHandler);
    since

    2.1

    Parameters

    Returns void

  • Removes an existing callback handler from the handlers list. To use this, you'll need to make your handler an external function, for example:

    var jumpCounter = 0;
    function jumpHandler(player) {
    if(++jumpCounter >= 10) {
    Callback.off("PlayerJump", jumpHandler);
    }
    Debug.m("The player has already jumped " + jumpCounter + " times!");
    }
    Callback.on("PlayerJump", jumpHandler);
    since

    2.1

    Parameters

    Returns void

  • Removes an existing callback handler from the handlers list. To use this, you'll need to make your handler an external function, for example:

    var jumpCounter = 0;
    function jumpHandler(player) {
    if(++jumpCounter >= 10) {
    Callback.off("PlayerJump", jumpHandler);
    }
    Debug.m("The player has already jumped " + jumpCounter + " times!");
    }
    Callback.on("PlayerJump", jumpHandler);
    since

    2.1

    Parameters

    Returns void

  • Removes an existing callback handler from the handlers list. To use this, you'll need to make your handler an external function, for example:

    var jumpCounter = 0;
    function jumpHandler(player) {
    if(++jumpCounter >= 10) {
    Callback.off("PlayerJump", jumpHandler);
    }
    Debug.m("The player has already jumped " + jumpCounter + " times!");
    }
    Callback.on("PlayerJump", jumpHandler);
    since

    2.1

    Parameters

    • name: "BlockEventEntityStepOff"
    • func: EntityStepOnFunction
    • Optional priority: number

    Returns void

  • Removes an existing callback handler from the handlers list. To use this, you'll need to make your handler an external function, for example:

    var jumpCounter = 0;
    function jumpHandler(player) {
    if(++jumpCounter >= 10) {
    Callback.off("PlayerJump", jumpHandler);
    }
    Debug.m("The player has already jumped " + jumpCounter + " times!");
    }
    Callback.on("PlayerJump", jumpHandler);
    since

    2.1

    Parameters

    • name: "BiomesInitialized"
    • func: (() => void)
        • (): void
        • Returns void

    • Optional priority: number

    Returns void

  • on(name: "KEX-InnerCoreIdsCached", func: (() => void), priority?: number): void
  • on(name: "PlayerJump", func: PlayerJumpFunction, priority?: number): void
  • on(name: "GameModeChanged", func: GameModeChangedFunction, priority?: number): void
  • on(name: "ChangeCarriedItem", func: ChangeCarriedItemFunction, priority?: number): void
  • on(name: "EntitySneakChanged", func: EntitySneakChangedFunction, priority?: number): void
  • on(name: "ItemTooltip", func: OnTooltipCallback, priority?: number): void
  • on(name: "BlockEventEntityStepOff", func: EntityStepOnFunction, priority?: number): void
  • on(name: "BiomesInitialized", func: (() => void), priority?: number): void
  • Same as addCallback, but using improved callback system allowing you to add a callback handler, that will be called only once, or to remove an existing callback handler with off.

    since

    2.1

    Parameters

    • name: "KEX-InnerCoreIdsCached"
    • func: (() => void)
        • (): void
        • Returns void

    • Optional priority: number

    Returns void

  • Same as addCallback, but using improved callback system allowing you to add a callback handler, that will be called only once, or to remove an existing callback handler with off.

    since

    2.1

    Parameters

    Returns void

  • Same as addCallback, but using improved callback system allowing you to add a callback handler, that will be called only once, or to remove an existing callback handler with off.

    since

    2.1

    Parameters

    Returns void

  • Same as addCallback, but using improved callback system allowing you to add a callback handler, that will be called only once, or to remove an existing callback handler with off.

    since

    2.1

    Parameters

    Returns void

  • Same as addCallback, but using improved callback system allowing you to add a callback handler, that will be called only once, or to remove an existing callback handler with off.

    since

    2.1

    Parameters

    Returns void

  • Same as addCallback, but using improved callback system allowing you to add a callback handler, that will be called only once, or to remove an existing callback handler with off.

    since

    2.1

    Parameters

    Returns void

  • Same as addCallback, but using improved callback system allowing you to add a callback handler, that will be called only once, or to remove an existing callback handler with off.

    since

    2.1

    Parameters

    • name: "BlockEventEntityStepOff"
    • func: EntityStepOnFunction
    • Optional priority: number

    Returns void

  • Same as addCallback, but using improved callback system allowing you to add a callback handler, that will be called only once, or to remove an existing callback handler with off.

    since

    2.1

    Parameters

    • name: "BiomesInitialized"
    • func: (() => void)
        • (): void
        • Returns void

    • Optional priority: number

    Returns void

  • once(name: "KEX-InnerCoreIdsCached", func: (() => void), priority?: number): void
  • once(name: "PlayerJump", func: PlayerJumpFunction, priority?: number): void
  • once(name: "GameModeChanged", func: GameModeChangedFunction, priority?: number): void
  • once(name: "ChangeCarriedItem", func: ChangeCarriedItemFunction, priority?: number): void
  • once(name: "EntitySneakChanged", func: EntitySneakChangedFunction, priority?: number): void
  • once(name: "ItemTooltip", func: OnTooltipCallback, priority?: number): void
  • once(name: "BlockEventEntityStepOff", func: EntityStepOnFunction, priority?: number): void
  • once(name: "BiomesInitialized", func: (() => void), priority?: number): void
  • Same as addCallback, but the given callback handler will be called only once, when the event occurs, and then it'll be removed from the handlers list.

    since

    2.1

    Parameters

    • name: "KEX-InnerCoreIdsCached"
    • func: (() => void)
        • (): void
        • Returns void

    • Optional priority: number

    Returns void

  • Same as addCallback, but the given callback handler will be called only once, when the event occurs, and then it'll be removed from the handlers list.

    since

    2.1

    Parameters

    Returns void

  • Same as addCallback, but the given callback handler will be called only once, when the event occurs, and then it'll be removed from the handlers list.

    since

    2.1

    Parameters

    Returns void

  • Same as addCallback, but the given callback handler will be called only once, when the event occurs, and then it'll be removed from the handlers list.

    since

    2.1

    Parameters

    Returns void

  • Same as addCallback, but the given callback handler will be called only once, when the event occurs, and then it'll be removed from the handlers list.

    since

    2.1

    Parameters

    Returns void

  • Same as addCallback, but the given callback handler will be called only once, when the event occurs, and then it'll be removed from the handlers list.

    since

    2.1

    Parameters

    Returns void

  • Same as addCallback, but the given callback handler will be called only once, when the event occurs, and then it'll be removed from the handlers list.

    since

    2.1

    Parameters

    • name: "BlockEventEntityStepOff"
    • func: EntityStepOnFunction
    • Optional priority: number

    Returns void

  • Same as addCallback, but the given callback handler will be called only once, when the event occurs, and then it'll be removed from the handlers list.

    since

    2.1

    Parameters

    • name: "BiomesInitialized"
    • func: (() => void)
        • (): void
        • Returns void

    • Optional priority: number

    Returns void

Generated using TypeDoc