Summon constructor

Summon(
  1. EntityType type, {
  2. TextComponent? name,
  3. bool? nameVisible,
  4. Map<String, dynamic>? nbt,
  5. Location location = const Location.here(),
  6. bool? invulnerable,
  7. bool? persistent,
  8. bool? noAI,
  9. bool? silent,
  10. bool? gravity,
  11. bool? glowing,
  12. List<Summon>? passengers,
  13. List<Effect>? effects,
  14. List<String>? tags,
  15. int? fire,
  16. bool? small,
  17. int? age,
  18. Rotation? rotation,
})

The summon class creates a new entity at a given location.

Implementation

Summon(
  this.type, {
  this.name,
  this.nameVisible,
  this.nbt,
  this.location = const Location.here(),
  this.invulnerable,
  this.persistent,
  this.noAI,
  this.silent,
  this.gravity,
  this.glowing,
  this.passengers,
  this.effects,
  this.tags,
  this.fire,
  this.small,
  this.age,
  this.rotation,
});