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 .disabled suffix. Resource and shader packs can be folders.

Type:

str

enabled#

False if it carries the .disabled suffix, so the game skips it.

Type:

bool

source#

pack if the pack installed it, addition if it was added on its own, and user if the player put it there.

Type:

Literal[‘pack’, ‘addition’, ‘user’]

addition#

The addition, if it is one.

Type:

Addition | None

property location: str#

Its actual path relative to the instance, with any suffix.