-
Notifications
You must be signed in to change notification settings - Fork 25
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
Showing
16 changed files
with
75 additions
and
189 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
61 changes: 0 additions & 61 deletions
61
src/main/java/io/github/ennuil/ok_zoomer/OkZoomerMixinPlugin.java
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
src/main/java/io/github/ennuil/ok_zoomer/compat/TrinketsCompat.java
This file was deleted.
Oops, something went wrong.
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
31 changes: 31 additions & 0 deletions
31
src/main/java/io/github/ennuil/ok_zoomer/mixin/common/RenderStateShardMixin.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,31 @@ | ||
package io.github.ennuil.ok_zoomer.mixin.common; | ||
|
||
import com.mojang.blaze3d.systems.RenderSystem; | ||
import io.github.ennuil.ok_zoomer.config.OkZoomerConfigManager; | ||
import io.github.ennuil.ok_zoomer.zoom.Zoom; | ||
import net.minecraft.client.Minecraft; | ||
import net.minecraft.client.renderer.RenderStateShard; | ||
import org.quiltmc.loader.api.minecraft.ClientOnly; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
@ClientOnly | ||
@Mixin(RenderStateShard.class) | ||
public abstract class RenderStateShardMixin { | ||
@Inject(method = "method_62269", at = @At("TAIL")) | ||
private static void fadeCrosshair(CallbackInfo ci) { | ||
if (OkZoomerConfigManager.CONFIG.tweaks.hideCrosshair.value()) { | ||
float fade = 1.0F - Zoom.getTransitionMode().getFade(Minecraft.getInstance().getDeltaTracker().getGameTimeDeltaPartialTick(true)); | ||
RenderSystem.setShaderColor(fade, fade, fade, fade); | ||
} | ||
} | ||
|
||
@Inject(method = "method_62268", at = @At("HEAD")) | ||
private static void resetCrosshairFade(CallbackInfo ci) { | ||
if (OkZoomerConfigManager.CONFIG.tweaks.hideCrosshair.value()) { | ||
RenderSystem.setShaderColor(1.0F, 1.0F, 1.0F, 1.0F); | ||
} | ||
} | ||
} |
29 changes: 0 additions & 29 deletions
29
src/main/java/io/github/ennuil/ok_zoomer/mixin/sinytra/MouseHandlerMixin.java
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.