raycast method

RestActionAble raycast({
  1. int? max,
  2. double step = 1,
  3. Block through = Blocks.air,
  4. Widget ray(
    1. Function,
    2. Function
    )?,
  5. List<Widget> onhit = const [],
  6. String scoreName = 'objd_count',
})

Generates a Raycast Widget

entity.raycast(onhit: [
...
]).queue()

Implementation

RestActionAble raycast({
  int? max,
  double step = 1,
  Block through = Blocks.air,
  Widget Function(Function, Function)? ray,
  List<Widget> onhit = const [],
  String scoreName = 'objd_count',
}) =>
    StraitWidget.builder.create(
      Raycast(
        this,
        max: max,
        step: step,
        through: through,
        ray: ray,
        onhit: onhit,
        scoreName: scoreName,
      ),
    );