@minecraft/server / AimAssistCategorySettings
Class: AimAssistCategorySettings ​
Defined in: @minecraft/server/index.d.ts:3275
Settings used with AimAssistRegistry.addCategory for creation of the AimAssistCategory.
Constructors ​
Constructor ​
new AimAssistCategorySettings(
identifier):AimAssistCategorySettings
Defined in: @minecraft/server/index.d.ts:3307
Parameters ​
identifier ​
string
Returns ​
AimAssistCategorySettings
Remarks ​
Constructor that takes a unique Id to associate with the created AimAssistCategory. Must have a namespace.
Properties ​
defaultBlockPriority ​
defaultBlockPriority:
number
Defined in: @minecraft/server/index.d.ts:3284
Remarks ​
Optional. Default targeting priority used for block types not provided to setBlockPriorities.
This property can't be edited in restricted-execution mode.
defaultEntityPriority ​
defaultEntityPriority:
number
Defined in: @minecraft/server/index.d.ts:3293
Remarks ​
Optional. Default targeting priority used for entity types not provided to setEntityPriorities.
This property can't be edited in restricted-execution mode.
identifier ​
readonlyidentifier:string
Defined in: @minecraft/server/index.d.ts:3300
Remarks ​
The unique Id used to register the category with. Must have a namespace.
Methods ​
getBlockPriorities() ​
getBlockPriorities():
Record<string,number>
Defined in: @minecraft/server/index.d.ts:3316
Returns ​
Record<string, number>
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>
Defined in: @minecraft/server/index.d.ts:3325
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>
Defined in: @minecraft/server/index.d.ts:3334
Returns ​
Record<string, number>
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>
Defined in: @minecraft/server/index.d.ts:3343
Returns ​
Record<string, number>
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
Defined in: @minecraft/server/index.d.ts:3354
Parameters ​
blockPriorities ​
Record<string, number>
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.
This function can't be called in restricted-execution mode.
setBlockTagPriorities() ​
setBlockTagPriorities(
blockTagPriorities):void
Defined in: @minecraft/server/index.d.ts:3362
Parameters ​
blockTagPriorities ​
Record<string, number>
Returns ​
void
Remarks ​
Sets the priority settings used for block targeting.
This function can't be called in restricted-execution mode.
setEntityPriorities() ​
setEntityPriorities(
entityPriorities):void
Defined in: @minecraft/server/index.d.ts:3373
Parameters ​
entityPriorities ​
Record<string, number>
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.
This function can't be called in restricted-execution mode.
setEntityTypeFamilyPriorities() ​
setEntityTypeFamilyPriorities(
entityTypeFamilyPriorities):void
Defined in: @minecraft/server/index.d.ts:3381
Parameters ​
entityTypeFamilyPriorities ​
Record<string, number>
Returns ​
void
Remarks ​
Sets the priority settings used for entity targeting.
This function can't be called in restricted-execution mode.