Class SyncedNetworkData

Class to work with values, synchronized between server and all clients.

Constructors

Methods

  • Replaces existing data with those that are in given object.

    Parameters

    • json: string

      serialized object data

    Returns void

    2.3.1b116-3

  • Parameters

    • key: string
    • Optionalfallback: boolean

    Returns boolean

    Requested value by key or fallback if key not found.

  • Parameters

    • key: string
    • Optionalfallback: number

    Returns number

    Requested value by key or fallback if key not found.

  • Parameters

    • key: string
    • Optionalfallback: number

    Returns number

    Requested value by key or fallback if key not found.

  • Parameters

    • key: string
    • Optionalfallback: number

    Returns number

    Requested value by key or fallback if key not found.

  • Parameters

    • key: string
    • Optionalfallback: number

    Returns number

    Requested value by key or fallback if key not found.

  • Returns string

    Name passed in constructor, which one will be used for packets.

  • Parameters

    • key: string
    • Optionalfallback: string

    Returns string

    Requested value by key or fallback if key not found.

  • Returns boolean

    true if it was server-side data that can be sent to clients.

  • Sets Boolean value by key.

    Parameters

    • key: any
    • value: boolean

    Returns void

  • Sets Double value by key.

    Parameters

    • key: any
    • value: number

    Returns void

  • Sets Float value by key.

    Parameters

    • key: any
    • value: number

    Returns void

  • Sets Integer value by key.

    Parameters

    • key: any
    • value: number

    Returns void

  • Sets Long value by key.

    Parameters

    • key: any
    • value: number

    Returns void

  • Sets String value by key.

    Parameters

    • key: any
    • value: string

    Returns void

  • Sends changed data values for specific client (dirty data remains).

    Parameters

    Returns void

    2.3.1b116-3

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