def add_info_boxes(pack: DataPack, info_box_statements: List): for _, v, o in info_box_statements: slot_name = v.toPython() slot_value = get_resource_name(o) info_box = WikiInfoBoxMapped(pack) info_box.key = slot_name info_box.value = slot_value
def add_wiki_info(self, pack: DataPack, info_box_statements: List): for _, v, o in info_box_statements: name = get_resource_name(o) if name is not None: info_box = WikiInfoBoxMapped(pack) info_box.key = v.toPython() info_box.value = name
def add_info_boxes(pack: DataPack, info_box_statements: List, info_type: str): for _, v, o in info_box_statements: info_box = WikiInfoBoxMapped(pack) info_box.set_key(v.toPython()) info_box.set_value(get_resource_name(o)) info_box.set_infobox_type(info_type) pack.add_entry(info_box)
def add_info_boxes(pack: DataPack, info_box_statements: List): for _, v, o in info_box_statements: slot_name = v.toPython() slot_value = get_resource_name(o) info_box = WikiInfoBoxMapped(pack) info_box.set_key(slot_name) info_box.set_value(slot_value) pack.add_entry(info_box)