Interaction constructor

Interaction(
  1. Location location, {
  2. Map<String, dynamic>? nbt,
  3. int? age,
  4. List<String>? tags,
  5. double? height,
  6. double? width,
  7. bool? response,
})

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,
      );