make me a mod that can accelerates game loading by using mixins overwrites during early loading stage, particularly for heavy-modded setups
Let me read the essential docs first to ensure I use correct 1.21.11 APIs
FastLoader — Accelerated Game Loading Mod
Creating all project files. Architecture: SimpleResourceReloadMixin parallelizes the resource reload preparation phase using a larger thread pool, ClassPreloader preloads common classes in a background thread during onInitialize, and FastLoaderConfig provides toggles for each optimization
All files confirmed missing — creating the entire project from scratch.
The compilation failed with this error:
Compilation failed with 4 error(s):
ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 33: cannot find symbol
ResourceReloader.Prepare prepare,
^
symbol: class Prepare
location: interface ResourceReloader
ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 34: cannot find symbol
ResourceReloader.Factory factory,
^
symbol: class Factory
location: interface ResourceReloader
ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 33: cannot find symbol
ResourceReloader.Prepare prepare,
^
symbol: class Prepare
location: interface ResourceReloader
ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 34: cannot find symbol
ResourceReloader.Factory factory,
^
symbol: class Factory
location: interface ResourceReloader
=== COMPILATION ERROR ANALYSIS ===
MISSING CLASSES:
- Prepare
- Factory
ACTION: Create these classes or check imports
FILES TO INVESTIGATE:
- src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java
- src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java
Please fix this error by creating a new artifact with the corrected code.
Those types exist in Yarn but the subagent report is speculative. Let me check the actual decompiled Minecraft source.
Now I know the correct API. SimpleResourceReload.create() takes (ResourceManager, List<ResourceReloader>, Executor, Executor, CompletableFuture<Unit>) — not the old Prepare/Factory types. Let me also check DataPackContents.
Now I have the correct API. The old mixin was using non-existent ResourceReloader.Prepare/Factory types. The actual SimpleResourceReload.create() takes (ResourceManager, List<ResourceReloader>, Executor, Executor, CompletableFuture<Unit>). Let me rewrite the entire project with correct 1.21.11 APIs.
Now I have the correct API signatures. Let me read all files and rewrite them properly
Now I have the correct 1.21.11 API signatures. The errors are caused by using non-existent ResourceReloader.Prepare/Factory types. The actual SimpleResourceReload.create() signature is (ResourceManager, List<ResourceReloader>, Executor, Executor, CompletableFuture<Unit>). Let me rewrite the affected mixins and clean up.
Now I see the issue — the old API with Prepare/Factory/Applier doesn’t exist in 1.21.11. The actual API is SimpleResourceReload.create(ResourceManager, List<ResourceReloader>, Executor, Executor, CompletableFuture<Unit>). Let me rewrite the mixins properly.
The file needs a full rewrite since the entire method signature and types changed. Let me use the inline tag approach.
The compilation failed with this error:
Compilation failed with 4 error(s):
ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 33: cannot find symbol
ResourceReloader.Prepare prepare,
^
symbol: class Prepare
location: interface ResourceReloader
ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 34: cannot find symbol
ResourceReloader.Factory factory,
^
symbol: class Factory
location: interface ResourceReloader
ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 33: cannot find symbol
ResourceReloader.Prepare prepare,
^
symbol: class Prepare
location: interface ResourceReloader
ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 34: cannot find symbol
ResourceReloader.Factory factory,
^
symbol: class Factory
location: interface ResourceReloader
=== COMPILATION ERROR ANALYSIS ===
MISSING CLASSES:
- Prepare
- Factory
ACTION: Create these classes or check imports
FILES TO INVESTIGATE:
- src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java
- src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java
Please fix this error by creating a new artifact with the corrected code.
The compilation failed with this error:
Compilation failed with 4 error(s):
ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 33: cannot find symbol
ResourceReloader.Prepare prepare,
^
symbol: class Prepare
location: interface ResourceReloader
ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 34: cannot find symbol
ResourceReloader.Factory factory,
^
symbol: class Factory
location: interface ResourceReloader
ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 33: cannot find symbol
ResourceReloader.Prepare prepare,
^
symbol: class Prepare
location: interface ResourceReloader
ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 34: cannot find symbol
ResourceReloader.Factory factory,
^
symbol: class Factory
location: interface ResourceReloader
=== COMPILATION ERROR ANALYSIS ===
MISSING CLASSES:
- Prepare
- Factory
ACTION: Create these classes or check imports
FILES TO INVESTIGATE:
- src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java
- src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java
Please fix this error by creating a new artifact with the corrected code.
Let me read the actual file currently on disk to see what’s still broken.
The compilation failed with this error:
Compilation failed with 4 error(s):
ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 33: cannot find symbol
ResourceReloader.Prepare prepare,
^
symbol: class Prepare
location: interface ResourceReloader
ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 34: cannot find symbol
ResourceReloader.Factory factory,
^
symbol: class Factory
location: interface ResourceReloader
ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 33: cannot find symbol
ResourceReloader.Prepare prepare,
^
symbol: class Prepare
location: interface ResourceReloader
ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 34: cannot find symbol
ResourceReloader.Factory factory,
^
symbol: class Factory
location: interface ResourceReloader
=== COMPILATION ERROR ANALYSIS ===
MISSING CLASSES:
- Prepare
- Factory
ACTION: Create these classes or check imports
FILES TO INVESTIGATE:
- src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java
- src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java
Please fix this error by creating a new artifact with the corrected code.
The compilation failed with this error:
Compilation failed with 4 error(s):
ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 33: cannot find symbol
ResourceReloader.Prepare prepare,
^
symbol: class Prepare
location: interface ResourceReloader
ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 34: cannot find symbol
ResourceReloader.Factory factory,
^
symbol: class Factory
location: interface ResourceReloader
ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 33: cannot find symbol
ResourceReloader.Prepare prepare,
^
symbol: class Prepare
location: interface ResourceReloader
ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 34: cannot find symbol
ResourceReloader.Factory factory,
^
symbol: class Factory
location: interface ResourceReloader
=== COMPILATION ERROR ANALYSIS ===
MISSING CLASSES:
- Prepare
- Factory
ACTION: Create these classes or check imports
FILES TO INVESTIGATE:
- src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java
- src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java
Please fix this error by creating a new artifact with the corrected code.
Now I have the full picture. In 1.21.11, ResourceReloader.Prepare and ResourceReloader.Factory don’t exist. The actual API is:
ReloadableResourceManagerImpl.reload(Executor, Executor, CompletableFuture<Unit>, List<ResourcePack>)Which calls
SimpleResourceReload.start(ResourceManager, List<ResourceReloader>, Executor, Executor, CompletableFuture<Unit>, boolean)
The mixin needs to wrap the SimpleResourceReload.start() call to substitute the prepare executorThe file still has the old broken code. Let me rewrite it entirely with the correct 1.21.11 API.
<<update>>
The compilation failed with this error:
Compilation failed with 4 error(s):
ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 33: cannot find symbol
ResourceReloader.Prepare prepare,
^
symbol: class Prepare
location: interface ResourceReloader
ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 34: cannot find symbol
ResourceReloader.Factory factory,
^
symbol: class Factory
location: interface ResourceReloader
ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 33: cannot find symbol
ResourceReloader.Prepare prepare,
^
symbol: class Prepare
location: interface ResourceReloader
ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 34: cannot find symbol
ResourceReloader.Factory factory,
^
symbol: class Factory
location: interface ResourceReloader
=== COMPILATION ERROR ANALYSIS ===
MISSING CLASSES:
- Prepare
- Factory
ACTION: Create these classes or check imports
FILES TO INVESTIGATE:
- src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java
- src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java
Please fix this error by creating a new artifact with the corrected code.
ાજેત
Fixed SimpleResourceReloadMixin.java for Fabric 1.21.11.
Removed nonexistent
ResourceReloader.PrepareandResourceReloader.Factorytypes.Updated the mixin to target
SimpleResourceReload.start(...).Added the correct
ResourceManager,ResourceReload,ResourceReloader,Unit, and collection types.Updated the method descriptor and operation call arguments.
every time you click "Create New World" because of a mixin conflict with the fastloader mod Mixin apply for mod fastloader failed fastloader.mixins.json:DataPackContentsMixin Critical injection failure: @WrapOperation annotation on wrapDataPackReload could not find any targets matching
Inspect the failing
DataPackContentsMixinand its mixin configuration.Verify the 1.21.11 target method and
@WrapOperationsignature.Patch the injection to the actual datapack reload call, preserving FastLoader’s behavior.
Patched DataPackContentsMixin.java to target the Fabric 1.21.11 datapack reload call:
Updated the
DataPackContents.reloaddescriptor.Wrapped
SimpleResourceReload.start(...)instead of recursively targetingDataPackContents.reload(...).Corrected the static wrapper signature.
Removed the obsolete reload parameters.
Preserved FastLoader’s configurable prepare-thread pool.
package com.fastloader;
import net.fabricmc.api.ClientModInitializer;
public class FastLoaderClient implements ClientModInitializer {
@Override
public void onInitializeClient() {
FastLoader.LOGGER.info("FastLoader client initialized");
}
}