@minecraft
    正在准备搜索索引...

    类 TickingAreaManager实验性

    This manager is used to add, remove or query temporary ticking areas to a dimension. These ticking areas are limited by a fixed amount of ticking chunks per pack independent of the command limits. Cannot modify or query ticking areas added by other packs or commands.

    索引

    属性

    chunkCount: number

    The number of currently ticking chunks in this manager.

    maxChunkCount: number

    The maximum number of allowed ticking chunks. Overlapping ticking area chunks do count towards total.

    方法

    • 世界修改

      参数

      返回 boolean

      Returns true if the manager has enough chunk capacity for the ticking area and false otherwise. Will also return false if the length or width exceeds the 255 chunk limit.

    • 世界修改

      参数

      • identifier: string

      返回 boolean

      Returns true if the identifier is already in the manager and false otherwise.

    • 世界修改

      返回 void

      Removes all ticking areas added by this manager.

      This function can throw errors.

      EngineError