IInteractionTarget

public interface IInteractionTarget(source)

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

Inheritors

Types

Link copied to clipboard
public final class BlockEntityTarget extends Record implements IInteractionTarget
Represents the target of an interaction as a block entity.
Link copied to clipboard
public final class ComputedTarget extends Record implements IInteractionTarget
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
public final class EntityTarget extends Record implements IInteractionTarget
Represents the target of an interaction as an entity.

Functions

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