Entity.Select constructor

Entity.Select(
  1. Selector selector
)

creates an entity from a prepared selector

Implementation

Entity.Select(Selector selector) : selector = selector.selector {
  _setArguments(
    selector.limit,
    selector.tags,
    selector.team,
    selector.scores,
    selector.nbt,
    selector.strNbt,
    selector.type,
    selector.area,
    selector.distance,
    selector.level,
    selector.gamemode,
    selector.name,
    selector.isRotated,
    selector.horizontalRotation,
    selector.verticalRotation,
    selector.predicate,
    false,
  );
  if (selector.sorting != null) {
    sort(selector.sorting!);
  }
}