Class: AimAssistCategorySettings
Beta
与 AimAssistRegistry.addCategory 一起使用的设置,用于创建 AimAssistCategory。
Settings used with AimAssistRegistry.addCategory for creation of the AimAssistCategory.
Constructors
Constructor
new AimAssistCategorySettings(
identifier):AimAssistCategorySettings
Beta
Parameters
identifier
string
Returns
AimAssistCategorySettings
Remarks
构造函数,接受一个唯一 ID 来与创建的 AimAssistCategory 关联。必须具有命名空间。
Constructor that takes a unique Id to associate with the created AimAssistCategory. Must have a namespace.
Properties
defaultBlockPriority
defaultBlockPriority:
number
World Mutation Beta
Remarks
可选。用于未提供给 setBlockPriorities 的方块类型的默认瞄准优先级。
Optional. Default targeting priority used for block types not provided to setBlockPriorities.
defaultEntityPriority
defaultEntityPriority:
number
World Mutation Beta
Remarks
可选。用于未提供给 setEntityPriorities 的实体类型的默认瞄准优先级。
Optional. Default targeting priority used for entity types not provided to setEntityPriorities.
identifier
readonlyidentifier:string
Beta
Remarks
用于注册分类的唯一 ID。必须具有命名空间。
The unique Id used to register the category with. Must have a namespace.
Methods
getBlockPriorities()
getBlockPriorities():
Record<string,number>
Beta
Returns
Record<string, number>
记录方块 ID 到其优先级设置的映射。数字越大,优先级越高。
The record mapping block Ids to their priority settings. Larger numbers have greater priority.
Remarks
获取用于方块瞄准的优先级设置。
Gets the priority settings used for block targeting.
getBlockTagPriorities()
getBlockTagPriorities():
Record<string,number>
Beta
Returns
Record<string, number>
记录方块标签到其优先级设置的映射。数字越大,优先级越高。
The record mapping block tags to their priority settings. Larger numbers have greater priority.
Remarks
获取用于方块瞄准的优先级设置。
Gets the priority settings used for block targeting.
getEntityPriorities()
getEntityPriorities():
Record<string,number>
Beta
Returns
Record<string, number>
记录实体 ID 到其优先级设置的映射。数字越大,优先级越高。
The record mapping entity Ids to their priority settings. Larger numbers have greater priority.
Remarks
获取用于实体瞄准的优先级设置。
Gets the priority settings used for entity targeting.
getEntityTypeFamilyPriorities()
getEntityTypeFamilyPriorities():
Record<string,number>
Beta
Returns
Record<string, number>
将实体类型家族映射到 Record 中的优先级设置。数字越大,优先级越高。
Map entity type families to their priority settings in a Record. Larger numbers have greater priority.
Remarks
获取用于实体瞄准的优先级设置。
Gets the priority settings used for entity targeting.
setBlockPriorities()
setBlockPriorities(
blockPriorities):void
World Mutation Beta
Parameters
blockPriorities
Record<keyof typeof MinecraftBlockTypes | string, number>
将方块 ID 映射到其优先级设置的记录。数字越大,优先级越高。
A record mapping block Ids to their priority settings. Larger numbers have greater priority.
Returns
void
Remarks
设置用于方块瞄准的优先级设置。
Sets the priority settings used for block targeting.
setBlockTagPriorities()
setBlockTagPriorities(
blockTagPriorities):void
World Mutation Beta
Parameters
blockTagPriorities
Record<string, number>
Returns
void
Remarks
设置用于方块瞄准的优先级设置。
Sets the priority settings used for block targeting.
setEntityPriorities()
setEntityPriorities(
entityPriorities):void
World Mutation Beta
Parameters
entityPriorities
Record<keyof typeof MinecraftEntityTypes | string, number>
将实体 ID 映射到其优先级设置的记录。数字越大,优先级越高。
A record mapping entity Ids to their priority settings. Larger numbers have greater priority.
Returns
void
Remarks
设置用于实体瞄准的优先级设置。
Sets the priority settings used for entity targeting.
setEntityTypeFamilyPriorities()
setEntityTypeFamilyPriorities(
entityTypeFamilyPriorities):void
World Mutation Beta
Parameters
entityTypeFamilyPriorities
Record<string, number>
Returns
void
Remarks
设置用于实体瞄准的优先级设置。
Sets the priority settings used for entity targeting.
