applyModifier

fun applyModifier(itemStack: ItemStack, modifier: LootItemFunction): ItemStack

Applies a LootItemFunction to an ItemStack and returns the modified stack.

Return

Modified ItemStack (size-limited)

Parameters

itemStack

Item to modify

modifier

Function to apply