New method for getting looking location (#1503)

* New method for getting looking location

* improve
This commit is contained in:
ReinforceZwei 2021-03-13 22:23:58 +08:00 committed by GitHub
parent 240468ad22
commit 90505dbc4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 98 additions and 12 deletions

View file

@ -1016,7 +1016,25 @@ namespace MinecraftClient
{
return Handler.GetGamemode();
}
/// <summary>
/// Return the head yaw of the client player
/// </summary>
/// <returns>Yaw of the client player</returns>
protected float GetYaw()
{
return Handler.GetYaw();
}
/// <summary>
/// Return the head pitch of the client player
/// </summary>
/// <returns>Pitch of the client player</returns>
protected float GetPitch()
{
return Handler.GetPitch();
}
/// <summary>
/// Return the UserUUID of the current account
/// </summary>