Data

constructor(player: PlayerEntity, world: World, hand: Hand, hitResult: HitResult?, extra: Any?, 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