Skip to main content

CraftingValidate

Callable


  • Validate and sanitinize crafting properties of the passed item inplace.


    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