For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/AimAssistPresetSettings.md.

Class: AimAssistPresetSettings

Beta

与 AimAssistRegistry.addPreset 一起使用的设置,用于创建 AimAssistPreset。

Settings used with AimAssistRegistry.addPreset for creation of the AimAssistPreset.

Constructors

Constructor

new AimAssistPresetSettings(identifier): AimAssistPresetSettings

Beta

Parameters

identifier

string

Returns

AimAssistPresetSettings

Remarks

构造函数,接受一个唯一 ID 来与创建的 AimAssistPreset 关联。必须具有命名空间。

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

Properties

defaultItemSettings?

optional defaultItemSettings?: string

World Mutation Beta

Remarks

可选。用于未提供给 setItemSettings 的项目的默认瞄准辅助分类 ID。

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


handSettings?

optional handSettings?: string

World Mutation Beta

Remarks

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

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


identifier

readonly identifier: string

Beta

Remarks

用于注册预设的唯一 ID。必须具有命名空间。

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

Methods

getExcludedBlockTagTargets()

getExcludedBlockTagTargets(): string[] | undefined

Beta

Returns

string[] | undefined

方块标签数组。

The array of block tags.

Remarks

获取要从瞄准辅助目标中排除的方块标签列表。

Gets the list of block tags to exclude from aim assist targeting.


getExcludedBlockTargets()

getExcludedBlockTargets(): string[] | undefined

Beta

Returns

string[] | undefined

方块 ID 数组。

The array of block Ids.

Remarks

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

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


getExcludedEntityTargets()

getExcludedEntityTargets(): string[] | undefined

Beta

Returns

string[] | undefined

实体 ID 数组。

The array of entity Ids.

Remarks

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

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


getExcludedEntityTypeFamilyTargets()

getExcludedEntityTypeFamilyTargets(): string[] | undefined

Beta

Returns

string[] | undefined

实体类型家族数组。

The array of entity type families.

Remarks

获取要从瞄准辅助目标中排除的实体类型家族列表。

Gets the list of entity type families to exclude from aim assist targeting.


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.


getLiquidTargetingItems()

getLiquidTargetingItems(): string[] | undefined

Beta

Returns

string[] | undefined

物品 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.


setExcludedBlockTagTargets()

setExcludedBlockTagTargets(targets?): void

World Mutation Beta

Parameters

targets?

string[]

方块标签数组。

An array of block tags.

Returns

void

Remarks

设置要从瞄准辅助目标中排除的方块标签列表。

Sets the list of block tags to exclude from aim assist targeting.


setExcludedBlockTargets()

setExcludedBlockTargets(targets?): void

World Mutation Beta

Parameters

targets?

(string | number | symbol)[]

方块 ID 数组。

An array of block Ids.

Returns

void

Remarks

设置要从瞄准辅助目标中排除的方块 ID 列表。

Sets the list of block Ids to exclude from aim assist targeting.


setExcludedEntityTargets()

setExcludedEntityTargets(targets?): void

World Mutation Beta

Parameters

targets?

(string | number | symbol)[]

实体 ID 数组。

An array of entity Ids.

Returns

void

Remarks

设置要从瞄准辅助目标中排除的实体 ID 列表。

Sets the list of entity Ids to exclude from aim assist targeting.


setExcludedEntityTypeFamilyTargets()

setExcludedEntityTypeFamilyTargets(targets?): void

World Mutation Beta

Parameters

targets?

string[]

实体类型家族数组。

An array of entity type families.

Returns

void

Remarks

设置要从瞄准辅助目标中排除的实体类型家族列表。

Sets the list of entity type families to exclude from aim assist targeting.


setItemSettings()

setItemSettings(itemSettings): void

World Mutation Beta

Parameters

itemSettings

Record<keyof typeof MinecraftItemTypes | string, string>

记录物品 ID 到瞄准辅助分类 ID 的映射。分类 ID 必须具有命名空间。

A record mapping item Ids to aim-assist category Ids. Category Ids must have a namespace.

Returns

void

Remarks

设置每个物品的瞄准辅助分类 ID。

Sets the per-item aim-assist category Ids.


setLiquidTargetingItems()

setLiquidTargetingItems(items?): void

World Mutation Beta

Parameters

items?

(string | number | symbol)[]

物品 ID 数组。

An array of item Ids.

Returns

void

Remarks

设置手持时将通过瞄准辅助瞄准液体方块的物品 ID 列表。

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