Display.item constructor

Display.item(
  1. Location location,
  2. Item item, {
  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. Transformation? transformation,
  13. ItemDisplay? itemDisplay,
})

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

Implementation

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