PylonTickingBlock

Represents a block that 'ticks' (does something at a fixed time interval).

Properties

Link copied to clipboard
open val isAsync: Boolean

Whether the tick function should be called asynchronously. You should generally use setAsync in your place constructor instead of overriding this.

Link copied to clipboard
open val tickInterval: Int

The interval at which the tick function is called. You should generally use setTickInterval in your place constructor instead of overriding this.

Functions

Link copied to clipboard
open fun setAsync(isAsync: Boolean)

Sets whether the tick function should be called asynchronously.

Link copied to clipboard
open fun setTickInterval(tickInterval: Int)

Sets how often the tick function should be called (in Minecraft ticks)

Link copied to clipboard
abstract fun tick(deltaSeconds: Double)

The function that should be called periodically.