This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
component:chunkloader:zh [2023/10/21 16:42] hfsr |
component:chunkloader:zh [2023/12/10 15:09] (current) hfsr [组件:区块加载器] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | Component: Chunkloader | + | 组件:区块加载器 |
==================== | ==================== | ||
- | This component is provided by the [[item:chunkloader_upgrade|chunkloader upgrade]]. | + | 此组件由[[item:chunkloader_upgrade:zh|区块加载器升级]]提供。 |
- | + | ||
- | Component name: `chunkloader`. | + | 组件名:`chunkloader`。 |
- | Callbacks: | + | |
+ | 回调函数: | ||
- `isActive():boolean` | - `isActive():boolean` | ||
- | Returns whether the chunkloader is currently active. | + | 返回区块加载器当前是否激活。 |
+ | \\ | ||
- `setActive(enabled:boolean):boolean` | - `setActive(enabled:boolean):boolean` | ||
- | Enables or disables the chunkloader. Returns the new state, which may be false if no chunk loading ticket could be acquired. | + | 启用或停用区块加载器。返回新的状态,无法获取到chunk loading ticket时可能会返回false。 |
目录 | 目录 |