类 AimAssistPreset实验性

表示一个存在于 world.aimAssist 注册表中的辅助瞄准预设句柄。

Represents a handle to an aim-assist preset that exists in the world.aimAssist registry.

必须启用的实验特性:

  • 相机辅助瞄准

Required Experiments:

  • Camera Aim Assist

属性

defaultItemSettings?: string

可选。用于未通过 setItemSettings 提供的物品的默认辅助瞄准类别 ID。

Optional. Default aim-assist category Id used for items not provided to setItemSettings.

此属性在使用时可能会抛出异常。

This property can throw when used.

Error

handSettings?: string

可选。用于空手的辅助瞄准类别 ID。

Optional. Aim-assist category Id used for an empty hand.

此属性在使用时可能会抛出异常。

This property can throw when used.

Error

identifier: string

与该预设关联的唯一标识符。

The unique Id associated with the preset.

方法

  • 实验性

    返回 string[]

    包含方块/实体 ID 的数组。

    The array of block/entity Ids.

    获取从辅助瞄准目标中排除的方块/实体 ID 列表。

    Gets the list of block/entity Ids to exclude from aim assist targeting.

    此函数可能会抛出异常。

    This function can throw errors.

    Error

  • 实验性

    返回 Record<string, string>

    映射物品 ID 到辅助瞄准类别 ID 的记录。

    The record mapping item Ids to aim-assist category Ids.

    获取每个物品的辅助瞄准类别 ID。

    Gets the per-item aim-assist category Ids.

    此函数可能会抛出错误。

    This function can throw errors.

    Error

  • 实验性

    返回 string[]

    包含物品 ID 的数组。

    The array of item Ids.

    获取在被持有时会使用辅助瞄准目标液体方块的物品 ID 列表。

    Gets the list of item Ids that will target liquid blocks with aim-assist when being held.

    此函数可能会抛出错误。

    This function can throw errors.

    Error