-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support OptiForge running under development environment.
Add the function about removing OptiFine class locator if MixinBootstrap didn't install.
- Loading branch information
1 parent
495c0b2
commit ae17fdb
Showing
17 changed files
with
265 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
...main/java/io/github/zekerzhayard/optiforge/asm/fml/FakeOptiFineTransformationService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package io.github.zekerzhayard.optiforge.asm.fml; | ||
|
||
import java.util.Collections; | ||
import java.util.List; | ||
import java.util.Set; | ||
import javax.annotation.Nonnull; | ||
|
||
import cpw.mods.modlauncher.api.IEnvironment; | ||
import cpw.mods.modlauncher.api.ITransformationService; | ||
import cpw.mods.modlauncher.api.ITransformer; | ||
|
||
/** | ||
* If someone used wrong forge version or didn't install MixinBootstrap, use this class to replace OptiFineTransformationService. | ||
*/ | ||
public class FakeOptiFineTransformationService implements ITransformationService { | ||
@Nonnull | ||
@Override | ||
public String name() { | ||
return "OptiFine"; | ||
} | ||
|
||
@Override | ||
public void initialize(@Nonnull IEnvironment environment) { | ||
|
||
} | ||
|
||
@Override | ||
public void beginScanning(@Nonnull IEnvironment environment) { | ||
|
||
} | ||
|
||
@Override | ||
public void onLoad(@Nonnull IEnvironment env, @Nonnull Set<String> otherServices) { | ||
|
||
} | ||
|
||
@Nonnull | ||
@Override | ||
@SuppressWarnings("rawtypes") | ||
public List<ITransformer> transformers() { | ||
return Collections.emptyList(); | ||
} | ||
} |
Oops, something went wrong.