类 PlayerIterator实验性

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

实现

方法

  • 实验性

    返回 Iterator<Player, any, any>

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

  • 实验性

    返回 IteratorResult<Player, any>

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

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