Hierarchy

  • PlayerSession

Constructors

Methods

  • Adds the client to the player list of every player inside the server and also to the player itself.

    Returns Promise<void>

  • Broadcast the movement to a defined player

    Parameters

    • player: Player
    • Optional mode: MovementType

    Returns Promise<void>

  • Clear the currently loaded and loading chunks.

    Remarks

    Usually used for changing dimension, world, etc.

    Returns Promise<void>

  • Returns default

  • Returns Player

  • Parameters

    • Optional reason: string

    Returns Promise<void>

  • Parameters

    • Optional forceResend: boolean

    Returns Promise<void>

  • Removes a player from other players list

    Returns Promise<void>

  • Parameters

    • x: number
    • z: number

    Returns Promise<void>

  • Parameters

    • attributes: Attribute[]

    Returns Promise<void>

  • Returns Promise<void>

  • Parameters

    • chunk: default

    Returns Promise<void>

  • Parameters

    • Optional empty: boolean

    Returns Promise<void>

  • Despawn the player entity from another player

    Parameters

    Returns Promise<void>

  • Parameters

    • form: default

    Returns Promise<void>

  • Set the client's gamemode.

    Parameters

    • gamemode: number

      the numeric gamemode ID

    Returns Promise<void>

  • Sets the item in the player hand.

    Parameters

    • item: default

      The entity.

    Returns Promise<void>

  • Returns Promise<void>

  • Send a chat message to the client.

    Remarks

    Refactor this completely.

    Parameters

    • message: string

      The message

    • Optional xuid: string

      The source xuid

    • Optional parameters: string[]
    • Optional needsTranslation: boolean

      If the TextType requires translation

    • Optional type: TextType

      The text type

    Returns Promise<void>

  • Returns Promise<void>

  • Returns Promise<void>

  • Parameters

    • status: number

    Returns Promise<void>

  • Sends the full player list to the player.

    Returns Promise<void>

  • Notify a client about change(s) to the adventure settings.

    Parameters

    • Optional player: Player

      The client-controlled entity

    Returns Promise<void>

  • Spawn the player for another player

    Parameters

    • player: Player

      the player to send the AddPlayerPacket to

    Returns Promise<void>

  • Set the client's current tick.

    Parameters

    • tick: number

      The tick

    Returns Promise<void>

  • Set the client's maximum view distance.

    Parameters

    • distance: number

      The view distance

    Returns Promise<void>

  • Parameters

    • _tick: number

    Returns Promise<void>

Generated using TypeDoc