Add item moving helper class (#1243)

* Create item moving helper class
* Change the method calling order for joined game
 Dispatch bot after things are initialized such as inventories
* Add GetItemMovingHelper ChatBot method
This commit is contained in:
ReinforceZwei 2020-08-29 23:53:29 +08:00 committed by GitHub
parent de9dcd6d77
commit cd1badb9d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 186 additions and 1 deletions

View file

@ -1182,6 +1182,16 @@ namespace MinecraftClient
return Handler.DoWindowAction(inventoryId, slot, actionType);
}
/// <summary>
/// Get inventory action helper
/// </summary>
/// <param name="container">Inventory Container</param>
/// <returns>ItemMovingHelper instance</returns>
protected ItemMovingHelper GetItemMovingHelper(Container container)
{
return new ItemMovingHelper(container, Handler);
}
/// <summary>
/// Change player selected hotbar slot
/// </summary>