Computed

class Computed(val compute: () -> Any?) : InteractionTarget(source)

An interaction target, which gets computed on each game tick, so be sure to write optimized code in order to avoid performance issues.

Parameters

compute

The implementation of computeInteractionData

Constructors

Link copied to clipboard
constructor(compute: () -> Any?)

Properties

Link copied to clipboard
val compute: () -> Any?

Functions

Link copied to clipboard
open override fun computeInteractionData(): Any?

Calculates the interaction data by the given target entity.