ComputedTarget

public final class ComputedTarget extends Record implements IInteractionTarget(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

computeFunction

The implementation of computeInteractionData

Constructors

Link copied to clipboard
public void IInteractionTarget.ComputedTarget(@Nullable() @Nullable() IInteractionData interactionData)

Inherited properties

Link copied to clipboard
@NotNull()
public final static @NotNull() IInteractionTarget NoneTarget
Represents an interaction without a target.

Functions

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

Inherited functions

Link copied to clipboard
public abstract boolean equals(Object p)
Link copied to clipboard
public abstract int hashCode()
Link copied to clipboard
public abstract String toString()