mirror of
https://github.com/cabaletta/baritone
synced 2025-01-18 05:02:14 +00:00
introduce it as deprecated instead
This commit is contained in:
parent
ed2042ae36
commit
228eed5efa
@ -99,6 +99,18 @@ public interface IPlayerContext {
|
||||
return new Rotation(player().getYRot(), player().getXRot());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the player's eye height, taking into account whether or not the player is sneaking.
|
||||
*
|
||||
* @param ifSneaking Whether or not the player is sneaking
|
||||
* @return The player's eye height
|
||||
* @deprecated Use entity.getEyeHeight(Pose.CROUCHING) instead
|
||||
*/
|
||||
@Deprecated
|
||||
static double eyeHeight(boolean ifSneaking) {
|
||||
return ifSneaking ? 1.27 : 1.62;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the block that the crosshair is currently placed over. Updated once per tick.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user