InteractionTarget

public interface InteractionTarget(source)

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

Inheritors

Types

Link copied to clipboard
public final class BlockEntity implements InteractionTarget

Represents the target of an interaction as a block entity.

Link copied to clipboard
public final class Entity implements InteractionTarget

Represents the target of an interaction as an entity.

Link copied to clipboard
public class None implements InteractionTarget

Represents an interaction without a target. The interaction data returned by computeInteractionData will always be null as preprocessors are unavailable.

Link copied to clipboard
public final class Preprocessed implements InteractionTarget

Represents an already processed interaction.

Functions

Link copied to clipboard
public abstract Object computeInteractionData()

Calculates the interaction data by the given target entity.