Interaction.Data

public Interaction.Data Interaction.Data(PlayerEntity player, World world, Hand hand, HitResult hitResult, Object extra, BlockEntity blockEntity, Entity entity)(source)

Parameters

player

The interacting player

world

The world the interaction happened in. Must be client world

hand

The player's interacting hand

extra

Extra properties to supply to the filters. Can be mutable

blockEntity

The target block entity. Is null, if entity is not null

entity

The target entity. Is null, if blockEntity is not null