Display.text constructor

Display.text(
  1. Location location,
  2. TextComponent? text, {
  3. Map<String, dynamic>? nbt,
  4. int? age,
  5. List<String>? tags,
  6. Time? interpolationDuration,
  7. Time? startInterpolation,
  8. double? shadowRadius,
  9. double? shadowStrength,
  10. double? viewRange,
  11. BillboardType? billboardType,
  12. TextAlignment? alignment,
  13. int? textOpacity,
  14. bool? seeThrough,
  15. int? lineWidth,
  16. Transformation? transformation,
})

Spawns an diplay entity used to display and animate text in the world.

Implementation

Display.text(
  Location location,
  this.text, {
  Map<String, dynamic>? nbt,
  int? age,
  List<String>? tags,
  this.interpolationDuration,
  this.startInterpolation,
  this.shadowRadius,
  this.shadowStrength,
  this.viewRange,
  this.billboardType,
  this.alignment,
  this.textOpacity,
  this.seeThrough,
  this.lineWidth,
  this.transformation,
})  : item = null,
      block = null,
      itemDisplay = null,
      super(
        Entities.text_display,
        location: location,
        nbt: nbt,
        age: age,
        tags: tags,
      );