onTick

abstract fun onTick(@NotNull world: @NotNull World, real: Boolean)(source)

Gets called at the end of a world tick.

Parameters

world

The ticking world. Should be checked if it is client or server world

real

True, if the tick was called from the game, false if it was called by tick

See also