ItemTranslator class¶
- class PyMCTranslate.py3.api.version.translators.item.ItemTranslator(translation_manager, parent_version, database, *_)[source]¶
Bases:
BaseTranslator
- base_names(namespace, force_blockstate=False)¶
A list of all the valid base names present in a given namespace for this object type.
- get_mapping_from_universal(namespace, base_name, force_blockstate=False)¶
Get the mapping file for the requested object from the universal format to this version format.
- Parameters
- Return type
- Returns
A list of mapping functions to apply to the object
- get_mapping_to_universal(namespace, base_name, force_blockstate=False)¶
Get the mapping file for the requested object from this version format to the universal format.
- Parameters
- Return type
- Returns
A list of mapping functions to apply to the object