CraftingValidate
Callable
Parameters
Craft: CraftingItem
The crafted item properties or
null
asset: Asset = null
The matching Asset. Will be extracted from the player inventory if
null
Warn: boolean = true
Whether a warning should logged whenever the crafting validation fails
checkPlayerInventory: boolean = false
Whether or not the player must own the crafted item's underlying asset
Returns CraftingStatusType
- One of the CraftingStatusType status codes; 0 denoting an unrecoverable validation error
Validate and sanitinize crafting properties of the passed item inplace.