Namespace GameController

Methods for manipulating player with world, use callbacks of callbacks in their implementation.

2.4.0b120

Functions

  • Triggers server-side "PlayerAttack" and "EntityHurt".

    Parameters

    • entityUid: number

    Returns void

  • Triggers server-side "BuildBlock".

    Parameters

    • x: number
    • y: number
    • z: number
    • side: number

    Returns void

  • Parameters

    • x: number
    • y: number
    • z: number
    • side: number

    Returns void

  • Triggers client-side "DestroyBlockContinue" and "DestroyBlockStart" (on zero progress).

    Parameters

    • x: number
    • y: number
    • z: number
    • side: number

    Returns boolean

  • Triggers server-side "BreakBlock" and "DestroyBlock" (if not prevented).

    Parameters

    • x: number
    • y: number
    • z: number
    • side: number

    Returns void

  • Triggers server-side "EntityInteract".

    Parameters

    • entityUid: number
    • x: number
    • y: number
    • z: number

    Returns void

  • Triggers server-side "ItemUse" and "ItemUseServer" with client-side "ItemUseLocal" and "ItemUseLocalServer".

    Parameters

    • x: number
    • y: number
    • z: number
    • side: number

    Returns void

  • Parameters

    • x: number
    • y: number
    • z: number
    • side: number

    Returns void

  • Parameters

    • x: number
    • y: number
    • z: number
    • side: number

    Returns boolean

    Can break a block that breaks instantly.

  • Interrupts destruction animation.

    Parameters

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

    Returns void

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