classContentFile#
- class ContentFile(
- path: str,
- enabled: bool = True,
- source: Literal['pack', 'addition', 'user'] = 'user',
- addition: Addition | None = None,
A mod, resource pack or shader pack in an instance.
- path#
Its path relative to the instance, without the
.disabledsuffix. Resource and shader packs can be folders.- Type:
- source#
packif the pack installed it,additionif it was added on its own, anduserif the player put it there.- Type:
Literal[‘pack’, ‘addition’, ‘user’]