Перейти к основному содержанию

Updatable

Module used to create and manage Updatables. Updatables provide the proper way to manage objects that update their state every tick. Updatables may not be notified every tick, if there are too many, to avoid user interface freezes.

Index

Functions

addAnimator

  • Adds object to updatables list, that ticks on client thread and never saves.

    @since

    2.0.4b40


    Parameters

    • updatable: Updatable

      object to be added to updatables list

    Returns void

addLocalUpdatable

  • addLocalUpdatable(updatable: Updatable): void
  • Adds object to updatables list, that ticks on client thread and never saves.

    @since

    2.0.4b40


    Parameters

    • updatable: Updatable

      object to be added to updatables list

    Returns void

addUpdatable

  • Adds object to updatables list.


    Parameters

    • updatable: Updatable

      object to be added to updatables list

    Returns void

getAll


  • Returns java.util.List<Updatable>

    ArrayList instance containing all defined server-side Updatable objects.

getAllLocal

  • @since

    2.4.0b122o1


    Returns java.util.List<Updatable>

    ArrayList instance containing all defined client-side Updatable objects.

getLocalSyncTime

  • getLocalSyncTime(): number
  • @since

    2.4.0b122o1


    Returns number

    Current client-side thread tick number.

getSyncTime

  • getSyncTime(): number

  • Returns number

    Current server-side thread tick number.