fn registered_item_predicate_matches( predicate: &ItemPredicate, template: &ItemStackTemplate, ) -> bool