实验性
包含与世界的辅助瞄准设置相关的 API 的容器。
必须启用的实验功能:
A container for APIs related to the world's aim-assist settings.
Required Experiments:
静态
只读
默认的辅助瞄准预设标识符,当未另行指定时使用。
用于创建新类别的类别设置。
创建的类别句柄。
向注册表中添加一个辅助瞄准类别。
无法在只读模式下调用此函数,详见 WorldBeforeEvents。
This function can throw errors.
minecraftcommon.EngineError
Error
minecraftcommon.InvalidArgumentError
NamespaceNameError
用于创建新预设的预设设置。
创建的预设句柄。
向注册表中添加一个辅助瞄准预设。
一个包含所有可用类别对象的数组。
获取注册表中所有可用的类别。
若存在,返回类别对象;否则返回 undefined。
获取与提供的标识符关联的类别。
要检索的预设的标识符。必须包含命名空间。
若存在,返回预设对象;否则返回 undefined。
获取与提供的标识符关联的预设。
一个包含所有可用预设对象的数组。
获取注册表中所有可用的预设。
包含与世界的辅助瞄准设置相关的 API 的容器。
必须启用的实验功能:
A container for APIs related to the world's aim-assist settings.
Required Experiments: