aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/djtheredstoner/perspectivemod/asm/hooks/EntityRendererHook.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/djtheredstoner/perspectivemod/asm/hooks/EntityRendererHook.java')
-rw-r--r--src/main/java/me/djtheredstoner/perspectivemod/asm/hooks/EntityRendererHook.java32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/main/java/me/djtheredstoner/perspectivemod/asm/hooks/EntityRendererHook.java b/src/main/java/me/djtheredstoner/perspectivemod/asm/hooks/EntityRendererHook.java
deleted file mode 100644
index a6ea788..0000000
--- a/src/main/java/me/djtheredstoner/perspectivemod/asm/hooks/EntityRendererHook.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package me.djtheredstoner.perspectivemod.asm.hooks;
-
-import me.djtheredstoner.perspectivemod.PerspectiveMod;
-import net.minecraft.client.Minecraft;
-import net.minecraft.entity.Entity;
-
-public class EntityRendererHook {
-
- public static float rotationYawHook(Entity entity) {
- return PerspectiveMod.instance.perspectiveToggled ? PerspectiveMod.instance.cameraYaw : entity.rotationYaw;
- }
-
- public static float prevRotationYawHook(Entity entity) {
- return PerspectiveMod.instance.perspectiveToggled ? PerspectiveMod.instance.cameraYaw : entity.prevRotationYaw;
- }
-
- public static float rotationPitchHook(Entity entity) {
- return PerspectiveMod.instance.perspectiveToggled ? PerspectiveMod.instance.cameraPitch : entity.rotationPitch;
- }
-
- public static float prevRotationPitchHook(Entity entity) {
- return PerspectiveMod.instance.perspectiveToggled ? PerspectiveMod.instance.cameraPitch : entity.prevRotationPitch;
- }
-
- public static boolean mouseHook(Minecraft minecraft) {
- return PerspectiveMod.instance == null ? minecraft.inGameHasFocus : PerspectiveMod.instance.overrideMouse();
- }
-
- public static double distanceHook(double value) {
- return value;
- }
-}