Skip to content

@minecraft/server


@minecraft/server / AimAssistCategory

Class: AimAssistCategory ​

Defined in: @minecraft/server/index.d.ts:3201

Handle to an aim-assist category that exists in the world.aimAssist registry.

Properties ​

defaultBlockPriority ​

readonly defaultBlockPriority: number

Defined in: @minecraft/server/index.d.ts:3210

Remarks ​

Default targeting priority used for block types not found in getBlockPriorities.

Throws ​

This property can throw when used.


defaultEntityPriority ​

readonly defaultEntityPriority: number

Defined in: @minecraft/server/index.d.ts:3218

Remarks ​

Default targeting priority used for entity types not found in getEntityPriorities.

Throws ​

This property can throw when used.


identifier ​

readonly identifier: string

Defined in: @minecraft/server/index.d.ts:3224

Remarks ​

The unique Id associated with the category.

Methods ​

getBlockPriorities() ​

getBlockPriorities(): Record<string, number>

Defined in: @minecraft/server/index.d.ts:3234

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.

Throws ​

This function can throw errors.


getBlockTagPriorities() ​

getBlockTagPriorities(): Record<string, number>

Defined in: @minecraft/server/index.d.ts:3246

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.

Throws ​

This function can throw errors.

minecraftcommon.EngineError


getEntityPriorities() ​

getEntityPriorities(): Record<string, number>

Defined in: @minecraft/server/index.d.ts:3256

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.

Throws ​

This function can throw errors.


getEntityTypeFamilyPriorities() ​

getEntityTypeFamilyPriorities(): Record<string, number>

Defined in: @minecraft/server/index.d.ts:3268

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.

Throws ​

This function can throw errors.

minecraftcommon.EngineError