classAddition#
- class Addition(
- entry: PackEntry,
- name: str,
- slug: str = '',
- project_type: Literal['mod', 'modpack', 'resourcepack', 'shader'] = 'mod',
- sha1: str = '',
- requested: bool = True,
- requires: tuple[str, ...] = (),
- pinned: bool = False,
A project installed on its own, rather than by the instance’s pack.
- entry#
The file: its path in the instance, its download and its hashes. Its
refnames the platform, project and release.- Type:
- project_type#
The kind of project, such as
modorshader.- Type:
Literal[‘mod’, ‘modpack’, ‘resourcepack’, ‘shader’]
- sha1#
The file’s hash when it was installed. A different hash means the player changed it.
- Type:
- requested#
Whether it was asked for, rather than installed because another addition needs it.
- Type:
- pinned#
Whether
Instance.plan_updatesleaves it at this release.- Type: