AreaEffectCloud.persistent constructor

AreaEffectCloud.persistent(
  1. Location location, {
  2. TextComponent? name,
  3. Map<String, dynamic>? nbt,
  4. List<String>? tags,
  5. int? radius,
  6. int? applicationDelay,
})

To keep the entity alive there is AreaEffectCloud.persistent that sets the age to multiple years.

Implementation

AreaEffectCloud.persistent(
  Location location, {
  TextComponent? name,
  Map<String, dynamic>? nbt,
  List<String>? tags,
  this.radius,
  this.applicationDelay,
})  : duration = -1,
      waitTime = inf,
      super(
        Entities.area_effect_cloud,
        location: location,
        name: name,
        nbt: nbt,
        age: inf,
        tags: tags,
      );