Resource Packs
Class: UnifiedClientHelpers / RESOURCE_PACKS
Allows you to register multiloader resource packs.
addRequired sets the pack to always be enabled, whilst addOptional defaults it to disabled and gives the player full control over enabling it.
WARNING
All packs must be located in common/.../resources/resourcepacks, as Fabric hardcodes the required directory.
WARNING
Must be called in your client registries init in order to be loaded by NeoForge.
Methods
void addRequired(Identifier id);
void addOptional(Identifier id);Example
UnifiedClientHelpers.RESOURCE_PACKS.addOptional(Identifier.fromNamespaceAndPath(ModName.MOD_ID, "example_resourcepack"))