Done auxiliary methods for Direction

This commit is contained in:
Roman Danilov 2024-03-05 21:49:29 +05:00
parent 91ef890bb6
commit df9443381b
3 changed files with 44 additions and 1 deletions

View file

@ -1036,6 +1036,15 @@ namespace MinecraftClient
#region Getters: Retrieve data for use in other methods or ChatBots
/// <summary>
/// Gets the horizontal direction of the takeoff.
/// </summary>
/// <returns>Return direction of view</returns>
public Direction GetHorizontalFacing()
{
return DirectionExtensions.FromRotation(GetYaw());
}
/// <summary>
/// Get max length for chat messages
/// </summary>
@ -2260,6 +2269,7 @@ namespace MinecraftClient
return InvokeOnMainThread(() => handler.SendPlayerBlockPlacement((int)hand, location, blockFace, sequenceId++));
}
/// <summary>
/// Attempt to dig a block at the specified location
/// </summary>