Component/world sensor/zh: Difference between revisions

From OpenComputers: Rebooted
Jump to navigation Jump to search
imported>OCDoc Import
Imported from legacy OpenComputers documentation at ocdoc.cil.li
 
Clean up Markdown artifacts from DokuWiki migration
 
Line 3: Line 3:
此组件由[[Item/world sensor upgrade/zh|世界传感器升级]]提供。
此组件由[[Item/world sensor upgrade/zh|世界传感器升级]]提供。


组件名:`world_sensor`。
组件名:<code>world_sensor</code>。


回调函数:
回调函数:


* `isGasPresent(gas:string):boolean` 获取设备当前所在世界是否有指定气体。
* <code>isGasPresent(gas:string):boolean</code> 获取设备当前所在世界是否有指定气体。
* `getGravity():number` 获取设备当前所在世界的重力大小。
* <code>getGravity():number</code> 获取设备当前所在世界的重力大小。
* ` hasBreathableAtmosphere():boolean` 获取设备当前所在世界是否有可呼吸的大气。
* <code> hasBreathableAtmosphere():boolean</code> 获取设备当前所在世界是否有可呼吸的大气。
* `getWindLevel():number` 获取设备当前所在世界的风力等级。
* <code>getWindLevel():number</code> 获取设备当前所在世界的风力等级。


== 目录 ==
== 目录 ==


{{:Component/contents/zh}}
{{:Component/contents/zh}}

Latest revision as of 20:28, 24 August 2026

组件:世界传感器

此组件由世界传感器升级提供。

组件名:world_sensor。

回调函数:

  • isGasPresent(gas:string):boolean 获取设备当前所在世界是否有指定气体。
  • getGravity():number 获取设备当前所在世界的重力大小。
  • hasBreathableAtmosphere():boolean 获取设备当前所在世界是否有可呼吸的大气。
  • getWindLevel():number 获取设备当前所在世界的风力等级。

目录

< 100% 15% 15% >
组件API 3D打印机 - 抽象总线 - 无线接入点 - 区块加载器 - 电脑 - 合成 - 数据卡 - 数据库 - 调试 - 无人机 - 驱动器 - EEPROM - 经验 - 文件系统 - 发电机 - 地质分析仪 - GPU - 全息投影仪 - 因特网 - 物品栏控制器 - 拴绳 - 微控制器 - 调制解调器 - 运动传感器 - 导航 - 网络拆分器 - 活塞 - 红石 - 运动红石机构 - 机器人 - 屏幕 - 告示牌 - 储罐控制器 - 牵引光束 - 转运器 - 隧道 - 世界传感器
::: 其它 访问组件 - 信号
::: 模组联动 应用能源