@minecraft/server / AimAssistPresetSettings
Class: AimAssistPresetSettings ​
Defined in: @minecraft/server/index.d.ts:3480
Settings used with AimAssistRegistry.addPreset for creation of the AimAssistPreset.
Constructors ​
Constructor ​
new AimAssistPresetSettings(
identifier):AimAssistPresetSettings
Defined in: @minecraft/server/index.d.ts:3511
Parameters ​
identifier ​
string
Returns ​
AimAssistPresetSettings
Remarks ​
Constructor that takes a unique Id to associate with the created AimAssistPreset. Must have a namespace.
Properties ​
defaultItemSettings? ​
optionaldefaultItemSettings?:string
Defined in: @minecraft/server/index.d.ts:3489
Remarks ​
Optional. Default aim-assist category Id used for items not provided to setItemSettings.
This property can't be edited in restricted-execution mode.
handSettings? ​
optionalhandSettings?:string
Defined in: @minecraft/server/index.d.ts:3497
Remarks ​
Optional. Aim-assist category Id used for an empty hand.
This property can't be edited in restricted-execution mode.
identifier ​
readonlyidentifier:string
Defined in: @minecraft/server/index.d.ts:3504
Remarks ​
The unique Id used to register the preset with. Must have a namespace.
Methods ​
getExcludedBlockTagTargets() ​
getExcludedBlockTagTargets():
string[] |undefined
Defined in: @minecraft/server/index.d.ts:3520
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
Defined in: @minecraft/server/index.d.ts:3529
Returns ​
string[] | undefined
The array of block Ids.
Remarks ​
Gets the list of block Ids to exclude from aim assist targeting.
getExcludedEntityTargets() ​
getExcludedEntityTargets():
string[] |undefined
Defined in: @minecraft/server/index.d.ts:3538
Returns ​
string[] | undefined
The array of entity Ids.
Remarks ​
Gets the list of entity Ids to exclude from aim assist targeting.
getExcludedEntityTypeFamilyTargets() ​
getExcludedEntityTypeFamilyTargets():
string[] |undefined
Defined in: @minecraft/server/index.d.ts:3547
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>
Defined in: @minecraft/server/index.d.ts:3555
Returns ​
Record<string, string>
The record mapping item Ids to aim-assist category Ids.
Remarks ​
Gets the per-item aim-assist category Ids.
getLiquidTargetingItems() ​
getLiquidTargetingItems():
string[] |undefined
Defined in: @minecraft/server/index.d.ts:3564
Returns ​
string[] | undefined
The array of item Ids.
Remarks ​
Gets the list of item Ids that will target liquid blocks with aim-assist when being held.
setExcludedBlockTagTargets() ​
setExcludedBlockTagTargets(
blockTagTargets?):void
Defined in: @minecraft/server/index.d.ts:3573
Parameters ​
blockTagTargets? ​
string[]
Returns ​
void
Remarks ​
Sets the list of block tags to exclude from aim assist targeting.
This function can't be called in restricted-execution mode.
setExcludedBlockTargets() ​
setExcludedBlockTargets(
blockTargets?):void
Defined in: @minecraft/server/index.d.ts:3582
Parameters ​
blockTargets? ​
string[]
Returns ​
void
Remarks ​
Sets the list of block Ids to exclude from aim assist targeting.
This function can't be called in restricted-execution mode.
setExcludedEntityTargets() ​
setExcludedEntityTargets(
entityTargets?):void
Defined in: @minecraft/server/index.d.ts:3591
Parameters ​
entityTargets? ​
string[]
Returns ​
void
Remarks ​
Sets the list of entity Ids to exclude from aim assist targeting.
This function can't be called in restricted-execution mode.
setExcludedEntityTypeFamilyTargets() ​
setExcludedEntityTypeFamilyTargets(
entityTypeFamilyTargets?):void
Defined in: @minecraft/server/index.d.ts:3600
Parameters ​
entityTypeFamilyTargets? ​
string[]
Returns ​
void
Remarks ​
Sets the list of entity type families to exclude from aim assist targeting.
This function can't be called in restricted-execution mode.
setItemSettings() ​
setItemSettings(
itemSettings):void
Defined in: @minecraft/server/index.d.ts:3611
Parameters ​
itemSettings ​
Record<string, string>
A record mapping item Ids to aim-assist category Ids. Category Ids must have a namespace.
Returns ​
void
Remarks ​
Sets the per-item aim-assist category Ids.
This function can't be called in restricted-execution mode.
setLiquidTargetingItems() ​
setLiquidTargetingItems(
items?):void
Defined in: @minecraft/server/index.d.ts:3622
Parameters ​
items? ​
string[]
An array of item Ids.
Returns ​
void
Remarks ​
Sets the list of item Ids that will target liquid blocks with aim-assist when being held.
This function can't be called in restricted-execution mode.