1
0
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:
Matthew Herber 2024-09-02 14:06:39 -04:00
parent ed2042ae36
commit 228eed5efa

View File

@ -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.
*