类 EntityIterator实验性

This type is usable for iterating over a set of entities. This means it can be used in statements like for...of statements, Array.from(iterator), and more.

实现

方法

  • 实验性

    返回 Iterator<Entity, any, any>

    无法在只读模式下调用此函数,详见 WorldBeforeEvents

  • 实验性

    返回 IteratorResult<Entity, any>

    Retrieves the next item in this iteration. The resulting IteratorResult contains .done and .value properties which can be used to see the next Entity in the iteration.

    无法在只读模式下调用此函数,详见 WorldBeforeEvents