Interaction constructor
Interaction(})
Spawns an interaction entity. Can be used to detect player left/right clicks efficiently.
Implementation
Interaction(
Location location, {
Map<String, dynamic>? nbt,
int? age,
List<String>? tags,
this.height,
this.width,
this.response,
}) : super(
Entities.interaction,
location: location,
nbt: nbt,
age: age,
tags: tags,
);