forked from Strangerrrs/Raven-bS
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Hypixel autoblock Add 'not while invmove' to Speed Add 'Temp disable on flag' to Speed Improve HypixelLowHop7TickSpeed (less flags) Improve performance
- Loading branch information
Showing
17 changed files
with
286 additions
and
72 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package keystrokesmod.event; | ||
|
||
import keystrokesmod.utility.Utils; | ||
import lombok.*; | ||
import net.minecraftforge.fml.common.eventhandler.Event; | ||
|
||
import static keystrokesmod.Raven.mc; | ||
|
||
@Getter | ||
public class EyeHeightEvent extends Event { | ||
private double y; | ||
private boolean set; | ||
|
||
public EyeHeightEvent(double eyeHeight) { | ||
setEyeHeight(eyeHeight); | ||
} | ||
|
||
public double getEyeHeight() { | ||
return 1.62 - (mc.thePlayer.lastTickPosY + | ||
(((mc.thePlayer.posY - mc.thePlayer.lastTickPosY) * Utils.getTimer().renderPartialTicks)) - y); | ||
} | ||
|
||
public void setEyeHeight(double targetEyeHeight) { | ||
this.y = targetEyeHeight - 1.62 + mc.thePlayer.lastTickPosY + | ||
((mc.thePlayer.posY - mc.thePlayer.lastTickPosY) * (double) Utils.getTimer().renderPartialTicks); | ||
} | ||
|
||
public void setY(double y) { | ||
this.y = y; | ||
this.set = true; | ||
} | ||
} |
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
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
Oops, something went wrong.