Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package net.fabricmc.loader.impl.entrypoint;

@FunctionalInterface
public interface MixinLoadingEntrypoint {
void onMixinLoading();
}
6 changes: 5 additions & 1 deletion src/main/java/net/fabricmc/loader/impl/launch/knot/Knot.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;

import net.fabricmc.loader.impl.entrypoint.MixinLoadingEntrypoint;

import org.spongepowered.asm.launch.MixinBootstrap;

import net.fabricmc.api.EnvType;
Expand Down Expand Up @@ -128,8 +130,10 @@ protected ClassLoader init(String[] args) {
loader.setGameProvider(provider);
loader.load();
loader.freeze();
loader.loadAccessWideners();

FabricLoaderImpl.INSTANCE.loadAccessWideners();
// Some mods has any API required for mixins. But they most-likely load it remotely, since its unused in any other place.
EntrypointUtils.invoke("onMixinLoading", MixinLoadingEntrypoint.class, MixinLoadingEntrypoint::onMixinLoading);

MixinBootstrap.init();
FabricMixinBootstrap.init(getEnvironmentType(), loader);
Expand Down