forked from ReplayMod/ReplayMod
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
11eee82
commit ccb6aab
Showing
306 changed files
with
1,708 additions
and
7,448 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,18 @@ | ||
package com.replaymod.compat; | ||
|
||
import com.replaymod.compat.optifine.DisableFastRender; | ||
import com.replaymod.compat.shaders.ShaderBeginRender; | ||
import com.replaymod.core.Module; | ||
import org.apache.logging.log4j.LogManager; | ||
import org.apache.logging.log4j.Logger; | ||
|
||
//#if MC<11400 | ||
//$$ import com.replaymod.compat.oranges17animations.HideInvisibleEntities; | ||
//#endif | ||
|
||
//#if MC<11400 | ||
//$$ import com.replaymod.compat.bettersprinting.DisableBetterSprinting; | ||
//#endif | ||
|
||
//#if MC>=10800 | ||
import com.replaymod.compat.shaders.ShaderBeginRender; | ||
//#endif | ||
|
||
public class ReplayModCompat implements Module { | ||
public static Logger LOGGER = LogManager.getLogger(); | ||
|
||
@Override | ||
public void initClient() { | ||
//#if MC>=10800 | ||
new ShaderBeginRender().register(); | ||
//#endif | ||
new DisableFastRender().register(); | ||
//#if MC<11400 | ||
//$$ new HideInvisibleEntities().register(); | ||
//#endif | ||
//#if MC<11400 | ||
//$$ DisableBetterSprinting.register(); | ||
//#endif | ||
} | ||
|
||
} |
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
18 changes: 0 additions & 18 deletions
18
src/main/java/com/replaymod/core/DummyChainLoadEntryPoint.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 |
---|---|---|
@@ -1,18 +0,0 @@ | ||
//#if FABRIC>=1 | ||
//$$ package com.replaymod.core; | ||
//$$ | ||
//$$ import net.fabricmc.loader.api.entrypoint.PreLaunchEntrypoint; | ||
//$$ | ||
//$$ // Required for ReplayModMMLauncher. | ||
//$$ // | ||
//$$ // Chain-loading mixin configurations only works when the first class that is loaded doesn't have any mixins which | ||
//$$ // target it. The first class would ordinarily be MC's Main but there are valid use cases for targeting it, see | ||
//$$ // e.g. https://github.com/ReplayMod/ReplayMod/issues/327 | ||
//$$ // So, instead of relying on the bad assumption that Main doesn't have any mixins, we'll instead register this | ||
//$$ // dummy pre-launch entry point which is practically guaranteed to not have any mixins and gets called before Main. | ||
//$$ public class DummyChainLoadEntryPoint implements PreLaunchEntrypoint { | ||
//$$ @Override | ||
//$$ public void onPreLaunch() { | ||
//$$ } | ||
//$$ } | ||
//#endif | ||
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
12 changes: 1 addition & 11 deletions
12
src/main/java/com/replaymod/core/MinecraftMethodAccessor.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 |
---|---|---|
@@ -1,17 +1,7 @@ | ||
package com.replaymod.core; | ||
|
||
public interface MinecraftMethodAccessor { | ||
//#if MC>=11400 | ||
void replayModProcessKeyBinds(); | ||
//#else | ||
//#if MC>=10904 | ||
//$$ void replayModRunTickMouse(); | ||
//$$ void replayModRunTickKeyboard(); | ||
//#else | ||
//$$ void replayModSetEarlyReturnFromRunTick(boolean earlyReturn); | ||
//#endif | ||
//#endif | ||
//#if MC>=11400 | ||
|
||
void replayModExecuteTaskQueue(); | ||
//#endif | ||
} |
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
Oops, something went wrong.