ComputedTarget

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

Parameters

computeFunction

The implementation of computeInteractionData

Constructors

Link copied to clipboard
constructor(@Nullable interactionData: @Nullable IInteractionData)

Inherited properties

Link copied to clipboard
@NotNull
val NoneTarget: @NotNull IInteractionTarget
Represents an interaction without a target.

Functions

Link copied to clipboard
@Nullable
open fun computeInteractionData(): @Nullable IInteractionData
Calculates the interaction data from the given target.

Inherited functions

Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
abstract fun toString(): String