new command /animation (#1026)

This commit is contained in:
Рома Данилов 2020-05-26 14:02:09 +05:00 committed by GitHub
parent 23870711a0
commit 87b2d3bf4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 409 additions and 311 deletions

View file

@ -899,6 +899,16 @@ namespace MinecraftClient
return Handler.DoCreativeGive(slot, itemType, count);
}
/// <summary>
/// Plays animation
/// </summary>
/// <param name="animation"> <0|1></param>
/// <returns>TRUE animation done</returns>
protected bool SendAnimation(int animation)
{
return Handler.DoAnimation(animation);
}
/// <summary>
/// Use item currently in the player's hand (active inventory bar slot)
/// </summary>