EntityTarget

public final class EntityTarget extends Record implements IInteractionTarget(source)

Represents the target of an interaction as an entity.

Parameters

entity

The target of the interaction

Constructors

Link copied to clipboard
public void IInteractionTarget.EntityTarget(@NotNull() Entity entity)

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()