@minecraft/server / AimAssistPreset
Class: AimAssistPreset ​
Defined in: @minecraft/server/index.d.ts:3388
Handle to an aim-assist preset that exists in the world.aimAssist registry.
Properties ​
defaultItemSettings? ​
readonlyoptionaldefaultItemSettings?:string
Defined in: @minecraft/server/index.d.ts:3397
Remarks ​
Optional. Default aim-assist category Id used for items not provided to setItemSettings.
Throws ​
This property can throw when used.
handSettings? ​
readonlyoptionalhandSettings?:string
Defined in: @minecraft/server/index.d.ts:3404
Remarks ​
Optional. Aim-assist category Id used for an empty hand.
Throws ​
This property can throw when used.
identifier ​
readonlyidentifier:string
Defined in: @minecraft/server/index.d.ts:3410
Remarks ​
The unique Id associated with the preset.
Methods ​
getExcludedBlockTagTargets() ​
getExcludedBlockTagTargets():
string[]
Defined in: @minecraft/server/index.d.ts:3422
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.
minecraftcommon.EngineError
getExcludedBlockTargets() ​
getExcludedBlockTargets():
string[]
Defined in: @minecraft/server/index.d.ts:3432
Returns ​
string[]
The array of block Ids.
Remarks ​
Gets the list of block Ids to exclude from aim assist targeting.
Throws ​
This function can throw errors.
getExcludedEntityTargets() ​
getExcludedEntityTargets():
string[]
Defined in: @minecraft/server/index.d.ts:3442
Returns ​
string[]
The array of entity Ids.
Remarks ​
Gets the list of entity Ids to exclude from aim assist targeting.
Throws ​
This function can throw errors.
getExcludedEntityTypeFamilyTargets() ​
getExcludedEntityTypeFamilyTargets():
string[]
Defined in: @minecraft/server/index.d.ts:3454
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.
minecraftcommon.EngineError
getItemSettings() ​
getItemSettings():
Record<string,string>
Defined in: @minecraft/server/index.d.ts:3463
Returns ​
Record<string, string>
The record mapping item Ids to aim-assist category Ids.
Remarks ​
Gets the per-item aim-assist category Ids.
Throws ​
This function can throw errors.
getLiquidTargetingItems() ​
getLiquidTargetingItems():
string[]
Defined in: @minecraft/server/index.d.ts:3473
Returns ​
string[]
The array of item Ids.
Remarks ​
Gets the list of item Ids that will target liquid blocks with aim-assist when being held.
Throws ​
This function can throw errors.