Execute.summon constructor

Execute.summon(
  1. EntityType entity, {
  2. required List<Widget> children,
  3. bool encapsulate = true,
  4. String targetFilePath = 'objd',
  5. String? targetFileName,
})

Summons a new entity at execution position and changes the executor to this summoned entity.

 Execute.summon(
  Entities.sheep,
  children: [
    Tag('Test').add()
  ]
 )

Implementation

Execute.summon(
  EntityType entity, {
  required this.children,
  this.encapsulate = true,
  this.targetFilePath = 'objd',
  this.targetFileName,
}) {
  _args = summon(entity).args;
}