NetworkGroup

A collection of Networks of the same NetworkType from the same NetworkCluster, handling ticking logic for these networks.

Independent network groups may be ticked in parallel! Because of that, the functions not suffixed with Sync may not interact with any world state outside of the blocks that are in this network. This includes not causing block updates, changing vanilla block states, or firing bukkit events.

Properties

Link copied to clipboard
abstract val networks: List<T>
Link copied to clipboard
abstract val type: NetworkType<T>

Functions

Link copied to clipboard
open fun postTick()

Called every NetworkType.tickDelay ticks after all network groups in this network group's NetworkCluster have been ticked, in parallel with networks groups from other clusters.

Link copied to clipboard
open fun postTickSync()

Called every NetworkType.tickDelay ticks after all networks groups have been ticked, on the main thread.

Link copied to clipboard
open fun preTick()

Called every NetworkType.tickDelay ticks before any network group in this network group's NetworkCluster is ticked, in parallel with network groups from other clusters.

Link copied to clipboard
open fun preTickSync()

Called every NetworkType.tickDelay ticks before any network group is ticked, on the main thread.

Link copied to clipboard
abstract fun tick()

Called every NetworkType.tickDelay ticks, in parallel with network groups from other clusters.