Updatable
Index
Functions
addAnimator
- since: 2.0.4b40
Adds object to updatables list, that ticks on client thread and never saves.
Parameters
updatable: Updatable
object to be added to updatables list
Returns void
addLocalUpdatable
- since: 2.0.4b40
Adds object to updatables list, that ticks on client thread and never saves.
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
- since: 2.4.0b122o1
Returns number
Current client-side thread tick number.
getSyncTime
Returns number
Current server-side thread tick number.
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.