Class: AimAssistPreset
Beta
处理存在于 world.aimAssist 注册表中的瞄准辅助预设的句柄。
Handle to an aim-assist preset that exists in the world.aimAssist registry.
Properties
defaultItemSettings?
readonlyoptionaldefaultItemSettings?:string
Beta
Remarks
可选。用于未提供给 setItemSettings 的项目的默认瞄准辅助分类 ID。
Optional. Default aim-assist category Id used for items not provided to setItemSettings.
Throws
This property can throw when used.
handSettings?
readonlyoptionalhandSettings?:string
Beta
Remarks
可选。用于空手的瞄准辅助分类 ID。
Optional. Aim-assist category Id used for an empty hand.
Throws
This property can throw when used.
identifier
readonlyidentifier:string
Beta
Remarks
与该预设关联的唯一 ID。
The unique Id associated with the preset.
Methods
getExcludedBlockTagTargets()
getExcludedBlockTagTargets():
string[]
Beta
Returns
string[]
方块标签数组。
The array of block tags.
Remarks
获取要从瞄准辅助目标中排除的方块标签列表。
Gets the list of block tags to exclude from aim assist targeting.
Throws
This function can throw errors.
getExcludedBlockTargets()
getExcludedBlockTargets():
string[]
Beta
Returns
string[]
方块 ID 数组。
The array of block Ids.
Remarks
获取要从瞄准辅助目标中排除的方块 ID 列表。
Gets the list of block Ids to exclude from aim assist targeting.
Throws
This function can throw errors.
getExcludedEntityTargets()
getExcludedEntityTargets():
string[]
Beta
Returns
string[]
实体 ID 数组。
The array of entity Ids.
Remarks
获取要从瞄准辅助目标中排除的实体 ID 列表。
Gets the list of entity Ids to exclude from aim assist targeting.
Throws
This function can throw errors.
getExcludedEntityTypeFamilyTargets()
getExcludedEntityTypeFamilyTargets():
string[]
Beta
Returns
string[]
实体类型家族数组。
The array of entity type families.
Remarks
获取要从瞄准辅助目标中排除的实体类型家族列表。
Gets the list of entity type families to exclude from aim assist targeting.
Throws
This function can throw errors.
getItemSettings()
getItemSettings():
Record<string,string>
Beta
Returns
Record<string, string>
记录物品 ID 到瞄准辅助分类 ID 的映射。
The record mapping item Ids to aim-assist category Ids.
Remarks
获取每个物品的瞄准辅助分类 ID。
Gets the per-item aim-assist category Ids.
Throws
This function can throw errors.
getLiquidTargetingItems()
getLiquidTargetingItems():
string[]
Beta
Returns
string[]
物品 ID 数组。
The array of item Ids.
Remarks
获取手持时将通过瞄准辅助瞄准液体方块的物品 ID 列表。
Gets the list of item Ids that will target liquid blocks with aim-assist when being held.
Throws
This function can throw errors.
