Execute.facing constructor
Execute.facing(})
Sets the execution rotation so that it faces a location or an entity's feet or eyes. Example:
Execute.facing(
Entity.player(), // or Location...
facing: Facing.feet // optional
children: List<Widget> [
Command('/say I get executed')
]
)
⇒ execute facing entity @p feet run say I get executed
Implementation
Execute.facing(
dynamic target, {
required this.children,
this.encapsulate = true,
this.targetFilePath = 'objd',
this.targetFileName,
Facing facing = Facing.eyes,
}) {
_args = this.facing(target, facing: facing).args;
}