IInteractionTarget

Represents the target of an interaction. See nested classes for available options.

Inheritors

Types

Link copied to clipboard
Represents the target of an interaction as a block entity.
Link copied to clipboard
An interaction target, which gets computed on each game tick, so be sure to write optimized code in order to avoid performance issues.
Link copied to clipboard
Represents the target of an interaction as an entity.

Properties

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

Functions

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