Computed

public final class Computed implements 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

Properties

Link copied to clipboard
private final Function0<Object> compute

Functions

Link copied to clipboard

Calculates the interaction data by the given target entity.

Link copied to clipboard
public final Function0<Object> getCompute()