BlockEntityTarget

public final class BlockEntityTarget extends Record implements IInteractionTarget(source)

Represents the target of an interaction as a block entity.

Parameters

blockEntity

The target of the interaction

Constructors

Link copied to clipboard
public void IInteractionTarget.BlockEntityTarget(@NotNull() BlockEntity blockEntity)

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