Execute.asat constructor

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

Asat combines as and at to just one entity.

Execute.asat(
	Entity.player(),
	children: List<Widget> [
		Command('/say I get executed')
	]
),

⇒ execute as @p at @s run say I get executed

Implementation

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