From 8ca3fae3589e73c90377eefabd01d9a2c89c3d10 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 10 Aug 2016 07:47:39 +0200 Subject: Function: add_suppressed_item_entries --- API.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'API.md') diff --git a/API.md b/API.md index 10b1037..a1a7bdf 100644 --- a/API.md +++ b/API.md @@ -298,6 +298,15 @@ the item is not in creative inventory. to the group `in_doc=1` (see above). Only use this function when you can not use groups. +### `doc.sub.items.add_suppressed_item_entries(itemstrings)` +Adds items which will be forced to **not** be added to the entry list. + +`itemstrings` is a table of itemstrings of items to force the entries for. + +***Note***: The recommended way to suppress item entries is by adding the +item to the group `not_in_doc=1` (see above). Only use this function when you +can not use groups. + ### `doc.sub.items.add_item_name_overrides(itemstrings)` Overrides the entry names of entries to the provided names. By default, each entry name equals the item's `description` field. -- cgit v1.2.3