Rename ClickWindow to WindowAction

This commit is contained in:
ReinforceZwei 2020-05-24 09:33:21 +08:00 committed by ORelio
parent 1e5b9fc94b
commit d6022d1ee9
7 changed files with 38 additions and 18 deletions

View file

@ -1511,13 +1511,13 @@ namespace MinecraftClient
/// Click a slot in the specified window
/// </summary>
/// <returns>TRUE if the slot was successfully clicked</returns>
public bool ClickWindowSlot(int windowId, int slotId, byte buttom)
public bool DoWindowAction(int windowId, int slotId, WindowActionType action)
{
Item item = null;
if (inventories.ContainsKey(windowId) && inventories[windowId].Items.ContainsKey(slotId))
item = inventories[windowId].Items[slotId];
return handler.SendClickWindow(windowId, slotId, buttom, item);
return handler.SendWindowAction(windowId, slotId, action, item);
}
/// <summary>