类 AimAssistCategorySettings实验性

Settings used with AimAssistRegistry.addCategory for creation of the AimAssistCategory.

用于与 AimAssistRegistry.addCategory 一起使用的设置, 用于创建 AimAssistCategory。

Required Experiments:

  • Camera Aim Assist

必须启用的实验功能:

  • 摄像机瞄准辅助

构造函数

  • 实验性

    参数

    • identifier: string

    返回 AimAssistCategorySettings

    Constructor that takes a unique Id to associate with the created AimAssistCategory. Must have a namespace.

    构造函数,接受一个唯一标识符以与创建的 AimAssistCategory 关联。 必须包含命名空间。

属性

defaultBlockPriority: number

Optional. Default targeting priority used for block types not provided to setBlockPriorities.

可选项。用于未提供给 setBlockPriorities 的方块类型的默认目标优先级。

无法在只读模式下修改此属性,详见 WorldBeforeEvents

defaultEntityPriority: number

Optional. Default targeting priority used for entity types not provided to setEntityPriorities.

可选项。用于未提供给 setEntityPriorities 的实体类型的默认目标优先级。

无法在只读模式下修改此属性,详见 WorldBeforeEvents

identifier: string

The unique Id used to register the category with. Must have a namespace.

用于注册类别的唯一标识符。必须包含命名空间。

方法

  • 实验性

    返回 Record<string, number>

    The record mapping block Ids to their priority settings. Larger numbers have greater priority.

    映射方块 ID 到其优先级设置的记录。数值越大,优先级越高。

    Gets the priority settings used for block targeting.

    获取用于方块目标选择的优先级设置。

  • 实验性

    返回 Record<string, number>

    The record mapping entity Ids to their priority settings. Larger numbers have greater priority.

    映射实体 ID 到其优先级设置的记录。数值越大,优先级越高。

    Gets the priority settings used for entity targeting.

    获取用于实体目标选择的优先级设置。

  • 实验性

    参数

    • blockPriorities: Record<string, number>

      A record mapping block Ids to their priority settings. Larger numbers have greater priority.

      映射方块 ID 到其优先级设置的记录。数值越大,优先级越高。

    返回 void

    Sets the priority settings used for block targeting.

    设置用于方块目标选择的优先级设置。

  • 实验性

    参数

    • entityPriorities: Record<string, number>

      A record mapping entity Ids to their priority settings. Larger numbers have greater priority.

      映射实体 ID 到其优先级设置的记录。数值越大,优先级越高。

    返回 void

    Sets the priority settings used for entity targeting.

    设置用于实体目标选择的优先级设置。