Class NetworkClient

Class that represents network client.

Constructors

Methods

  • Disconnects player from the server and sends a packet with given reason.

    Parameters

    • reason: string

    Returns void

  • Disconnects player from the server with no further information.

    Returns void

  • Returns number

    Unique numeric entity ID of the player.

  • Sends given packet to the following client.

    Parameters

    • name: string

      name of the packet to send

    • packetData: object

      packet data object

    Returns void

  • Sends a packet to the client with a text like a system message.

    Parameters

    • message: string

    Returns void

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